java 如何降低 WebSphere Server 的堆大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6615211/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Lower Heap Size of WebSphere Server
提问by Connection
I tried to change the Heap Size of my local WebSphere Server instance to 2G using the "Run Administrative Console" function in RAD but apparently, that was too big of a number. Now, I can't start the server anymore and I get this error:
我尝试使用 RAD 中的“运行管理控制台”功能将本地 WebSphere Server 实例的堆大小更改为 2G,但显然,这个数字太大了。现在,我无法再启动服务器并收到此错误:
JVMJ9VM015W Initialization error for library j9gc23(2): Failed to instantiate heap. 2G requested
Could not create the Java virtual machine.
I can't just change it back to a lower number because I can't seem to use the "Run Admin Console" function without starting the server first so I was wondering if anyone knew where the config file is kept for this? How can fix this problem?
我不能把它改回一个较低的数字,因为我似乎无法在不先启动服务器的情况下使用“运行管理控制台”功能,所以我想知道是否有人知道配置文件保存在哪里?如何解决这个问题?
回答by Manglu
Work with the server.xml under the config/cells/cellName/nodes/nodename/servers/servername/ directory.
使用 config/cells/ cellName/nodes/ nodename/servers/ servername/ 目录下的 server.xml 。
cellName and nodename would likley be based on your host name. I have kept them as cellName (and nodename) here in the structure above.
cellName 和 nodename 可能基于您的主机名。我在上面的结构中将它们保留为 cellName(和 nodename)。
The servername would be the default server1
服务器名将是默认的 server1
Look towards the bottom of the file
看向文件底部
It would have something like this: (Change the initialHeapSize and maximumHeapSize)
它会是这样的:(更改initialHeapSize 和maximumHeapSize)
Save the file and start your server and you should be able wot work with the server.
保存文件并启动您的服务器,您应该可以使用该服务器。
HTH
HTH
Manglu
芒陆