Posts

Showing posts from July, 2013

How to do JVM Remote debugging via SSH

Image
Last week I was getting one issue which was difficult to debug as the product was on EC2 instance. We were wasting lot of time as It was difficult to test and check the actual cause of issue.  Later I decided to attach the Eclipse debugger to my target JVM which is running on some different(EC2 instance) machine with the help of PuTTy ( PuTTY is an SSH and telnet client). Lets start with the steps : 1. Make sure your target JVM is started with these args:         -agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n 2. Create an SSH session into your PuTTy.       Open Putty, Add :          -- IP Address : "YOUR_TARGET_JVM_ADDRESS"         -- PORT : 22         -- Saved Sessions : your session name         -- Choose 'SSH' radio button and Save it.               3. Aft...