Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (63 sloc) 2.92 KB

Java/JVM Notes

Table of Contents

Debugging

  • Turn on Debugger

      * java 1.5+
              
              -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044
      
      * java 1.4
              
              -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
    
  • Turn on JMX Remote Debugging

      yourJavaCommand... -Dcom.sun.management.jmxremote   
      -Dcom.sun.management.jmxremote.ssl=false   
      -Dcom.sun.management.jmxremote.authenticate=false   
      -Dcom.sun.management.jmxremote.port=1098  
    
  • Get a Thread Dump using jstack

sudo jstack -F -l {pid} > ~/{file_name} 2>&1
jar uf <jar_file> <file>
java -cp .:/usr/share/java/junit.jar org.junit.runner.JUnitCore [test class name]

Testing

Security

Keytool

Secure Password Storage

Resources

Java 8

Libraries

Design Patterns

Groovy

Groovy Libraries

Detailed Notes

💯 go to Google Drive: Java Notes for notes on the JVM, useful libraries, language information, etc.

You can’t perform that action at this time.