deeejay

Bash - Java Commands

Apr 13th, 2014
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. Display java path
  2. ===
  3. readlink -f $(which java)
  4.  
  5. View Java Process Status (http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jps.html)
  6. ===
  7. jps -lvm
  8.  
  9. View Java Virtual Machine Statistics Monitoring Tool (http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstat.html)
  10. ===
  11. jstat -gc [pid]
  12.  
  13. Display JVM HeapSize
  14. ===
  15. java -XX:+PrintFlagsFinal -version | grep HeapSize
Advertisement
Add Comment
Please, Sign In to add comment