Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Is this an error in HeapProf
Is this an error in HeapProf [message #118134] Tue, 13 November 2007 18:12 Go to next message
Eclipse UserFriend
Originally posted by: thor.coldfirelabs.com

I'm using the most recent Agent Controller software on a Windows XP
platform under a Java 5 JDK. I'm attempting to do a standalone profile of
a JBOSS app which I start up from the command line. I get the following
error on the command line after the application go through its start-up
sequence for a few minutes:

---Begin---
[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
log file
).]
---End---

There's actually more than that coming before, but its all application
level test.

I have the following environment variables set up for the run:
---Begin---
set
MARTINI_LOGGER_DIRECTORY=C:\TPTP_AgentController\plugins\org .eclipse.tptp.javaprofiler\log-heap
set MARTINI_LOGGER_LOG_LEVEL=5
set TPTP_AC_HOME=c:\TPTP_AgentController
set JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.j avaprofiler
set
JAVA_OPTS=-agentlib:JPIBootLoader=JPIAgent:server=standalone ,filters=%TPTP_AC_HOME%\config\heapfilters.txt,file=%TPTP_AC _HOME%\config\traceheap.trcxml;HeapProf:allocsites=true
---End---

The last few lines of the martini log are:
---Begin---
Informative 11/13/07 17:10:58 3676 5 CDataManager Updated instrumentation
information for method
'newInstance((I[Ljava/lang/Object;)Ljava/lang/Object;)' (id = 188882)
Informative 11/13/07 17:10:58 3676 5 CDataManager Updated instrumentation
information for method 'getMaxIndex(()I)' (id = 188883)
Informative 11/13/07 17:10:58 3676 5 CDataManager Updated instrumentation
information for class
'org/hibernate/proxy/HibernateProxy$$FastClassByCGLIB$$76d69 142' (id =
14954)
Error 11/13/07 17:10:58 3676 0 CHeapAdaptor Found 'new' without mathcing
'invokespecial' instructions. Method
org/hibernate/proxy/HibernateProxy$$FastClassByCGLIB$$76d691 42.newInstance((I[Ljava/lang/Object;)Ljava/lang/Object;)
---End---

I set up the filters to have "org.hibernate.* * INCLUDE" as the first
line, but that doesn't make any difference.

It looks to me like an instrumentation problem with the profiler. but I
thought I'd ask people who know the tool better.

Is it a bug in the profiler, or am I doing something wrong?

Thanks,
-Ted Horoschak
Re: Is this an error in HeapProf [message #118471 is a reply to message #118134] Tue, 20 November 2007 06:49 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Ted,

This is a bug in the profiler. It is a known issue described here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197638

Is it possible for you to provide us with a small JBoss application that
reproduces this problem? It will greatly help in root-causing this
defect. If you can, please upload it as an attachment to the Bugzilla
entry mentioned above.

As a workaround, try to EXCLUDE the Hibernate-generated classes from
your profiling session by adding the following filter to your filters file:

org.hibernate.* * EXCLUDE

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:Collecting Object References - part 2
Next Topic:classes in default package
Goto Forum:
  


Current Time: Wed Nov 26 16:35:00 GMT 2014

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

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