Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP(Profiling using TPTP)
I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #938961] Wed, 10 October 2012 09:59 Go to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP


Java used is 1.6

I have followed all the steps mentioned in http://eclipse.org/t...ng_started.html

but whenever i am setting -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf:execdetails=true in JAVA_OPTS it is giving "Could not find agent library on the library path or in the local directory: JPIBootLoader"

I have tried everything like setting the JAVA_PROFILER_HOME to JPIBootLoader in the environment variable, also like setting the path to it. But unable to remove this error.

Also in eclipse after running the AC Server or through Integrated Agent Controller, i am not able to see the agents in the attach to agents tag

Though i am able to do an eclipse application profiling, i am not able to profile the J2EE application running in JBOSS

Please note .. i will not be able to integrate the JBOSS with eclipse,we are using ant scripts to start our server and i have given the port as 11000

Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939037 is a reply to message #938961] Wed, 10 October 2012 11:20 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I am using the following environment variables ...

set TPTP_AC_HOME=C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0
set JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.javaprofiler
set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939079 is a reply to message #939037] Wed, 10 October 2012 12:09 Go to previous messageGo to next message
Torsten Stolpmann is currently offline Torsten StolpmannFriend
Messages: 37
Registered: July 2009
Member
Did you make sure that JBoss and Agent-Controller are both running the same type of JVM (32/64 Bit)?
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939093 is a reply to message #939079] Wed, 10 October 2012 12:23 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I made ACServer Run.

Attaching the service config file:

<?xml version="1.0" encoding="UTF-8"?>
<AgentControllerConfiguration>
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH" position="replace" value="C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\java.exe"/>
<Variable name="RASERVER_HOME" position="replace" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0"/>
<Variable name="TPTP_AC_HOME" position="replace" value="%RASERVER_HOME%"/>
<Variable name="PLUGINS_HOME" position="replace" value="%RASERVER_HOME%\plugins"/>
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%\bin"/>
<Variable name="SYS_TEMP_DIR" position="replace" value="C:\Users\HKHARG~1\AppData\Local\Temp"/>
<Variable name="LOCAL_AGENT_TEMP_DIR" position="replace" value="%SYS_TEMP_DIR%"/>
<Variable name="CLASSPATH_ORG_APACHE_COMMONS_LOGGING" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.apache.commons_logging_1.0.4.v200605300431\lib\commons-logging-1.0.4.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_COMMANDS" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.core.commands_3.2.0.I20060605-1400.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_OSGI" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.osgi_3.2.0.v20060601.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.emf.common_2.2.0.v200606221156.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.emf.ecore.xmi_2.2.0.v200606221156.jar;C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.emf.ecore_2.2.0.v200606221156.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.emf.ecore.xmi_2.2.0.v200606221156.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_JFACE" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.jface_3.2.0.I20060605-1400.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_SWT" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\swt.jar"/>
<Variable name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.tptp.platform.models_4.2.0.v200606131519\fastxpath.jar;C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.tptp.platform.models_4.2.0.v200606131519\tptp-models.jar"/>
<Variable name="CLASSPATH_ORG_JUNIT" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.junit_3.8.1\junit.jar"/>
<Variable name="CLASSPATH_COM_IBM_ICU" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\com.ibm.icu_3.4.4.1.jar"/>
<Variable name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING" position="append" value="%CLASSPATH_ORG_APACHE_COMMONS_LOGGING%"/>
<Variable name="CLASSPATH" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
<Variable name="CLASSPATH" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
<Variable name="CLASSPATH" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_em64t-TPTP-4.2.0\plugins\org.eclipse.osgi_3.2.0.v20060601.jar"/>
</AgentControllerEnvironment>
<ApplicationAliases>
<Application configuration="default" executable="java.exe" location="%SYS_TEMP_DIR%" path="%JAVA_PATH%">
<Variable name="CLASSPATH" position="append" value="%CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON%"/>
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%\bin"/>
</Application>
</ApplicationAliases>
<Plugin path="%PLUGINS_HOME%"/>
<Agent path="%TPTP_AC_HOME%\agents"/>
<Logging directory="%TPTP_AC_HOME%\config" format="CBE" level="INFORMATION"/>
<ProcessController>%TPTP_AC_HOME%\bin\tptpProcessController.exe</ProcessController>
<Connection name="Dev">
<TransportLayer loadlib="socketTL" type="TPTP_SOCKET">
<Configuration>
<Port>10006</Port>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_LOG">
<Configuration>
<PipeName>acmasterlog</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_NAMEDPIPE">
<Configuration>
<PipeName>acmaster</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="sharedMemTL" type="TPTP_SHAREDMEM">
<Configuration>
<MemName>acbuffer</MemName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
<Configuration>
<Port>10002</Port>
<SecuredPort>10003</SecuredPort>
<FilePort>10005</FilePort>
<IsDataMultiplexed>false</IsDataMultiplexed>
<ProcessPolling>true</ProcessPolling>
<Jvm>C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\server\jvm.dll</Jvm>
<Version>4.2.0</Version>
<SecurityEnabled>false</SecurityEnabled>
<Hosts configuration="default">
<Allow host="LOCAL"/>
</Hosts>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpACTL" type="TPTP_ACTL">
<Configuration/>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
</Connection>
<PeerConnectionTransport>TPTP_CCTL</PeerConnectionTransport>
</AgentControllerConfiguration>





