Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling Web Application on JBOSS using integreated TPTP with Eclipse.
Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142858] Thu, 25 June 2009 13:37 Go to next message
surbhigl is currently offline surbhiglFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I have successfully profiled a java application on Eclipse 3.3.2, JRE 1.6
using TPTP 4.4.1.

Now I want to profile a web application deployed on JBOSS 3.2.

I have configured all the required plugins TPTP-WTP integration that
includes
# Eclipse Web Tools Platform (WTP) 2.0.2
# Graphics Editor Framework (GEF) 3.3.2
# Data Tools Platform (DTP) 1.5.2

Apart from this i am using All TPTP plugins [ Runtime] which says it
contains TPTP-WTP (required for Profile on Server) and TPTP-BIRT (required
for BIRT Reporting) integration features.

Still I am not able to get profile option enabled for jboss server.Profile
option comes disable in the servers view as well as on right clicking the
server.

Are there are some extra plugin required to configure for enabling
profiling for JBOSS 3.2 in Eclipse 3.3.2?
Re: Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142868 is a reply to message #142858] Thu, 25 June 2009 14:55 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Surbhigl,

JBOSS is not an supported server for profiling on server feature.
You can however follow the link below to insert the necessary JVM argument
to JBOSS startup script to have an profiling agent associated with the
server process and attach to the Java process under profiled from a Eclipse
workbench to monitor the JBOSS process.

For Window, see >
http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/packaging_md/ windows/getting_started.html?root=TPTP_Project&view=co#J ava_15

For Linux, see >
http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/packaging_md/ linux/getting_started.html?root=TPTP_Project&view=co#Jav a_15

Eugene



"surbhigl " <surbhi.mittal@globallogic.com> wrote in message
news:b5567d31e23ced0df6ff5daaa5be5e9a$1@www.eclipse.org...
> Hi,
>
> I have successfully profiled a java application on Eclipse 3.3.2, JRE 1.6
> using TPTP 4.4.1.
>
> Now I want to profile a web application deployed on JBOSS 3.2.
>
> I have configured all the required plugins TPTP-WTP integration that
> includes
> # Eclipse Web Tools Platform (WTP) 2.0.2
> # Graphics Editor Framework (GEF) 3.3.2
> # Data Tools Platform (DTP) 1.5.2
>
> Apart from this i am using All TPTP plugins [ Runtime] which says it
> contains TPTP-WTP (required for Profile on Server) and TPTP-BIRT (required
> for BIRT Reporting) integration features.
>
> Still I am not able to get profile option enabled for jboss server.Profile
> option comes disable in the servers view as well as on right clicking the
> server.
> Are there are some extra plugin required to configure for enabling
> profiling for JBOSS 3.2 in Eclipse 3.3.2?
>
>
Re: Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142877 is a reply to message #142868] Fri, 26 June 2009 09:47 Go to previous messageGo to next message
surbhigl is currently offline surbhiglFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I am trying to profile jboss using the approach you told in the previous
reply.I followed following steps.

1. I downloaded the AgentController 4.4.1 for windows-32.
2. I set all the required paths variables
# Set TPTP_AC_HOME=<<Agent Controller Home>>
# Set
JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.j avaprofiler
# Set PATH=%JAVA_PROFILER_HOME%;%TPTP_AC_HOME%\bin;%PATH%
3. I modified the run script for JBOSS AS 3.2 to include
set JAVA_OPTS=-agentlib:JPIBootLoader=JPIAgent:server=enabled %JAVA_OPTS%

Then I started JBoss server. Jboss server was not able to read the
environment variables set in the system so i added all the dlls in
JAVA_PROFILER_HOME and %TPTP_AC_HOME%\bin in jdk\bin to make it run.

It started getting the required dlls but still not able to start the agent
successfully. This is the error on command prompt.

Error occurred during initialization of VM
agent library failed to init: JPIBootLoader

