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:
Post a Comment