0
votes

I added the following line to the run.sh file which activates remote debugging:

set JAVA_OPTS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

However, it causes the server to not be restarted! I don't even get an exception, because the server.log file isn't updated at all!

1
Try using suspend=n. See also stackoverflow.com/questions/11568756/…. - Vadzim
But stackoverflow.com/questions/3534384/… suggests the opposite... - user940016
@Vadzim is right suspend=y makes the VM wait until you connect a debugger suspend=n starts normally. - Philippe Marschall

1 Answers

3
votes

You are using Windows syntax in shell script for *nix OS. You need to add something like this to run.sh:

JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
export JAVA_OPTS