Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Profiling show no information when I use attach to an existing process method
Profiling show no information when I use attach to an existing process method [message #135099] Wed, 27 August 2008 09:24 Go to next message
Wu is currently offline WuFriend
Messages: 2
Registered: July 2009
Junior Member
Hi.
I met issue when profiling my application.
I appreciate your any answer or tips.

I want to see why my app cost so many memory, so I launch an java
application out of eclipse with following arguments
***
-agentlib:JPIBootLoader=JPIAgent:server=controlled;HeapProf: allocsites=true
***

after it launched, I attach to it and at first I can get some log like
this:
------------------------------------------------------------ -------------------------------------START------------------ -
=============================================
Process ID: 2684
Process command line:
Machine name: BENNY-DEV
=============================================
Type Date Time TID Level Client Message
Informative 08/23/08 12:27:59 2324 0 CJVMTIInterface
Using JVMTI
Informative 08/23/08 12:30:10 2324 0
CJavaInstrumentorManager Using Martini Heap Instrumentation Technology
Informative 08/23/08 12:30:10 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 17,
buffer size = 1, buffer actual size = 17)
Informative 08/23/08 12:30:10 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 24,
buffer size = 1, buffer actual size = 24)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 4,
buffer size = 1, buffer actual size = 4)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 13,
buffer size = 1, buffer actual size = 13)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 5,
buffer size = 1, buffer actual size = 5)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 5,
buffer size = 1, buffer actual size = 5)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 5,
buffer size = 1, buffer actual size = 5)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 44,
buffer size = 1, buffer actual size = 44)
Informative 08/23/08 12:30:11 2324 3 CJVMTIInterface
[GetLineNumberTable] user-supplied buffer is too short. table size = 18,
buffer size = 1, buffer actual size = 18)
... so many lines
------------------------------------------------------------ -------------------------------------END-------------------

and after some while, this log stop to grow and my app hung (at least
seems stop to run)
from the start to the end, I can not see anything from profiling monitor
view (I can see process when I launch profiling app from eclipse)

I am not sure what is the issue here. Could you help me?

Platform:
win2k3 SP 64bits
jdk1.5.11_b3 x86 version
eclipse 3.3.1.1
tptp platform 4.4.100
tptp monitoring tools project 4.4.2.v2
tptp tracing and profiling tool project 4.3.100
...
Re: Profiling show no information when I use attach to an existing process method [message #135326 is a reply to message #135099] Sun, 31 August 2008 13:21 Go to previous message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Wu,

Please try to launch your application with the "server=standalone" option.

(e.g. -agentlib:JPIBootLoader=JPIAgent:server=standalone;HeapProf. ..)

This will cause the profiler to dump information to a file named
trace.trcxml in the current directory. Keep an eye on this file and let
me know whether it continues to grow or stops growing when your
application hangs.

If it keeps growing, it may indicate that the profiler generates too
much data that the workbench cannot process (in "controlled" mode). You
can try to set up some filters to reduce the amount of data collected.
(search this newsgroup for previous posts explaining how to define
filters...).

Thanks,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:java.exe crashes when profiling
Next Topic:URL Test : How to change hostname ?
Goto Forum:
  


Current Time: Wed Nov 26 15:37:03 GMT 2014

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

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