|Re: Using TPTP to profile the osgi application in Equinox Framework [message #137956 is a reply to message #137917]
||Mon, 03 November 2008 22:13
| Eugene Chan
Registered: July 2009
I am not sure why your launch configuration does not respect the vm
argument, could you please open a defect for the problem you are seeing with
steps to reproduce the problem.
As a quick workaund, there is an Attach mode available in profiling support
which allows user to start any Java application with a Java profiler
associated and made available for an Eclipse workbench to attach and monitor
the application under profiled.
1. To start, you will have to setup the following environment variable for
Set TPTP_AC_HOME=<<Agent Controller Home>>, where <<Agent Controller Home>>
Optionally, Set PATH=%PATH%;%JAVA_HOME%\bin
2. Start Eclipse workbench where the env. var. above will be picked up.
3. In Run launch configuration of your launch, under 'Argument' tab, append
the following vm argument:
'-agentlib:JPIBootLoader=JPIAgent:server=controlled,CGProf', for detail
about the option please see here
> http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/packaging_md/ windows/getting_started.html?root=TPTP_Project&view=co#J ava_15
4. The process should starts but not running, waiting to be attached and
5. Open Profile launch configuration and create an instance of 'Attach to
Agent', in the 'Agents' tab, select the available profiler running that is
started and available for attach. Select it to start the profile session.
You will have to select the profiler and 'Edit Option' to configure the
filer for your need as well.
6. You should in this step see profiler in the profiling perspective and
data collects in the view.
"Ruibin Zhou" <firstname.lastname@example.org> wrote in message
> In an Eclipse 3.4 workspace, I am trying to profile an osgi application in
> Equinox Framework, but the whole profiling is terminated after the method
> Activate() in the bundles are finished even if I set the VM argument
> "-Dosgi.noShutdown=true" in the profile launch configuration. I also try
> set this argument in config.ini and still it doesn't work. Can somebody
> help me how to configure the TPTP to pick up the VM arguments in the
> Equinox Framework launch configuration? Thanks!
Powered by FUDForum
. Page generated in 0.01957 seconds