Java method trace
You can use the method trace to trace the NIO (network I/O) code
within the Java™ Virtual Machine
(JVM). Add the following parameters to the JVM:
-Xtrace:methods={java/nio/channels/SocketChannel.*},output=/var/zexpl/logs/nio.trc
This will produce a binary file nio.trc, which
needs to be formatted using the following command:
java com.ibm.jvm.format.TraceFormat
/var/zexpl/logs/nio.trc /var/zexpl/logs/nio_trace.txt
The tracing suggested will trace only the SocketChannel class.
If you want to trace the entire network I/O code, you need to limit
the tracing to
java/nio/* in the Xtrace command. Note: Xtrace
greatly reduces the performance.