Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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? How can fix this problem?

like image 906
Connection Avatar asked Jul 07 '11 18:07

Connection


People also ask

How can I reduce my heap size?

You can set the heap size by using the -Xms (initial heap size) and -Xmx (maximum heap size) options. To let the heap to grow and shrink depending on the amount of free memory in your system, set the -Xms command lower than the -Xmx command.

Where is JVM heap size in WebSphere?

Click Servers >Server Types>WebSphere Application Servers and select the server_name . In the Configuration tab, go to Server Infrastructure > Java and Process Management > Process Definition > Additional Properties: Java Virtual Machine.

What is heap size in WebSphere application server?

Initial Heap Size: 1024. Maximum Heap Size: 1280.


1 Answers

Work with the server.xml under the config/cells/cellName/nodes/nodename/servers/servername/ directory.

cellName and nodename would likley be based on your host name. I have kept them as cellName (and nodename) here in the structure above.

The servername would be the default server1

Look towards the bottom of the file

It would have something like this: (Change the initialHeapSize and maximumHeapSize)

Save the file and start your server and you should be able wot work with the server.

HTH

Manglu

like image 78
Manglu Avatar answered Oct 18 '22 23:10

Manglu