Xerces problem when profiling Tomcat [message #116440] |
Mon, 29 October 2007 10:07 |
Eclipse User |
|
|
|
Originally posted by: svileng.gmail.com
Hello,
I'm tryng to profile a web application running on Tomcat 5.5.20 using
AgentController 4.4.0.0.
What is happening exactly is when I start the tomcat server with
"-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf" It starts to some
point and then error message like this is displayed:
"[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
log file).]".
This message is not very informative so I turned on MARTINI logger with
debug level.
What I saw at the end of the log file was like this:
Informative 10/29/07 09:48:42 4740 5 CJVMTIInterface ClassPrepare event
received: class = 'Lorg/apache/xerces/impl/xs/XMLSchemaValidator;',
generic = '(null)'
Error 10/29/07 09:48:42 4740 0 CDataManager File: DataManager.cpp (Line:
1568) condition failed: uiJVMPIMethodIndex < uiJVMPINumMethods
So I assumed that this is related to a problem during instrumentation of
xerces distribution I use with Tomcat (I just have a xercesImpl.jar in
<tomcat_dir>\common\lib). Removing xerces is not an option of course.
I looked up at the agent controller documentation an discovered that there
is filtering of which classes to be included/excluded but It doesn't seems
to work. I've placed filters.txt in the tomcat/bin directory (which should
be the current working dir) but I'm still getting the same error.
Anyway, according the documentation, the filter should be available only
to "standalone" mode and I really would like to use "enabled" mode.
Makes me wonder hasn't anybody profiled and application using xerces ,
because I wasn't able to find anything on the subject over the internet.
I have this problem for several days now and Its driving me crazy.
Please help!
|
|
|
|
Re: Xerces problem when profiling Tomcat [message #116730 is a reply to message #116693] |
Tue, 30 October 2007 08:44 |
Eclipse User |
|
|
|
Originally posted by: svileng.gmail.com
Hi Chris,
Hmm, perhaps I didn't make myself clear - I'm using single version of
xerces(2.5.0 to be precise) not multiple...And It's located in
<tocmat_dir>\common\lib
As for the filters.txt here It is, I just copied It from
<Agent_Controller_install_dir>\Resources\filters.txt:
java* * EXCLUDE
sun* * EXCLUDE
com.sun.* * EXCLUDE
com.ibm.* * EXCLUDE
org.eclipse.* * EXCLUDE
org.apache.* * EXCLUDE
org.w3c.* * EXCLUDE
org.xml.* * EXCLUDE
javax.xml.parsers.* * EXCLUDE
Thanks,
Svilen
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03249 seconds