|Re: EC JPIAgent : Internal error...Log was not set [message #89564 is a reply to message #89507]
||Wed, 06 December 2006 21:07
| Asaf Yaffe
Registered: July 2009
David Harrigan wrote:|
> I've configured GF to use the new technology agent controller in
> standalone mode by including this into the domain.xml of the startup:
> <jvm-options>-agentlib:JPIBootLoader=JPIAgent:server=standalone;CGProf </jvm-options>
> I'm using JDK 6 rc b104 on Ubuntu 6.10 and the latest instructions and
> downloads from here:
> http://www.eclipse.org/tptp/home/downloads/installguide/Inst allGuide42.html#install_new_technology_agent_controller
> When I try to start my application, I receive this error and the app
> freezes (or doesn't continue, I can kill it by ctrl+c).
> I'm starting the application like this:
> JAVA_PROFILER_HOME=/home/david/javastuff/eclipse/plugins/org .eclipse.tptp.javaprofiler
> LD_LIBRARY_PATH=$JAVA_PROFILER_HOME:$TPTP_AC_HOME/lib asadmin
> start-domain domain1
> and then I get this:
> david@piccolino:~/javastuff/glassfish/domains/domain1/config$ glassfish
> Starting Domain domain1, please wait.
> Log redirected to
> /home/david/javastuff/glassfish-v2-b26/domains/domain1/logs/ server.log.
> Redirecting output to
> /home/david/javastuff/glassfish-v2-b26/domains/domain1/logs/ server.log
> [EC options: server=standalone]
> CG profiler options: EC module (JPIAgent) loaded
> [EC JPIAgent received message: Internal error (see log file).]
> Log file was not set!!!
> So, I'm stumpted. I can't find any log file that the app is writing to,
> nor can I find how to switch on the log.
> Can anyone help?
Generally speaking, the JVMTI Profiler does not officially support Java
6. This enhancement is tracked under Bugzilla
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=148936), feel free to add
yourself to the CC list to track our progress.
Now, let's try to understand what's really going on (you may want to
switch to Java 5 just to be on the safe side):
1. It seems that you are not using the latest JVMTI Profiler runtime
binaries. Please download the latest version from the TPTP 4.3 download
page (including an updated Agent Controller). The profiler is available
under the Technology Previews section.
2. Edit the pluginconfig.xml file in <AC Install
Dir>\plugins\org.eclipse.tptp.javaprofiler\config directory, and add the
following XML elements directly below the
<Variable name="JAVA_PROFILER_HOME" ... /> element:
<Variable name="MARTINI_LOGGER_DIRECTORY" position="replace"
<Variable name="MARTINI_LOGGER_LOG_LEVEL" position="replace" value="5" />
3. Create a directory named 'log' under
<AC Install Dir>\plugins\org.eclipse.tptp.javaprofiler
4. Restart the Agent Controller, and try to launch the profiler again.
Then, check the new 'log' directory. It should contain a log file. If
the log contain error messages, post them here so I'll know more about
Waiting for your reply,
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Powered by FUDForum
. Page generated in 0.01607 seconds