Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Met problem when Invocation of the Java Profiler from the Eclipse Workbench
Met problem when Invocation of the Java Profiler from the Eclipse Workbench [message #99967] Mon, 04 June 2007 09:22 Go to next message
Eclipse UserFriend
Originally posted by: todayhill.gmail.com

Hi,
I met problem when I invoke Java Profiler from the Eclipse Workbench.
My controller agent installed on a 64-bit Linux(SLES10) and Eclipse
Workbench locate on a 32-bit Windows XP system. Following is my
operation steps:
1. Download controller
agent(agntctrl.linux_em64t-TPTP-4.4.0-200705220100.zip) and install on
Linxu.

2. After installation and config, test controller agent use command
SampleClient. After a string of counting,"All finished". It seems ok.

3. In Eclipse workbench, Run--Open profile dialog--External Java
application and then add the remote IP address and set
classpath(/home/bright/tptp/test/test.jar), main class(Run).
Then, I got a error message:
org.eclipse.core.runtime.CoreException
An application for the process that was about to be launched is not
registered with the Agent Controller. This can be caused by a missing
or corrupted configuration file.

org.eclipse.core.runtime.CoreException: An application for the process
that was about to be launched is not registered with the Agent
Controller. This can be caused by a missing or corrupted configuration
file.
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:121)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:129)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:411)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:393)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper..java:253)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1157)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:190)
at java.lang.Thread.run(Thread.java:797)

