Changes between Version 25 and Version 26 of miniGlobalNotes


Ignore:
Timestamp:
2013-12-16T10:20:45-05:00 (12 years ago)
Author:
warb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • miniGlobalNotes

    v25 v26  
    3333||Chris  Continisio   || (609) 485-5869 || Christopher.CTR.Continisio@faa.gov || NIEC Support
    3434
    35 
     35=== Java Debugging ===
     36{{{
     37Step 2: Request a Thread Dump from the JVM
     38jstack
     39
     40If installed/available, we recommend using the jstack tool. It prints thread dumps to the command line console.
     41
     42To obtain a thread dump using jstack, run the following command:
     43jstack <pid>
     44
     45You can output consecutive thread dumps to a file by using the console output redirect/append directive:
     46jstack <pid> >> threaddumps.log
     47}}}
     48
     49Remote Debugging: Client Side: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-remotejava_launch_config.htm
     50
     51http://javarevisited.blogspot.com/2011/02/how-to-setup-remote-debugging-in.html
     52{{{
     53 In order to remote debug a Java application from Eclipse, that application must be started with following JVM debug options:
     54
     55java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -jar stockTradingGUI.jar
     56
     57This will start java application stockTradingGUI into debug mode using Java Debug Wire Protocol (jdwp) protocol and it will listen on port 8001 suspend=y will ensure that that application will not start running until Eclipse connect it on speicified debug port.It also important to note that application must be start before Eclipse tries to connect it other wise Eclipse will throw error "Failed to connect to remote VM. Connection refused" or "Connection refused: connect"
     58
     59Read more: http://javarevisited.blogspot.com/2011/02/how-to-setup-remote-debugging-in.html#ixzz2neS6aaZg
     60
     61
     62{{{
    3663=== SGET ===
    3764