Friday, March 13, 2009

How to remote debug JMeter?

Want to remote Debug JMeter? Here I show you how I did it?
  1. Download JMeter binary package and source package, unzip them into the same directory.
  2. Rename the eclipse.classpath file to .classpath and open the project with IDEA.
  3. Open a shell, set JVM_ARGS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
  4. Start JMeter in the previous shell.
  5. Setup remote debug in IDEA and start debug.

2 comments:

Hari said...

This doesn't help debug the run, as JMeter spawns a new Java process to do that. Anyone knows how to enable debug flags for that child process?

Hari said...

Never mind... I was mistaken, there is no subproces.