Java Remote Debugging - Solr

I have Solr 5.1 and JDK 1.8 installed on my system right now. I want to debug the Solr server, but when I try this command:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=9000 -jar start.jar 

I get this error:

 ERROR: JDWP Non-server transport dt_socket server=y suspend=y address=9000 must have a connection address specified through the 'address=' option ERROR: JDWP invalid option: -agentlib:jdwp=transport=dt_socket server=y suspend=y address=9000 

Any idea how to solve this problem?

+6
source share
2 answers

It should be something like this

java "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=9000" -jar start.jar

Now it works

+7
source

In the solr home directory you can execute

bin / solr start -f -a "-agentlib: JDWP = transport = transport on sockets, server = y, suspend = y, address = 9000"

+2
source

Source: https://habr.com/ru/post/989111/


All Articles