简体   繁体   English

如何降低 WebSphere 服务器的堆大小

[英]How to Lower Heap Size of WebSphere Server

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.我尝试使用 RAD 中的“运行管理控制台”function 将本地 WebSphere Server 实例的堆大小更改为 2G,但显然,这个数字太大了。 Now, I can't start the server anymore and I get this error:现在,我无法再启动服务器,并且出现此错误:

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?我不能把它改回一个较小的数字,因为我似乎无法在不先启动服务器的情况下使用“运行管理控制台”function,所以我想知道是否有人知道为此保存配置文件的位置? How can fix this problem?如何解决这个问题?

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. cellName 和 nodename 可能会基于您的主机名。 I have kept them as cellName (and nodename) here in the structure above.我在上面的结构中将它们保留为单元名称(和节点名称)。

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高温高压

Manglu芒鲁

I have the same issue in IBM Engineering lifecycle installation:-我在 IBM 工程生命周期安装中遇到了同样的问题:-

Problem:- JVMJ9VM015W Initialization error for library j9gc26(2): Failed to instantiate heap;问题:- JVMJ9VM015W 库 j9gc26(2) 的初始化错误:无法实例化堆; Could not create the Java virtual machine.无法创建 Java 虚拟机。

Solution:- I just did it and solve my issue.解决方案:-我只是这样做并解决了我的问题。 If you don't have 16GB ram then please don't change the jazz server startup file.如果您没有 16GB 内存,请不要更改 jazz 服务器启动文件。 If you have 8GB ram then Only do not increase memory size in the server.: **set JAVA_OPTS=%JAVA_OPTS% -Xmx4G** **set JAVA_OPTS=%JAVA_OPTS% -Xms4G** **set JAVA_OPTS=%JAVA_OPTS% -Xmn1G**如果你有 8GB 内存,那么只不要增加服务器中的**set JAVA_OPTS=%JAVA_OPTS% -Xmx4G** **set JAVA_OPTS=%JAVA_OPTS% -Xms4G** **set JAVA_OPTS=%JAVA_OPTS% -Xmn1G**大小。 **set JAVA_OPTS=%JAVA_OPTS% -Xmx4G** **set JAVA_OPTS=%JAVA_OPTS% -Xms4G** **set JAVA_OPTS=%JAVA_OPTS% -Xmn1G**

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM