Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf
TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #124673] Thu, 28 February 2008 04:52 Go to next message
David Wynter is currently offline David Wynter
Messages: 4548
Registered: July 2009
Senior Member
Hi,

With the help of Assaf Yaffe I got the agent controller standalone from
TPTP 4.4.1 running HeapProf. GCProf does not run. The only change I make
is replace the HeapProf argument at the end of the -agentlib:..... java
option passed to Tomcat at start up with the GCProf argument.

When it fails it outputs this in the command window

[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
log file).]

The trace log file is the only one I can find. It has these contents:

<?xml version="1.0"?>
<TRACE>
<node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="0"
time="1204191901.950000000"/>
<processCreate processId="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
pid="896" nodeIdRef="" time="1204191901.950000000"/>
<agentCreate agentId="122c126d-db2c-433b-b6c8-ef6e7030278f"
version="2.000" processIdRef="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
agentParameters="server=standalone,filters=filters.txt"
time="1204191901.981000000"/>
<traceStart traceId="14ce1a3e-8a4f-43f9-8b11-87c04eb9d58e"
agentIdRef="122c126d-db2c-433b-b6c8-ef6e7030278f"
time="1204191901.982531026"/>
<filter pattern="com.company.tran." mode="INCLUDE"
genericPattern="SUFFIX" methodPattern="" methodMode="INCLUDE"
methodGenericPattern="PREFIX"/>
<filter pattern="java.sql." mode="INCLUDE" genericPattern="SUFFIX"
methodPattern="" methodMode="INCLUDE" methodGenericPattern="PREFIX"/>
<filter pattern="" mode="EXCLUDE" genericPattern="PREFIX"
methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
<option key="FILTERS" value="true"/>
<option key="OPTIONS" value="true"/>
<option key="STACK_INFORMATION" value="normal"/>
<option key="TICKET" value="true"/>
<option key="TIMESTAMPS" value="true"/>
<option key="TRACE_IDREFS" value="false"/>
<option key="CPU_TIME" value="false"/>

Ideas?

Thx.

David
Re: TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #124790 is a reply to message #124673] Fri, 29 February 2008 04:57 Go to previous messageGo to next message
David Wynter is currently offline David Wynter
Messages: 4548
Registered: July 2009
Senior Member
Ignore this. I need to spell things more accurately in future

david wrote:
> Hi,
>
> With the help of Assaf Yaffe I got the agent controller standalone from
> TPTP 4.4.1 running HeapProf. GCProf does not run. The only change I make
> is replace the HeapProf argument at the end of the -agentlib:..... java
> option passed to Tomcat at start up with the GCProf argument.
>
> When it fails it outputs this in the command window
>
> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
> log file).]
>
> The trace log file is the only one I can find. It has these contents:
>
> <?xml version="1.0"?>
> <TRACE>
> <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="0"
> time="1204191901.950000000"/>
> <processCreate processId="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
> pid="896" nodeIdRef="" time="1204191901.950000000"/>
> <agentCreate agentId="122c126d-db2c-433b-b6c8-ef6e7030278f"
> version="2.000" processIdRef="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
> agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
> agentParameters="server=standalone,filters=filters.txt"
> time="1204191901.981000000"/>
> <traceStart traceId="14ce1a3e-8a4f-43f9-8b11-87c04eb9d58e"
> agentIdRef="122c126d-db2c-433b-b6c8-ef6e7030278f"
> time="1204191901.982531026"/>
> <filter pattern="com.company.tran." mode="INCLUDE"
> genericPattern="SUFFIX" methodPattern="" methodMode="INCLUDE"
> methodGenericPattern="PREFIX"/>
> <filter pattern="java.sql." mode="INCLUDE" genericPattern="SUFFIX"
> methodPattern="" methodMode="INCLUDE" methodGenericPattern="PREFIX"/>
> <filter pattern="" mode="EXCLUDE" genericPattern="PREFIX"
> methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
> <option key="FILTERS" value="true"/>
> <option key="OPTIONS" value="true"/>
> <option key="STACK_INFORMATION" value="normal"/>
> <option key="TICKET" value="true"/>
> <option key="TIMESTAMPS" value="true"/>
> <option key="TRACE_IDREFS" value="false"/>
> <option key="CPU_TIME" value="false"/>
>
> Ideas?
>
> Thx.
>
> David
>
>
Re: TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #130263 is a reply to message #124790] Sun, 18 May 2008 20:26 Go to previous messageGo to next message
Eclipse User
Originally posted by: greg.chrystall.co.nz

