Question : Setting JVM Heapsize on WebSphere; What file contains these values

Hey,

So I tried to increase the Max and Init Heap sizes in the WebSphere console then tried to restart WebSphere and it gave me an error saying it cannot allocate the heap space:

"JVMJ9VM015W Initialization error for library j9gc24(2): Failed to instantiate heap; 3000M requested
Could not create the Java virtual machine."

 So then I tried to set the -Xmx and Xms values through the command line (on AIX 6.1) using

java -Xmx1000m -Xms1000m

Yet it always just spits java help back at me.  Now I do remember that the Xmx and Xms values are contained in a (XML?) file somewhere for WebSphere, does anyone know what that file is, and where it is located (relative path)?

If not, what is another way I could reset the JVM Heap Size settings (WebSphere console is out as the server cannot start because of this issue)?

The server in question has 32GB ram and is a 64 bit machine so I would have thought 3GB would of been ok, but obviously not :)

Thanks in advance :)

Answer : Setting JVM Heapsize on WebSphere; What file contains these values

The configuration itself should be in "server.xml" to be found in this file structure -

cells
 cell1
    cell.xml resources.xml virtualhosts.xml variables.xml security.xml
    nodes
       nodeX
          node.xml variables.xml resources.xml serverindex.xml
          serverA
             server.xml variables.xml

Here is the IBM documentation containing the above info -

http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/ccfg_confdoc.html

Random Solutions  
 
programming4us programming4us