On Jan 3, 2008 9:32 PM, Keith McGuigan <[EMAIL PROTECTED]> wrote:
> Matty wrote:
> > Howdy,
> >
> > I received the following error today when I attempted to run a DTrace
> > script that uses the Java hotspot provider:
> >
> > $ dtrace -s dbmethodprofile.d
> > dtrace: failed to compile script methods.d: line 15: probe description
> > :::method-entry does not match any probes
> >
> Not sure what your script is doing, but did you try writing it like this:

It was using a probe similar to the following:

hotspot*:::method-entry
/ ... /
{}

The script worked fine after I rebooted the server, so I don't think
the script is to blame.

> > The Java process that I was attempting to trace was started with the
> > "-XX:+DTraceMethodProbes" option, so the method-* probes should be
> > available.  When I did a bit of digging, I noticed that the hotspot
> > probes were still enabled  after the process exited:
> >
> > $ ps -ef | grep java
> >     root  6988  6803   0 01:43:53 pts/1       0:00 grep java
> >
> > $ dtrace -l | grep hotspot |more
> >  3515 hotspot10316         libjvm.so
> > __1cTClassLoadingServiceTnotify_class_loaded6FpnNinstanceKlass_b_v_
> > clas
> > s-loaded
> >  3516 hotspot10316         libjvm.so
> > __1cTClassLoadingServiceVnotify_class_unloaded6FpnNinstanceKlass__v_
> > cla
> > ss-unloaded
> >  3517 hotspot10316         libjvm.so
> > __1cHnmethodbFpost_compiled_method_load_event6M_v_
> > compiled-method-load
> >  3518 hotspot10316         libjvm.so
> > __1cHnmethodbBpost_compiled_method_unload6M_v_ compiled-method-unload
> >  3519 hotspot10316         libjvm.so
> > __1cHnmethodbAmake_not_entrant_or_zombie6Mi_v_ compiled-method-unload
> >  3520 hotspot10316         libjvm.so
> > __1cVVM_ParallelGCSystemGCEdoit6M_v_ gc-begin
> >  3521 hotspot10316         libjvm.so
> > __1cbMVM_ParallelGCFailedPermanentAllocationEdoit6M_v_ gc-begin
> >  3522 hotspot10316         libjvm.so
> > __1cbDVM_ParallelGCFailedAllocationEdoit6M_v_ gc-begin
> >  3523 hotspot10316         libjvm.so  __1cRVM_GenCollectFullEdoit6M_v_ 
> > gc-begin
> >  3524 hotspot10316         libjvm.so
> > __1cbAVM_GenCollectForAllocationEdoit6M_v_ gc-begin
> >      < ..... >
> >
>
> What was the pid of the java process that went away?  Could it be that a
> different process (10316) is running and providing those probes?
> libjvm.so and the hotspot provider aren't necessarily only linked to the
> 'java' executable - browsers and other launchers can load libjvm.so and
> this would register probes like this as well.

I am not 100% sure what the PID was, but I am certain there were no
Java processes running (at least according to ps). After I rebooted
the server, everything worked flawlessly. Unless anyone has any ideas,
I will open up a ticket with Sun support. This appears to be some sort
of bug.

Thanks,
- Ryan
-- 
UNIX Administrator
http://prefetch.net
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to