I am having the same problem mentioned. If i run JBoss with:

-agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf

Everything works as expected and I can Profile the app in eclipse.

But when I run with:

-agentlib:JPIBootLoader=JPIAgent:server=enabled;GCProf

It dies with the following:

[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
log file).]
Full JBoss output:
============================================================ =============

JBoss Bootstrap Environment

JBOSS_HOME: /opt/jboss/jboss-4.2.2.GA

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-agentlib:JPIBootLoader=JPIAgent:server=enabled;GCProf
-Djava.net.preferIPv4Stack=true

CLASSPATH: /opt/jboss/jboss-4.2.2.GA/bin/run.jar

============================================================ =============

[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
log file).]


Any help on how to get GCProf working would be much appreciated.

Thanks,

Greg




david wrote:

> Ignore this. I need to spell things more accurately in future

> david wrote:
>> Hi,
>>
>> With the help of Assaf Yaffe I got the agent controller standalone from
>> TPTP 4.4.1 running HeapProf. GCProf does not run. The only change I make
>> is replace the HeapProf argument at the end of the -agentlib:..... java
>> option passed to Tomcat at start up with the GCProf argument.
>>
>> When it fails it outputs this in the command window
>>
>> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
>> log file).]
>>
>> The trace log file is the only one I can find. It has these contents:
>>
>> <?xml version="1.0"?>
>> <TRACE>
>> <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="0"
>> time="1204191901.950000000"/>
>> <processCreate processId="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
>> pid="896" nodeIdRef="" time="1204191901.950000000"/>
>> <agentCreate agentId="122c126d-db2c-433b-b6c8-ef6e7030278f"
>> version="2.000" processIdRef="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
>> agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
>> agentParameters="server=standalone,filters=filters.txt"
>> time="1204191901.981000000"/>
>> <traceStart traceId="14ce1a3e-8a4f-43f9-8b11-87c04eb9d58e"
>> agentIdRef="122c126d-db2c-433b-b6c8-ef6e7030278f"
>> time="1204191901.982531026"/>
>> <filter pattern="com.company.tran." mode="INCLUDE"
>> genericPattern="SUFFIX" methodPattern="" methodMode="INCLUDE"
>> methodGenericPattern="PREFIX"/>
>> <filter pattern="java.sql." mode="INCLUDE" genericPattern="SUFFIX"
>> methodPattern="" methodMode="INCLUDE" methodGenericPattern="PREFIX"/>
>> <filter pattern="" mode="EXCLUDE" genericPattern="PREFIX"
>> methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
>> <option key="FILTERS" value="true"/>
>> <option key="OPTIONS" value="true"/>
>> <option key="STACK_INFORMATION" value="normal"/>
>> <option key="TICKET" value="true"/>
>> <option key="TIMESTAMPS" value="true"/>
>> <option key="TRACE_IDREFS" value="false"/>
>> <option key="CPU_TIME" value="false"/>
>>
>> Ideas?
>>
>> Thx.
>>
>> David
>>
>>
Re: TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #130276 is a reply to message #130263] Sun, 18 May 2008 21:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: greg.chrystall.co.nz

This is a simple case of dyslexia, changing GCProf to CGProf solved my
problems.


Greg wrote:


> I am having the same problem mentioned. If i run JBoss with:

> -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf

> Everything works as expected and I can Profile the app in eclipse.

> But when I run with:

> -agentlib:JPIBootLoader=JPIAgent:server=enabled;GCProf

> It dies with the following:

> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
> log file).]
> Full JBoss output:
> ============================================================ =============

> JBoss Bootstrap Environment

> JBOSS_HOME: /opt/jboss/jboss-4.2.2.GA

> JAVA: java

> JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m
> -Dsun.rmi.dgc.client.gcInterval=3600000
> -Dsun.rmi.dgc.server.gcInterval=3600000
> -agentlib:JPIBootLoader=JPIAgent:server=enabled;GCProf
> -Djava.net.preferIPv4Stack=true

> CLASSPATH: /opt/jboss/jboss-4.2.2.GA/bin/run.jar

> ============================================================ =============

> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
> log file).]


> Any help on how to get GCProf working would be much appreciated.

> Thanks,

> Greg




> david wrote:

>> Ignore this. I need to spell things more accurately in future

>> david wrote:
>>> Hi,
>>>
>>> With the help of Assaf Yaffe I got the agent controller standalone from
>>> TPTP 4.4.1 running HeapProf. GCProf does not run. The only change I make
>>> is replace the HeapProf argument at the end of the -agentlib:..... java
>>> option passed to Tomcat at start up with the GCProf argument.
>>>
>>> When it fails it outputs this in the command window
>>>
>>> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
>>> log file).]
>>>
>>> The trace log file is the only one I can find. It has these contents:
>>>
>>> <?xml version="1.0"?>
>>> <TRACE>
>>> <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="0"
>>> time="1204191901.950000000"/>
>>> <processCreate processId="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
>>> pid="896" nodeIdRef="" time="1204191901.950000000"/>
>>> <agentCreate agentId="122c126d-db2c-433b-b6c8-ef6e7030278f"
>>> version="2.000" processIdRef="b18e4b2a-9ac8-4a7b-bba4-7156ef452f6c"
>>> agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
>>> agentParameters="server=standalone,filters=filters.txt"
>>> time="1204191901.981000000"/>
>>> <traceStart traceId="14ce1a3e-8a4f-43f9-8b11-87c04eb9d58e"
>>> agentIdRef="122c126d-db2c-433b-b6c8-ef6e7030278f"
>>> time="1204191901.982531026"/>
>>> <filter pattern="com.company.tran." mode="INCLUDE"
>>> genericPattern="SUFFIX" methodPattern="" methodMode="INCLUDE"
>>> methodGenericPattern="PREFIX"/>
>>> <filter pattern="java.sql." mode="INCLUDE" genericPattern="SUFFIX"
>>> methodPattern="" methodMode="INCLUDE" methodGenericPattern="PREFIX"/>
>>> <filter pattern="" mode="EXCLUDE" genericPattern="PREFIX"
>>> methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
>>> <option key="FILTERS" value="true"/>
>>> <option key="OPTIONS" value="true"/>
>>> <option key="STACK_INFORMATION" value="normal"/>
>>> <option key="TICKET" value="true"/>
>>> <option key="TIMESTAMPS" value="true"/>
>>> <option key="TRACE_IDREFS" value="false"/>
>>> <option key="CPU_TIME" value="false"/>
>>>
>>> Ideas?
>>>
>>> Thx.
>>>
>>> David
>>>
>>>
Re: TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #130505 is a reply to message #130276] Wed, 28 May 2008 04:09 Go to previous message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Greg wrote:
> This is a simple case of dyslexia, changing GCProf to CGProf solved my
> problems.
>

Lo and behold, this is the second time it happens, and in the same mail
thread :)

I guess we have (yet another) usability problem we should address ;)

Thanks,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:New Technology Agent Controller crashing
Next Topic:JVMTI agen not available
Goto Forum:
  


Current Time: Sat Aug 30 14:42:08 EDT 2014

Powered by FUDForum. Page generated in 0.01781 seconds