|
|
Re: TPTP 4.4.1 standalone AC use works for HeapProf, but not GCProf [message #130263 is a reply to message #124790] |
Mon, 19 May 2008 00:26 |
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] |
Mon, 19 May 2008 01:23 |
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
>>>
>>>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds