It's all about the answers!

Ask a question

WAS does not start after entering generic JVM arguments (CLM 4.0)

V Niranjan (12533963) | asked Dec 02 '12, 9:12 p.m.

I am trying to configure WAS on Windows 7 (64 bit) Professional edition. While trying to setup WAS  and after entering the JVM argments mentioned in
I am not able to re-start WAS.

So I have to delete the WAS profile and redo the steps with out entering the JVM arguments. It stops and starts properly.

Any solutions for the above.


Accepted answer

permanent link
Karl Weinert (2.0k42536) | answered Dec 03 '12, 9:43 a.m.
edited Dec 03 '12, 9:46 a.m.
With only 8 gigs of memory I would get rid of the -Xgc:preferredHeapBase=0x100000000setting
That tells the JVM to use  memory above the first 4 gigs, so that may be cutting it kind of close.  Especially since it requires the memory it uses to be contiguous.
You could also try to use a smaller xmx and xms setting

* I originally wrote to remove the  -Xcompressedrefs setting 
which is incorrect it should be the
-Xgc:preferredHeapBase=0x100000000 setting as corrected above

V Niranjan selected this answer as the correct answer

One other answer

permanent link
Benjamin Silverman (4.1k69) | answered Dec 02 '12, 11:11 p.m.
Usually when WAS fails to start properly after setting a property, it means the property was not set properly, or set to a value too large for the server to handle.  The setting can usually be adjusted by modifying the server.xml file rather than deleting the profile and starting over.  I suggest checking the systemout or systemerr logs for errors if this happens again so you can determine was is causing the problem.

Typically, this can happen if you set the JVM max heap size to a value larger than 1/2 the physical memory available on the system.  For example, if your server only has 4GB of RAM and you've set the max JVM heap to 4GB, WAS will not start under that condition since you need native memory available for the system to function properly.  It is also not difficult to make mistakes when setting the generic JVM arguments (ie - entering a ; instead of a :, omitting spaces between the -X properties).  I can't say exactly what caused the problem based on the information provided, but I hope it helps,

V Niranjan commented Dec 03 '12, 3:23 a.m.


I have 8GB RAM on my laptop and I am setting the following as per the infocenter.

-Xmx4g -Xms4g -Xmn512m
-Xgcpolicy:gencon -Xcompressedrefs

Let me know if the abovs is fine and the max JVM heap is set to 4096

Your answer

Register or to post your answer.