Bug 534450 (RHQ-1244) - should we enable heap-dump-on-error in both agent and server?
Summary: should we enable heap-dump-on-error in both agent and server?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: RHQ-1244
Product: RHQ Project
Classification: Other
Component: Documentation
Version: unspecified
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-10 15:40 UTC by John Mazzitelli
Modified: 2014-05-02 20:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-02 20:38:46 UTC
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2008-12-10 15:40:00 UTC
Should we start the server and agent with the following VM parameters:

-XX:+HeapDumpOnOutOfMemoryError writes heap dump on OutOfMemoryError (recommended)
-XX:+HeapDumpOnCtrlBreak writes heap dump together with thread dump on CTRL+BREAK 

See: http://wiki.eclipse.org/index.php/MemoryAnalyzer

These are only valid for SUN HotSpot VMs, but since it covers the majority of people's VMs, it might be useful to have this turned on by default in our launcher scripts/configuration.



Comment 1 Red Hat Bugzilla 2009-11-10 20:28:56 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1244


Comment 2 Corey Welton 2010-08-06 13:08:17 UTC
Per triage, we are going to doc this for now, provide information on how to enable if necessary.  Deon, please talk with developer to determine the best place to put this, and how to word it.

Comment 3 Deon Ballard 2010-08-06 13:42:19 UTC
I'm changing the component to Documentation for the moment, so it shows up in my queue and I don't forget about it.

Comment 4 Joseph Marques 2010-08-09 04:29:06 UTC
Here is the reference we can include in our documentation
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html#DebuggingOptions

We would suggest to people, if they are seeing the server crash due to 
OutOfMemoryError issues, to restart with the following VM options:

-XX:-HeapDumpOnOutOfMemoryError

If the user wants the heap dump file to be dropped in a particular location, 
they can additionally specify:

-XX:HeapDumpPath=./java_pid<pid>.hprof


Note You need to log in before you can comment on or make changes to this bug.