Is there anything wrong in my steps? Thanks.
Re: Met problem when Invocation of the Java Profiler from the Eclipse Workbench [message #99999 is a reply to message #99967] Mon, 04 June 2007 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: todayhill.gmail.com

BTW, I tried the steps like:
1. Add the Agent Controller 'bin' directory to the PATH and LD_LIBRARY_PATH
2. Set environment variable "JAVA_PROFILER_HOME" to "<Agent Controller
Home>\plugins\org.eclipse.tptp.javaprofiler"
3. Add "JAVA_PROFILER_HOME" to the PATH and LD_LIBRARY_PATH
4. Launch the Java 6 JVM with the following command line argument:
'-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf'

Then when I run "java
-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf", I got a error
message:
loudi:/home/bright/tptp # java
-agentlib:JPIBootLoader=JPIAgent:server=enabled;C
GProf
java: JPIBootLoader.cpp:99: jint Agent_OnLoad(JavaVM*, char*, void*):
Assertion `0' failed.
JVMDUMP006I Processing Dump Event "abort", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using
'/home/bright/tptp/core.20070604.17
4007.15650.dmp'
JVMDUMP012E Error in System Dump: cannot find core file, check "ulimit
-c" is se t high enough
JVMDUMP007I JVM Requesting Snap Dump using
'/home/bright/tptp/Snap0001.20070604.
174007.15650.trc'
JVMDUMP010I Snap Dump written to
/home/bright/tptp/Snap0001.20070604.174007.1565
0.trc
JVMDUMP007I JVM Requesting Java Dump using
'/home/bright/tptp/javacore.20070604.
174007.15650.txt'
JVMDUMP010I Java Dump written to
/home/bright/tptp/javacore.20070604.174007.1565
0.txt
JVMDUMP013I Processed Dump Event "abort", detail "".
Aborted
-bash: CGProf: command not found


QiZhang 写道:
> Hi,
> I met problem when I invoke Java Profiler from the Eclipse Workbench.
> My controller agent installed on a 64-bit Linux(SLES10) and Eclipse
> Workbench locate on a 32-bit Windows XP system. Following is my
> operation steps:
> 1. Download controller
> agent(agntctrl.linux_em64t-TPTP-4.4.0-200705220100.zip) and install on
> Linxu.
>
> 2. After installation and config, test controller agent use command
> SampleClient. After a string of counting,"All finished". It seems ok.
>
> 3. In Eclipse workbench, Run--Open profile dialog--External Java
> application and then add the remote IP address and set
> classpath(/home/bright/tptp/test/test.jar), main class(Run).
> Then, I got a error message:
> org.eclipse.core.runtime.CoreException
> An application for the process that was about to be launched is not
> registered with the Agent Controller. This can be caused by a missing
> or corrupted configuration file.
>
> org.eclipse.core.runtime.CoreException: An application for the process
> that was about to be launched is not registered with the Agent
> Controller. This can be caused by a missing or corrupted configuration
> file.
> at
> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:121)
> at
> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:129)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:411)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:393)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper..java:253)
> at
> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
> at
> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1157)
> at
> org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:190)
> at java.lang.Thread.run(Thread.java:797)
>
> Is there anything wrong in my steps? Thanks.
Re: Met problem when Invocation of the Java Profiler from the Eclipse Workbench [message #100028 is a reply to message #99999] Mon, 04 June 2007 12:12 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
QiZhang wrote:
> BTW, I tried the steps like:
> 1. Add the Agent Controller 'bin' directory to the PATH and LD_LIBRARY_PATH
> 2. Set environment variable "JAVA_PROFILER_HOME" to "<Agent Controller
> Home>\plugins\org.eclipse.tptp.javaprofiler"
> 3. Add "JAVA_PROFILER_HOME" to the PATH and LD_LIBRARY_PATH
> 4. Launch the Java 6 JVM with the following command line argument:
> '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf'
>
> Then when I run "java
> -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf", I got a error
> message:
> loudi:/home/bright/tptp # java
> -agentlib:JPIBootLoader=JPIAgent:server=enabled;C
> GProf
> java: JPIBootLoader.cpp:99: jint Agent_OnLoad(JavaVM*, char*, void*):
> Assertion `0' failed.
> JVMDUMP006I Processing Dump Event "abort", detail "" - Please Wait.
> JVMDUMP007I JVM Requesting System Dump using
> '/home/bright/tptp/core.20070604.17
> 4007.15650.dmp'
> JVMDUMP012E Error in System Dump: cannot find core file, check "ulimit
> -c" is se t high enough
> JVMDUMP007I JVM Requesting Snap Dump using
> '/home/bright/tptp/Snap0001.20070604.
> 174007.15650.trc'
> JVMDUMP010I Snap Dump written to
> /home/bright/tptp/Snap0001.20070604.174007.1565
> 0.trc
> JVMDUMP007I JVM Requesting Java Dump using
> '/home/bright/tptp/javacore.20070604.
> 174007.15650.txt'
> JVMDUMP010I Java Dump written to
> /home/bright/tptp/javacore.20070604.174007.1565
> 0.txt
> JVMDUMP013I Processed Dump Event "abort", detail "".
> Aborted
> -bash: CGProf: command not found
>
>
> QiZhang 写道:
>> Hi,
>> I met problem when I invoke Java Profiler from the Eclipse Workbench.
>> My controller agent installed on a 64-bit Linux(SLES10) and Eclipse
>> Workbench locate on a 32-bit Windows XP system. Following is my
>> operation steps:
>> 1. Download controller
>> agent(agntctrl.linux_em64t-TPTP-4.4.0-200705220100.zip) and install on
>> Linxu.
>>
>> 2. After installation and config, test controller agent use command
>> SampleClient. After a string of counting,"All finished". It seems ok.
>>
>> 3. In Eclipse workbench, Run--Open profile dialog--External Java
>> application and then add the remote IP address and set
>> classpath(/home/bright/tptp/test/test.jar), main class(Run).
>> Then, I got a error message:
>> org.eclipse.core.runtime.CoreException
>> An application for the process that was about to be launched is not
>> registered with the Agent Controller. This can be caused by a missing
>> or corrupted configuration file.
>>
>> org.eclipse.core.runtime.CoreException: An application for the process
>> that was about to be launched is not registered with the Agent
>> Controller. This can be caused by a missing or corrupted configuration
>> file.
>> at
>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:121)
>> at
>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:129)
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:411)
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:393)
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper..java:253)
>> at
>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
>> at
>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1157)
>> at
>> org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:190)
>> at java.lang.Thread.run(Thread.java:797)
>>
>> Is there anything wrong in my steps? Thanks.
Please try to surround the entire -agentlib argument with single quotes.
It usually helps....

HTH,
Asaf