This is the servicelog.log
<CommonBaseEvent creationTime="2009-06-26T09:20:51.064000Z"
globalInstanceId="A63DF9DF50804F5D97E677AD68A572E2" msg="Received command
for unrecognized interface: iid=org.eclipse.tptp.eventProvider,
cmd=listenerAccepted" severity="50" version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent"
executionEnvironment=" D:\cygwin\home\build\TPTP\4.4.1\TPTP-4.4.1-200802230953\agnt ctrl\src\transport\TPTPClientCompTL\Connect2AC.c,
line 2238" instanceId="1004" location="D-19187.synapse.com"
locationType="IPV4" processId="2900" subComponent="Client Compatibility
TL" threadId="2400" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2009-06-26T09:20:51.345000Z"
globalInstanceId="ADBC2DF964CA4BE98425F8D018468D5B" msg="File server
started listening on port 10005" severity="10" version="1.0.1">
<sourceComponentId component="AgentController"
componentIdType="TPTPComponent"
executionEnvironment=" D:\cygwin\home\build\TPTP\4.4.1\TPTP-4.4.1-200802230953\agnt ctrl\src\transport\TPTPClientCompTL\fileServer.c,
line 177" instanceId="1004" location="D-19187.synapse.com"
locationType="IPV4" processId="2900" subComponent="Client Compatibility
TL" threadId="2592" componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>
<CommonBaseEvent creationTime="2009-06-26T09:21:13.299000Z"
globalInstanceId="AC6AA3DB3F894C59B8FDBE0A95710BCE" msg="PC
handleProcessEvents: Process has exited with status 0." severity="50"
version="1.0.1">
<sourceComponentId component="ProcessController"
componentIdType="TPTPComponent" componentType="Eclipse_TPTP"
executionEnvironment=" D:\cygwin\home\build\TPTP\4.4.1\TPTP-4.4.1-200802230953\agnt ctrl\src\agents\tptpProcessController\ProcessController_md.c pp,
line 284" instanceId="101" location="D-19187.synapse.com"
locationType="IPV4" processId="1652" subComponent="ProcessController"
threadId="3352"/>
<situation categoryName="ReportSituation">
<situationType reasoningScope="INTERNAL" reportCategory="LOG"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation"/>
</situation>
</CommonBaseEvent>

I also tried running the jboss after launching ACServer.exe. But it didnt
work either.
Re: Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142887 is a reply to message #142868] Fri, 26 June 2009 11:08 Go to previous messageGo to next message
surbhigl is currently offline surbhiglFriend
Messages: 13
Registered: July 2009
Junior Member
I have also tried to add

set MARTINI_LOGGER_DIRECTORY =
C:\downloads\agntctrl.win_ia32-TPTP-4.4.1\plugins\org.eclips e.tptp.javaprofiler\log
set MARTINI_LOGGER_LOG_LEVEL = 5 or 0 (tried with both)

But no log file is creating in the log directory i have specified.
Re: Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142896 is a reply to message #142868] Fri, 26 June 2009 12:40 Go to previous messageGo to next message
surbhigl is currently offline surbhiglFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I have been trying more on this and found that I was not specifying the
name of the Profiler which was giving that error. I have been able to
launch the JBOSS server, now i will try attaching agents from the eclipse.

Sorry for the previous posts, you can ignore them as of now.

Thanks,
Re: Profiling Web Application on JBOSS using integreated TPTP with Eclipse. [message #142966 is a reply to message #142896] Tue, 30 June 2009 21:09 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Surbhigl,

Good to know that it's working for you now. I would like to point out what
you missed here for future reference in the newsgroup.

JAVA_OPTS=-agentlib:JPIBootLoader=JPIAgent:server=enabled;CG prof

CGProf , HeapProf or TheradProf is needed in the JVM argument
see here for detail > Invocation of the Java Profiler from the Command Line

Eugene

"surbhigl " <surbhi.mittal@globallogic.com> wrote in message
news:d030418852b47f247531394da2197598$1@www.eclipse.org...
> Hi,
>
> I have been trying more on this and found that I was not specifying the
> name of the Profiler which was giving that error. I have been able to
> launch the JBOSS server, now i will try attaching agents from the eclipse.
>
> Sorry for the previous posts, you can ignore them as of now.
>
> Thanks,
>
>
Previous Topic:Unable to get profiler data in eclipse
Next Topic:Application Hang while profile
Goto Forum:
  


Current Time: Thu Mar 28 09:08:36 GMT 2024

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

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

Back to the top