Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

SEBEMISMNUSA
Frequent Advisor

Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

To avoid these messages java.lang.OutOfMemoryError: Java heap space
has anyone figured out how the HP SIM sets the Java heap space.
In the file \Program Files\HP\Systems Insight Manager\javarun.bat
at the the commands line with the
java -server command . . . -Xms64m -Xmx700m -Xmn32m
(Note: I changed this to -Xmx768m -Xmx768m -Xmn256m)

There are these commands the -X which sets the new and old generation of Java Heap Space.

Then in the file \Program Files\HP\Systems Insight Manager\config\globalsettings.props
these options can be apparently set
MX_JVM_OPTS=-XX:PermSize=768m -XX:MaxPermSize=768m

Can I just all of these settings in the javarun.bat file? Or are these for "client" and "server" side Java?

End

4 REPLIES
SEBEMISMNUSA
Frequent Advisor

Re: Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

Javarun.bat does not run at startup.

The parameters, at least for startup, need to be set in the \Program Files\HP\Systems Insight Manager\config\globalsettings.prop file
this may be the answer
MX_JVM_OPTS=-XX:PermSize=128m -XX:MaxPermSize=128m -Xms1024m -Xmx1024m


Testing . . . will know in a few weeks . . .
SEBEMISMNUSA
Frequent Advisor

Re: Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

For the \Program Files\HP\Systems Insight Manager\config\globalsettings.prop file
this may be the answer
MX_JVM_OPTS=-XX:PermSize=128m -XX:MaxPermSize=128m -Xms1024m -Xmx1024m

For the mxdomainmgr task to *completely* start, the Xmx and Xms need to be greater than 800m (for 800 megabytes). I set this to 1024m (1024 megagbytes or 1 Gigabyte)

If Xmx and Xms is set too small, ex. 256m, the mxdomainmgr process will start, but not completely; the mxinventory process will *not* start. HP SIM does not work.

Permsize & MaxPermsize, google on these terms for many Sun Java related articles.

End
JarekM
Occasional Advisor

Re: Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

To resolve errors like:
â [HPSIM_DEBUG] Heap collection hitting upper limits 100% usedâ
Or
â ERROR [STDERR] java.lang.OutOfMemoryError: Java heap spaceâ
In
C:\Program Files\HP\Systems Insight Manager\logs\ mxdomainmgr.0.log and crashing of HP SIM
Or
â java.lang.OutOfMemoryError: Java heap spaceâ
in \pmp_log4j.log

Modified: For the \Program Files\HP\Systems Insight Manager\config\globalsettings.prop file
With:
MX_JVM_OPTS=-XX\:PermSize\=256m -XX\:MaxPermSize\=256m -Xms1280m -Xmx1280m


After Those changes C:\Program Files\HP\Systems Insight Manager\lbin\mxdomainmgr.exe uses 1.7 GB of RAM but system is stable for longer than 20 minutes,
mark q
Regular Advisor

Re: Java Heap Space settings, java.lang.OutOfMemoryError: Java heap space

I had to adjust mine to 1.2 gig and you have to play with it quite a bit to get it right.