I have set also the following detaisl:

set JAVA_OPTS=-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=10 -XX:CMSIncrementalDutyCycle=50 -XX:ParallelGCThreads=3 -XX:+UseParNewGC -XX:MaxGCPauseMillis=2000 -XX:GCTimeRatio=10 -XX:+DisableExplicitGC -Dsun.rmi.dgc.client.gcInterval=1800000 -Dsun.rmi.dgc.server.gcInterval=1800000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dnet.sf.ehcache.skipUpdateCheck=true -Xss256k -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Dremoting.bind_by_host=false -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf


but when i run "ant start" to start the server i get the following error:

Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: JPIBootLoader

Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939097 is a reply to message #939093] Wed, 10 October 2012 12:24 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
only one JDK is installed, Sun 1.6 ... so i guess both are using same
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939099 is a reply to message #939093] Wed, 10 October 2012 12:28 Go to previous messageGo to next message
Torsten Stolpmann is currently offline Torsten StolpmannFriend
Messages: 37
Registered: July 2009
Member
As you are using the 64-Bit version of the AgentController your Java Runtime for the JBoss Server must also be a 64 Bit Java. Is this the case?
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939103 is a reply to message #939099] Wed, 10 October 2012 12:34 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
it seems like my JBOSS is 32 bit but the agent controller i downloaded is 64 bit. Let me try solving that, then i will get back. Thanks for pointing out!!
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939120 is a reply to message #939103] Wed, 10 October 2012 12:51 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I changed the version now i am getting the following error on JBOSS server startup ..

[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see log file).]
Press any key to continue . . .
Result: -1

The ACServer is running in the back end.

I am using agntctrl.win_ia32-TPTP-4.2.0, JBOSS 5.1 and Java 1.6

I am not getting anything on the logs ...

Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939121 is a reply to message #939120] Wed, 10 October 2012 12:52 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I copied the \plugins\org.eclipse.tptp.javaprofiler from javaprofiler.win_ia32-TPTP-4.5.2.1-201008272040
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939129 is a reply to message #939121] Wed, 10 October 2012 13:01 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I changed from

javaprofiler.win_ia32-TPTP-4.5.2.1-201008272040

to

javaprofiler.win_ia32-TPTP-4.2.0.2
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939137 is a reply to message #939129] Wed, 10 October 2012 13:11 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
if i am running ACServer it gives this error otherwise it hangs and doesn't boot
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #939914 is a reply to message #939137] Thu, 11 October 2012 06:21 Go to previous messageGo to next message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
I added the following details to PluginConfig.xml:
<Variable name="MARTINI_LOGGER_DIRECTORY" position="replace" value="%JAVA_PROFILER_HOME%\log" />
<Variable name="MARTINI_LOGGER_LOG_LEVEL" position="replace" value="5" />

I also added to serviceconfig.xml the following:
<Variable name="CLASSPATH" position="append" value="C:\Users\hkhargharia\Downloads\agntctrl.win_ia32-TPTP-4.2.0.2\plugins\org.eclipse.tptp.javaprofiler.jar"/>

Then the application server with "-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf"
started booting but after sometime it again throws the error and then suddenly stops

with the following details:

A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x77232258, pid=6568, tid=7560
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [ntdll.dll+0x22258]
#
# If you would like to submit a bug report, please visit:
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


If anyone can help, I have attached the JVM log file
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #947504 is a reply to message #938961] Wed, 17 October 2012 06:28 Go to previous messageGo to next message
Programming People is currently offline Programming PeopleFriend
Messages: 1
Registered: October 2012
Junior Member
Hi all.

If you want to know how many nodes there are in the current cluster partition, all you have to do is to ask HAPartition for the node list. HAPartition represents your cluster partition, and it contains all the information you need to know about your cluster and the nodes: their host names, IPs, position in the cluster view

If you have any question about Jboss Development are welcome.

Thanks in advance.
Re: I want to do profiling of an ear project rnning on JBOSS 5.1 usng TPTP [message #987540 is a reply to message #947504] Tue, 27 November 2012 05:17 Go to previous message
Himadri Khargharia is currently offline Himadri KharghariaFriend
Messages: 23
Registered: October 2012
Junior Member
Hi,

I am unable to see the JDBC calls anywhere in TPTP, do you have any idea how to get that done??
Previous Topic:While trying to profile an ear application
Next Topic:How to profile Weblogic Server ?
Goto Forum:
  


Current Time: Tue Apr 16 22:01:35 GMT 2024

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

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

Back to the top