Tuesday, September 22, 2009

Investigating OutOfMemoryError with JRA recording


enter JRMC and connect to your server;

connect the console, click on MBean, Triggers, Add... java.lang:type=Memory, HeapMemoryUsage#used
set your threshold (in bytes)

as action, set "start jra recording" and give a meaningful file name.
This way when your memory threshold is exceeded you will be able to examine what is going on, even hours after the incident.

No comments: