Hi Nima,

I uses VisualVM (https://visualvm.dev.java.net/) with the following jvm
options:

-Dcom.sun.management.jmxremote.port=3333 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Djava.rmi.server.hostname=HOST \

(replace "HOST" by your host name).

You must also set the following configuration in your felix
config.properties:

 org.osgi.framework.bootdelegation=org.netbeans.lib.profiler.*


There is an option in the GUI which allows to filter on java package names,
so you should be able to easily profile your bundle.
(warning: the cpu profiler does not work remotely)

Hope this helps;
/pierre



On Fri, Feb 19, 2010 at 8:10 AM, Nima Kaviani <[email protected]>wrote:

> Hi all,
>
> I wonder if anybody knows of any profiling library / API that would allow
> me
> to monitor the CPU and memory usages at a bundle level of granularity?
>
> I have already looked into JProfiler, but there are two problems with
> JProfiler. It is not a free tool, and also its profiling happens the level
> of objects and packages (the second issue could have been resolved if I
> could play around with the source code of course). I also found this thesis
> (http://www.vtt.fi/inf/pdf/publications/2008/P685.pdf)  which takes a
> rather
> intrusive approach in modifying the internals of an osgi framework in order
> to support resource monitoring and profiling. Any help along this line is
> very much appreciated.
>
> thanks,
> -Nima
>
> --
> http://nima.magic.ubc.ca
>

Reply via email to