如何在weblogic中增加内存 [英] How to increase memory in weblogic

查看:159
本文介绍了如何在weblogic中增加内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要增加 weblogic 中的内存.我是新来的,我不知道如何.我需要设置 -Xss=4096k .我该怎么做?

I need to increase memory in weblogic. I am new in this and I dont know how. I need to set -Xss=4096k . How I can I do it ?

推荐答案

Xss是Thread Stack Size,不是内存大小

Xss is Thread Stack Size,, it is not the memory size

可以通过改变参数Xmx来改变内存大小

you can change the memory size by changing the parameters Xmx

最重要的参数是:

-Xms1536m -Xmx1536m -XX:MaxPermSize=512m

Xmx - 是堆的最大大小.

Xmx - is the max size of the heap.

Xms - 是堆的初始大小.(与 Xmx 相同)

Xms - is the initial size of the heap.( give it the same as Xmx )

XX:MaxPermSize - 用于保存 VM 本身的反射,例如类对象和方法对象(它与堆大小无关,给它 1/3 到 1/4Xms 大小取决于您的类大小)

XX:MaxPermSize - is is used to hold reflective of the VM itself such as class objects and method objects ( it's independent from the heap size,, give it the 1/3 to 1/4 of the Xms size depend in your classes size)

........

任何方式:

您可以从 config.xml 更改 XSS

you can change XSS from config.xml

在这个路径:DOMAIN_NAME/config/config.xml

in this path : DOMAIN_NAME/config/config.xml

但是当您更改 config.xml 中的某些内容时,您必须关闭管理服务器,然后编辑启动属性,或者在 下添加它,如果它不存在:

but you have to shutdown the admin server when you change something in config.xml , then edit the start properties, or add it under <server> if it's not there:

<server-start>
      <arguments>-Xms1536m -Xmx1536m -XX:MaxPermSize=512m -Xss4096k </arguments>
</server-start>

........

[[或]]

您可以从管理控制台更改它,这更容易

you can change it from the admin console which is easier

访问管理控制台,然后转到环境>>服务器

access the admin console then go to Environment >> Servers

选择要更改的服务器

表单配置>>服务器启动

form Configuration >> Server Start

您将看到名为 Arguments:

添加-Xss4096k

这篇关于如何在weblogic中增加内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