Matty wrote: > Howdy, > > I am trying to use the Java 6 hotspot provider's object-alloc probe to > determine where objects are being allocated in an application. When I > use the attached DTrace script [1], I keep seeing unresolved symbols > and "couldn't find start" errors in the output: > > libjvm.so`__1cNSharedRuntimeYdtrace_object_alloc_base6FpnGThread_pnHoopDesc__i_+0x7d > > libjvm.so`__1cNSharedRuntimeTdtrace_object_alloc6FpnHoopDesc__i_+0x4f > > libjvm.so`__1cNCollectedHeapbCpost_allocation_setup_common6FnLKlassHandle_pnIHeapWord_I_v_+0x121 > > libjvm.so`__1cOtypeArrayKlassIallocate6MipnGThread__pnQtypeArrayOopDesc__+0x19b > > libjvm.so`__1cKoopFactoryNnew_typeArray6FnJBasicType_ipnGThread__pnQtypeArrayOopDesc__+0x2f > > libjvm.so`__1cSInterpreterRuntimeInewarray6FpnKJavaThread_nJBasicType_i_v_+0x33 > <couldn't find start> > java/nio/ByteBuffer.allocate(I)Ljava/nio/ByteBuffer; > > sun/nio/cs/StreamDecoder.<init>(Ljava/io/InputStream;Ljava/lang/Object;Ljava/nio/charset/CharsetDecoder;)V > > sun/nio/cs/StreamDecoder.<init>(Ljava/io/InputStream;Ljava/lang/Object;Ljava/nio/charset/Charset;)V > > sun/nio/cs/StreamDecoder.forInputStreamReader(Ljava/io/InputStream;Ljava/lang/Object;Ljava/lang/String;)Lsun/nio/cs/StreamDecoder; > 0xfb402da7 > 0xfb402f0d > 0xfb402f0d > 0xfb402f0d > 0xfb402da7 > 0xfb402da7 > 0xfb66e4d4 > 0xf7308980 > 4448736
Just curious, can you run and check the following: pargs <jvm_pid> dtrace -n 'syscall:::entry/pid==xxxx/[EMAIL PROTECTED](40)] = count();}' If I recall correct you might need -XX:+ExtendedDTraceProbes for object-alloc which is much finer degree of debug. Try to add that to your JVM options and see if it is helping you. stefan _______________________________________________ dtrace-discuss mailing list [email protected]
