Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to debug jmeter-server using JPDA?
    primarykey
    data
    text
    <p>I'm developing plugin for JMeter and I want to connect to jmeter-server at runtime from Intellij IDEA. I've added to jmeter.bat the following string:</p> <pre><code>set JVM_ARGS=-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=1099, suspend=n </code></pre> <p>But when I try to connect, I receive the following error:</p> <pre><code>Listening for transport dt_socket at address: 1099 java.lang.NoClassDefFoundError: suspend=n Caused by: java.lang.ClassNotFoundException: suspend=n at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: suspend=n. Program will exit. Exception in thread "main" errorlevel=1 </code></pre> <p>I've started jmeter and jmeter-server on the same machine, but specified port for jmeter-server. Can you explain me, what am I doing wrong?</p> <p>I tried to remove extra space in JVM_ARGS, as I was told, but still having error:</p> <pre><code> Found ApacheJMeter_core.jar Listening for transport dt_socket at address: 1099 Created remote object: UnicastServerRef [liveRef: [endpoint:[192.168.56.1:50900](local),objID:[-6928e8c:13b637ed53e:-7fff, 6493737834091623438]]] Problem creating registry: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bind Continuing... Server failed to start: java.rmi.RemoteException: Cannot start. See server log file.; nested exception is: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.io.EOFException An error occurred: Cannot start. See server log file.; nested exception is: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.io.EOFException Debugger failed to attach: timeout during handshake </code></pre> <p>Am I missing something?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload