Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » EC JPIAgent : Internal error...Log was not set
EC JPIAgent : Internal error...Log was not set [message #89507] Wed, 06 December 2006 13:30 Go to next message
David Harrigan is currently offline David HarriganFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

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:

TPTP_AC_HOME=/home/david/javastuff/agent_ng
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?

-=david=-
Re: EC JPIAgent : Internal error...Log was not set [message #89564 is a reply to message #89507] Wed, 06 December 2006 21:07 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
David Harrigan wrote:
> Hi,
>
> 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:
>
> TPTP_AC_HOME=/home/david/javastuff/agent_ng
> 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?
>
> -=david=-
>
>
>

David,

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"
value="%JAVA_PROFILER_HOME%\log" />
<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
your problem.

Waiting for your reply,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Re: EC JPIAgent : Internal error...Log was not set [message #89578 is a reply to message #89564] Wed, 06 December 2006 21:13 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Asaf Yaffe wrote:
>
> 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"
> value="%JAVA_PROFILER_HOME%\log" />
> <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
> your problem.
>

I was too quick on the Copy&Paste so I failed to notice that you're not
using the workbench to do the profiling. Sorry about that.
You can skip steps 2 and 4. You don't need the Agent Controller in order
to profiler in standalone mode.

Add the following environment variables to your launch script:
MARTINI_LOGGER_DIRECTORY=$JAVA_PROFILER_HOME/log
MARTINI_LOGGER_LOG_LEVEL=5

And then launch the profiler the same way you did before. Then examine
the log file in $JAVA_PROFILER_HOME/log and post it here if you see any
error messages.

Cheers!
Asaf


--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Previous Topic:64-bit version of TPTP profiler for solaris/sparc 64 bit
Next Topic:Process control using TPTP
Goto Forum:
  


Current Time: Fri Mar 29 04:57:23 GMT 2024

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

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

Back to the top