--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Met problem when Invocation of the Java Profiler from the Eclipse Workbench [message #100103 is a reply to message #100028] Tue, 05 June 2007 02:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: todayhill.gmail.com

Hi Asaf,
>>Please try to surround the entire -agentlib argument with single quotes.
Do you mean I should invoke the command like this:
java '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf'
This doesn't work and will give the usage of java command.
Usage: java [-options] class [args...]
(to execute a class)
or java [-jar] [-options] jarfile [args...]
(to execute a jar file)

where options include:
-cp -classpath <directories and zip/jar files separated by :>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-? -help print this help message
-X print help on non-standard options
-assert print help on assert options



Asaf Yaffe 写道:
> QiZhang wrote:
>> BTW, I tried the steps like:
>> 1. Add the Agent Controller 'bin' directory to the PATH and LD_LIBRARY_PATH
>> 2. Set environment variable "JAVA_PROFILER_HOME" to "<Agent Controller
>> Home>\plugins\org.eclipse.tptp.javaprofiler"
>> 3. Add "JAVA_PROFILER_HOME" to the PATH and LD_LIBRARY_PATH
>> 4. Launch the Java 6 JVM with the following command line argument:
>> '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf'
>>
>> Then when I run "java
>> -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf", I got a error
>> message:
>> loudi:/home/bright/tptp # java
>> -agentlib:JPIBootLoader=JPIAgent:server=enabled;C
>> GProf
>> java: JPIBootLoader.cpp:99: jint Agent_OnLoad(JavaVM*, char*, void*):
>> Assertion `0' failed.
>> JVMDUMP006I Processing Dump Event "abort", detail "" - Please Wait.
>> JVMDUMP007I JVM Requesting System Dump using
>> '/home/bright/tptp/core.20070604.17
>> 4007.15650.dmp'
>> JVMDUMP012E Error in System Dump: cannot find core file, check "ulimit
>> -c" is se t high enough
>> JVMDUMP007I JVM Requesting Snap Dump using
>> '/home/bright/tptp/Snap0001.20070604.
>> 174007.15650.trc'
>> JVMDUMP010I Snap Dump written to
>> /home/bright/tptp/Snap0001.20070604.174007.1565
>> 0.trc
>> JVMDUMP007I JVM Requesting Java Dump using
>> '/home/bright/tptp/javacore.20070604.
>> 174007.15650.txt'
>> JVMDUMP010I Java Dump written to
>> /home/bright/tptp/javacore.20070604.174007.1565
>> 0.txt
>> JVMDUMP013I Processed Dump Event "abort", detail "".
>> Aborted
>> -bash: CGProf: command not found
>>
>>
>> QiZhang 写道:
>>> Hi,
>>> I met problem when I invoke Java Profiler from the Eclipse Workbench.
>>> My controller agent installed on a 64-bit Linux(SLES10) and Eclipse
>>> Workbench locate on a 32-bit Windows XP system. Following is my
>>> operation steps:
>>> 1. Download controller
>>> agent(agntctrl.linux_em64t-TPTP-4.4.0-200705220100.zip) and install on
>>> Linxu.
>>>
>>> 2. After installation and config, test controller agent use command
>>> SampleClient. After a string of counting,"All finished". It seems ok.
>>>
>>> 3. In Eclipse workbench, Run--Open profile dialog--External Java
>>> application and then add the remote IP address and set
>>> classpath(/home/bright/tptp/test/test.jar), main class(Run).
>>> Then, I got a error message:
>>> org.eclipse.core.runtime.CoreException
>>> An application for the process that was about to be launched is not
>>> registered with the Agent Controller. This can be caused by a missing
>>> or corrupted configuration file.
>>>
>>> org.eclipse.core.runtime.CoreException: An application for the process
>>> that was about to be launched is not registered with the Agent
>>> Controller. This can be caused by a missing or corrupted configuration
>>> file.
>>> at
>>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:121)
>>> at
>>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.createCoreException(LauncherUtility.java:129)
>>> at
>>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.handleError(TIDelegateHelper.java:411)
>>> at
>>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launchProcess(TIDelegateHelper.java:393)
>>> at
>>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHelper.launch(TIDelegateHelper..java:253)
>>> at
>>> org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
>>> at
>>> org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.delegateInit(LauncherUtility.java:1157)
>>> at
>>> org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.run(PrimaryLaunchDelegate.java:190)
>>> at java.lang.Thread.run(Thread.java:797)
>>>
>>> Is there anything wrong in my steps? Thanks.
> Please try to surround the entire -agentlib argument with single quotes.
> It usually helps....
>
> HTH,
> Asaf
>
>
Re: Met problem when Invocation of the Java Profiler from the Eclipse Workbench [message #100116 is a reply to message #100103] Tue, 05 June 2007 06:02 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
You're almost there... notice that the core-dump is gone :)

You need to specify the Java class you would like to launch. For
example, to profile the class HelloWorld located in myjar.jar, use the
following command line:

java '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf' -cp
myjar.jar HelloWorld

Also note that dynamic attach functionality is not fully implemented yet
(we expect it to be ready for tomorrow's build). Therefore, please
consider using the "server=standalone" mode for profiling into a file.
The resulting file can then be imported into the workbench for further
analysis. Please see the online documentation for more information on
"profiling in standalone mode".

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:Please help my by Agent Controller
Next Topic:A fatal missing gif - quite urgent, cant work with tptp
Goto Forum:
  


Current Time: Thu Apr 25 14:10:51 GMT 2024

Powered by FUDForum. Page generated in 0.03749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top