2 Replies Latest reply: Jun 19, 2008 3:24 AM by 807557 RSS

    Stack trace of java application using Dtrace

    807557
      Hi all

      i want to view the stack trace of the real time java application using DTrace probes.
      i am using jrts provider for finding the information of real time threads.
      In this i have used the ustack(), jstack() and this gives the
      following type of information

      libjvm.so`__1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_+0x5e
      libjvm.so`__1cMthread_entry6FpnKJavaThread_pnGThread__v_+0xc8
      libjvm.so`__1cKJavaThreadRthread_main_inner6M_v_+0x51
      libjvm.so`__1cKJavaThreadDrun6M_v_+0x163
      libjvm.so`__1cG_start6Fpv_0_+0x4c
      libc.so.1`_thr_setup+0x4e
      libc.so.1`_lwp_start

      But i want to trace following type of information

      java.net.SocketInputStream.socketRead0(Native Method)
      java.net.SocketInputStream.read(SocketInputStream.java:129)
      java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      java.io.BufferedInputStream.read(BufferedInputStream.java:235)
      java.io.FilterInputStream.read(FilterInputStream.java:66)
      sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:448)
      sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.
      java:707)
      java.lang.Thread.run(Thread.java:713)