java - JVM memory dump -
we have tomcat 7 , java 7 running our application.
the last days got lot of java.lang.outofmemoryerror: permgen space errors.
so added /usr/share/tomcat7/conf/tomcat7.conf in java_opts:
# use java_opts set java.library.path libtcnative.so java_opts="[...] -xx:errorfile=/var/log/jvm_crash.log -xx:+heapdumponoutofmemoryerror -xx:heapdumppath=/home/ec2-user/dumps" but /var/log/jvm_crash.log empty , there no *.hprof files anywhere (not in /home/ec2-user/dumps, expect them be).
what did miss here?
just suggestion solve memory leak problem, use java visualvm. should located @ jdk_home/bin/jvisualvm.exe.
with tool, 1 thing track object has number of instances , objects still present in memory though not used anymore.
this video should started.
Comments
Post a Comment