To enable to flight recording add the following server start parameter
maxage and size value 0 = unlimited
heap file dump generating same like generating
using jrcmd command
-XX:FlightRecorderOptions=defaultrecording=true,disk=true,repository=./jfr/Prod_server01,
maxage=1440ms,size=100m
Generating the heap dump automatically on OOM ( Out Of
Memory ) conditions
add the below argument in server startup parameter
-XX:+HeapDumpOnOutOfMemoryError
No comments:
Post a Comment