Difference between revisions of "Java"
From Vague Hope Wiki
(→GC) |
|||
Line 15: | Line 15: | ||
* http://mechanical-sympathy.blogspot.co.uk/2013/07/java-garbage-collection-distilled.html | * http://mechanical-sympathy.blogspot.co.uk/2013/07/java-garbage-collection-distilled.html | ||
+ | * http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html |
Revision as of 03:42, 14 December 2013
OpenJDK Heapdump
sudo yum install java-1.6.0-openjdk-devel sudo jmap -F -J-d64 -dump:live,format=b,file=/root/heap.bin 2232 sudo jstack -F 2232 > /root/stacks.txt
Remote Debug Tomcat6
In /usr/sbin/tomcat6:
-Xdebug -Xrunjdwp:transport=dt_socket,address=62277,server=y,suspend=n