NonStop Server for Java Tools Reference (NSJ 4.2+)

-Xrunjdwp:transport=dt_socket,\
address=hostname:portnum,server=y ClassName
Note: If address option is not given, the server will start on any available
port on the local host and print portnum. This portnum should be used
by the jdb to attach.
The target JVM attaches to previously running debugger.
-listen
jdb -listen hostname:portnum
To attach a target JVM, use the following command :
java -Xnoagent -Xdebug -Djava.complier=NONE \
-Xrunjdwp:transport=dt_socket,\
address=hostname:portnum ClassName
Note: You must give the address parameter because the debugger listens at
this address.
iii.
The Debugger selects a connector.
-connect
jdb -connect option
Note: Only the com.sun.jdi.SocketListen option is supported.
The target Java VM can then attach as:
java -Xnoagent -Xdebug -Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,\
address=hostname:portnum ClassName
iv.
Transports
A Java Platform Debugger Architecture (JPDA) transport is a form of inter-process
communication used by a debugger application and the debuggee. NonStop Server for Java 4
provides a socket transport that uses the standard TCP/IP sockets to communicate between
debugger and the debuggee.
NonStop Server for Java 4 defaults to socket transport. NonStop Server for Java 4 does not
support shared memory transport.