Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling Web Application on JBOSS Attaching an Agent
Profiling Web Application on JBOSS Attaching an Agent [message #142915] |
Mon, 29 June 2009 06:50  |
Eclipse User |
|
|
|
Hi,
I am trying to profile a web application deployed on JBOSS 3.2.7 launching
server associating profiling agent and then attaching the agent. But i am
unable to get any profiling data Profiling and logging perspective when
opening with Execution Statistics in JBOSS. Here is my configuration
settings:
Eclipse 3.3.2
JRE 1.6
TPTP 4.4.1.
JBOSS 3.2.7
I have configured all the required plugins TPTP-WTP integration with
eclipse that
includes
# EMF and XSD 2.3.2
# Eclipse Web Tools Platform (WTP) 2.0.2
# Graphics Editor Framework (GEF) 3.3.2
# Data Tools Platform (DTP) 1.5.2
I have added following arguments in the run script of JBOSS
set JAVA_OPTS=-agentlib:JPIBootLoader=JPIAgent:server=enabled;CG Prof
%JAVA_OPTS%
Running jboss server after starting RAServer starts successfully and i get
agents to attach in the list as:
JRE 1.5 or newer with execution time analysis.
I am selecting them and setting filter as
com.one.administration.struts.action* INCLUDE
* EXCLUDE
I have also set env variables
MARTINI_LOGGER_DIRECTORY =
C:\downloads\agntctrl.win_ia32-TPTP-4.4.1\plugins\org.eclips e.tptp.javaprofiler\log
MARTINI_LOGGER_LOG_LEVEL = 5
TPTP_OUTPUT_FORMAT = xml
But I am not able to get any log file. Also the file created when
selecting option to send profile data in a file is not in xml format but
is in binary format. Binary file created has some data and is around 4 KB.
I installed All TPTP plugins version 4.4.1 in Eclipse.
And I using agntctrl.win_ia32-TPTP-4.4.1 (installed separately)for
launching the agent. May this can cause the problem?
Please help I have been trying this since a long time now.
|
|
|
Re: Profiling Web Application on JBOSS Attaching an Agent [message #142926 is a reply to message #142915] |
Mon, 29 June 2009 06:55   |
Eclipse User |
|
|
|
in addition to the previous post:
Here is the serverlog.log
<CommonBaseEvent creationTime="2009-06-29T10:14:15.198000Z"
globalInstanceId="A068F2366EC445D99AD5B8700F2FD9CD" 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="5068" subComponent="Client Compatibility
TL" threadId="3392" 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-29T10:14:16.010000Z"
globalInstanceId="AB20B77AD92A494C89F20314FA5879E4" 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="5068" subComponent="Client Compatibility
TL" threadId="5724" 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-29T10:24:16.303000Z"
globalInstanceId="A748FF3B793648329855F52FDCFD88E2" msg="A
processExitedEvent was received for which we have no corresponding agent."
severity="30" 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\agentController\AgentManager.c,
line 3006" instanceId="1" location="D-19187.synapse.com"
locationType="IPV4" processId="5068" subComponent="Agent Manager"
threadId="4892" 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-29T10:24:16.303000Z"
globalInstanceId="A6F932D7D3644704A24FE7F8D0EAE004" msg="A
processExitedEvent was received for which we have no corresponding agent."
severity="30" 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\agentController\AgentManager.c,
line 3006" instanceId="1" location="D-19187.synapse.com"
locationType="IPV4" processId="5068" subComponent="Agent Manager"
threadId="4892" 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-29T10:24:16.303000Z"
globalInstanceId="AF82444B415647849C91EA81C1A9DD7E" msg="A
processExitedEvent was received for which we have no corresponding agent."
severity="30" 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\agentController\AgentManager.c,
line 3006" instanceId="1" location="D-19187.synapse.com"
locationType="IPV4" processId="5068" subComponent="Agent Manager"
threadId="4892" 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-29T10:24:16.163000Z"
globalInstanceId="ADD32AE53CCD4C9DB13D11FA818DDC63" 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="4284" subComponent="ProcessController"
threadId="4360"/>
<situation categoryName="ReportSituation">
<situationType reasoningScope="INTERNAL" reportCategory="LOG"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation"/>
</situation>
</CommonBaseEvent>
Also after getting the list of agent to attach for the first time starting
the jboss server and launching the monitor, when i come again in the
profile configuration option to attach an agent, i don't get agents and it
says
Error retrieving agents - see log for more details.
|
|
|
Re: Profiling Web Application on JBOSS Attaching an Agent [message #142976 is a reply to message #142926] |
Tue, 30 June 2009 17:13   |
Eclipse User |
|
|
|
Hi Surbhigl,
If you choose the option to 'Profile to File', the profiling file created on
your file system that contains all the trace data is in bindary format and
can be import back into the TPTP workbench via the 'File>Import>Profile
File' options, make sure you select the right type of data in the import
dialog for import.
On the other hand, if you choose not to profile to file, all live trace data
will be sent to the workbench and viewable in the profiling views in the
Profiling and Logging perspective.
Eugene
"surbhigl " <surbhi.mittal@globallogic.com> wrote in message
news:e2d072503df161207409876906a8304e$1@www.eclipse.org...
> in addition to the previous post:
>
> Here is the serverlog.log
>
> <CommonBaseEvent creationTime="2009-06-29T10:14:15.198000Z"
> globalInstanceId="A068F2366EC445D99AD5B8700F2FD9CD" 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="5068" subComponent="Client Compatibility
> TL" threadId="3392" 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-29T10:14:16.010000Z"
> globalInstanceId="AB20B77AD92A494C89F20314FA5879E4" 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="5068" subComponent="Client Compatibility
> TL" threadId="5724" 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-29T10:24:16.303000Z"
> globalInstanceId="A748FF3B793648329855F52FDCFD88E2" msg="A
> processExitedEvent was received for which we have no corresponding agent."
> severity="30" 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\agentController\AgentManager.c,
> line 3006" instanceId="1" location="D-19187.synapse.com"
> locationType="IPV4" processId="5068" subComponent="Agent Manager"
> threadId="4892" 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-29T10:24:16.303000Z"
> globalInstanceId="A6F932D7D3644704A24FE7F8D0EAE004" msg="A
> processExitedEvent was received for which we have no corresponding agent."
> severity="30" 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\agentController\AgentManager.c,
> line 3006" instanceId="1" location="D-19187.synapse.com"
> locationType="IPV4" processId="5068" subComponent="Agent Manager"
> threadId="4892" 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-29T10:24:16.303000Z"
> globalInstanceId="AF82444B415647849C91EA81C1A9DD7E" msg="A
> processExitedEvent was received for which we have no corresponding agent."
> severity="30" 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\agentController\AgentManager.c,
> line 3006" instanceId="1" location="D-19187.synapse.com"
> locationType="IPV4" processId="5068" subComponent="Agent Manager"
> threadId="4892" 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-29T10:24:16.163000Z"
> globalInstanceId="ADD32AE53CCD4C9DB13D11FA818DDC63" 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="4284" subComponent="ProcessController"
> threadId="4360"/>
> <situation categoryName="ReportSituation">
> <situationType reasoningScope="INTERNAL" reportCategory="LOG"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="ReportSituation"/>
> </situation>
> </CommonBaseEvent>
>
>
> Also after getting the list of agent to attach for the first time starting
> the jboss server and launching the monitor, when i come again in the
> profile configuration option to attach an agent, i don't get agents and it
> says
> Error retrieving agents - see log for more details.
>
>
>
>
|
|
| | | | | |
Re: Profiling Web Application on JBOSS Attaching an Agent [message #143085 is a reply to message #143059] |
Thu, 09 July 2009 06:27   |
Eclipse User |
|
|
|
Hi,
I also tried running the profiler, changing the filter settings. In some
instances i got the following traces in the log.
Informative 07/09/09 09:52:43 2064 3 CClassRedefThread Received request to
to redefine 6 classes. isBlocking = 1
Informative 07/09/09 09:52:43 3572 3 CJavaInstrumentorManager [ClassRedefThreadProc]
6 classes successfully redefined
...................
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 5, buffer size = 1, buffer
actual size = 5)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
Informative 07/09/09 09:53:17 1184 3 CJVMTIInterface [GetLineNumberTable]
user-supplied buffer is too short. table size = 2, buffer size = 1, buffer
actual size = 2)
But i could not get any profiling data in the profiler view.
JBOSS run out of memory after trying multiple times.
|
|
|
Re: Profiling Web Application on JBOSS Attaching an Agent [message #143131 is a reply to message #143067] |
Mon, 13 July 2009 15:20   |
Eclipse User |
|
|
|
Hi Surbhigl,
Re the IAC vs AC, did you have a standalone Agent controller running and
have it setup to use port 10006?
I read your original posting again and see that you are using 441 with JRE
1.6. JRE 1.6 was not support with TPTP 441. If you have to use JRE 1.6,
please tried with latst TPTP release v4.6.
Eugene
"surbhigl " <surbhi.mittal@globallogic.com> wrote in message
news:78be54d9da49d160be169be6838007e3$1@www.eclipse.org...
> Hi,
>
> I have again tried launching the agent controller along with jboss and
> attaching the agent from the eclipse.
> This time it worked little further and started generating the log. I made
> changes in the environment variables and altered path environment variable
> to add absolute paths instead of using their created Home environment
> variables. Secondly, in the eclipse when i go to Profile dialog -> Attach
> An Agent, I have added another host i.e. localhost:10006. There was an
> entry localhost:10002. This was for IAC so I think the problem was this.
> After making all these changes, and using filter setting for my packages,
> it appears it starts to profile but with no success.
> Here is the trace from Mlog containing error :
>
> Informative 07/09/09 08:55:25 1588 3 CClassRedefThread Received request to
> to redefine 157 classes. isBlocking = 1
>
> Informative 07/09/09 08:55:33 4876 3 CGAdaptor Class
> com/one/administration/degreearea/delegate/DegreeAreaCnstDel egate was not
> instrumented because all its methods were excluded
> Informative 07/09/09 08:55:33 4876 3 CGAdaptor Class
> com/one/memberships/creditcard/delegate/CreditCardDelegate was not
> instrumented because all its methods were excluded
> Informative 07/09/09 08:55:37 2744 3 CGAdaptor Class
> com/one/csf/struts/form/SourceCodeForm was not instrumented because all
> its methods were excluded
> Informative 07/09/09 08:55:37 2744 0 CDataManager Class
> 'com/one/csf/struts/form/SourceCodeForm' has wrong instrumentation, but
> will not be redefined due to user-defined filters or an internal reason
> Informative 07/09/09 08:55:37 2744 3 CGAdaptor Class
> com/one/csf/struts/action/SourceCodeAction was not instrumented because
> all its methods were excluded
> Informative 07/09/09 08:55:37 2744 3 CGAdaptor Class
> com/one/csf/struts/action/SourceCodeAction was not instrumented because
> all its methods were excluded
> Informative 07/09/09 08:55:37 2744 0 CDataManager Class
> 'com/one/csf/struts/action/SourceCodeAction' has wrong instrumentation,
> but will not be redefined due to user-defined filters or an internal
> reason
> Informative 07/09/09 08:55:37 2744 3 CGAdaptor Class
> com/one/csf/audittrail/AuditTrail was not instrumented because all its
> methods were excluded
> Informative 07/09/09 08:55:37 2744 3 CGAdaptor Class
> com/one/csf/audittrail/AuditTrailException was not instrumented because
> all its methods were excluded
> Informative 07/09/09 08:55:40 4876 0 CJVMTIInterface RedefineClasses:
> failed to redefine 1 classes. JVMTI Error: 110
>
> Error 07/09/09 08:55:40 4876 0 CJavaInstrumentorManager RedefineClasses
> failed. Instrumented classes may be in inconsistent state
>
> And Jboss shutdown with the following errors:
> [Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
> log file).]
>
> Thanks,
>
|
|
| |
Goto Forum:
Current Time: Wed Jul 23 05:14:56 EDT 2025
Powered by FUDForum. Page generated in 1.22012 seconds
|