Are you sure that classes from sun.rmi are displayed in the results? Could you
please attach the snapshot?
If you define instrumentation root (com.**) and instrumentation filter
(com.sun.jmx.*) which filters out the instrumentation root, the instrumentation
root takes precedence - otherwise the profiling wouldn't work at all. This means
that seeing com.sun.jmx in results is perfectly OK and works as designed.
Moreover, if the Profile new Runnables checkbox is selected, it automatically
sets all Runnable.run() methods as instrumentation roots, so it's possible that
some sun.rmi.**.run() methods are listed in results as well.
However, if you can see sun.rmi classes in results when Runnables checkbox is
not selected, it is a real problem. If we had the appropriate snapshot, we could
investigate it further.