-
1. Re: Out of memeory of JON Server
ips Feb 23, 2011 8:54 AM (in response to guanshuiwang)The default max heap size is 1024 MB (on Unix, this is set in JON_SERVER/bin/rhq-server.sh, and on Windows, it's set in RHQ_SERVER/bin/wrapper/rhq-server-wrapper.conf). The first thing I'd try is doubling that and restarting. If you still eventually run out of heap, then you are probably dealing with a memory leak. In that case, you can add the:
-XX:+HeapDumpOnOutOfMemoryError
option to the java command line (in the same files mentioned above) and then restart the Server. When the Server runs out of heap again, a heap dump file (j
ava_pid<pid>.hprof) will be written to disk. This dump file can be analyzed to figure out where stuff is leaking into the heap.
For a good article on out of memory errors, see:
http://java.sun.com/developer/technicalArticles/J2SE/monitoring/#Insufficient_Memory
-
2. Out of memeory of JON Server
pilhuhn Feb 23, 2011 8:55 AM (in response to guanshuiwang)Are you using / firing many alerts? Or using a large number of agents. Or large numbers of call time data?
And finally: what version is that?
-
3. Out of memeory of JON Server
guanshuiwang Feb 23, 2011 8:58 PM (in response to pilhuhn)I only define several alerts about ten . There are four agents .
I think there are no large numbers of call time data.
The version is 2.4 .
-
4. Out of memeory of JON Server
guanshuiwang Feb 23, 2011 8:59 PM (in response to ips)Thanks . I will add the parameters to analyze the cause.