Slow profiling [message #101649] |
Mon, 25 June 2007 15:15 |
Eclipse User |
|
|
|
Originally posted by: ffanton.ibc.it
Hi everyone!
I'm sorry, I'm having sluggish performance when profiling with TPTP 4.2, and by "sluggish" I mean that a 2-seconds method takes about 50s when profiled..
I'm monitoring just execution times, and I filtered the monitored classes to the bare minimum.. Any idea of what could be the culprit? :/
My specs:
- Linux (Fedora 6) kernel 2.6.20
- Eclipse 3.2.2
- TPTP 4.2 (from Callisto website via Update Manager)
- Agent controller 4.3.0
I'm trying to profile a local class, which uses Hibernate for persistence.
Many thanks in advance, please ask if you need more information!
|
|
|
Re: Slow profiling [message #101668 is a reply to message #101649] |
Tue, 26 June 2007 06:39 |
Asaf Yaffe Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Federico Fanton wrote:
> Hi everyone!
> I'm sorry, I'm having sluggish performance when profiling with TPTP 4.2, and by "sluggish" I mean that a 2-seconds method takes about 50s when profiled..
> I'm monitoring just execution times, and I filtered the monitored classes to the bare minimum.. Any idea of what could be the culprit? :/
> My specs:
> - Linux (Fedora 6) kernel 2.6.20
> - Eclipse 3.2.2
> - TPTP 4.2 (from Callisto website via Update Manager)
> - Agent controller 4.3.0
>
> I'm trying to profile a local class, which uses Hibernate for persistence.
>
> Many thanks in advance, please ask if you need more information!
Federico,
The new JVMTI Profiler in TPTP 4.4 will probably work faster in your
case. The main reason is that only monitored classes (i.e., classes
which pass the filter criteria) are instrumented and the rest of the
application (including the Hibernate framework) runs at full speed.
To use the new profiler, you'll need Eclipse 3.3. Please check the TPTP
4.4 download page for the exact prerequisites.
HTH,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
|
|
|
Re: Slow profiling [message #101678 is a reply to message #101668] |
Tue, 26 June 2007 09:24 |
Eclipse User |
|
|
|
Originally posted by: ffanton.ibc.it
On Tue, 26 Jun 2007 09:39:51 +0300
Asaf Yaffe <asaf.yaffe@intel.com> wrote:
> The new JVMTI Profiler in TPTP 4.4 will probably work faster in your
> case. The main reason is that only monitored classes (i.e., classes
> which pass the filter criteria) are instrumented and the rest of the
> application (including the Hibernate framework) runs at full speed.
Sounds good :)
Anyway I'm puzzled by this "sudden" slowness, I've used TPTP in the past and it was much faster.. (Same VM - Sun 1.5 - but I can't remember Eclipse/TPTP versions :/ )
> To use the new profiler, you'll need Eclipse 3.3. Please check the TPTP
> 4.4 download page for the exact prerequisites.
I'll try that, many thanks for your help!
|
|
|
Re: Slow profiling [message #101766 is a reply to message #101678] |
Tue, 26 June 2007 14:58 |
Eclipse User |
|
|
|
Originally posted by: ffanton.ibc.it
On Tue, 26 Jun 2007 11:24:19 +0200
Federico Fanton <ffanton@ibc.it> wrote:
> > To use the new profiler, you'll need Eclipse 3.3. Please check the TPTP
> > 4.4 download page for the exact prerequisites.
>
> I'll try that, many thanks for your help!
I downloaded the all-in-one package (stable build) and Eclipse 3.3RC4, now when I try to profile my application (using the IAC) I get
"Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: JPIBootLoader"
I double-checked the installation instructions, but I can't figure out what's wrong.. :( Maybe I'm missing some LD_LIBRARY_PRELOAD magic?
Many thanks in advance
|
|
|
Re: Slow profiling [message #101781 is a reply to message #101766] |
Tue, 26 June 2007 15:30 |
Eclipse User |
|
|
|
Originally posted by: ffanton.ibc.it
On Tue, 26 Jun 2007 16:58:58 +0200
Federico Fanton <ffanton@ibc.it> wrote:
> "Error occurred during initialization of VM
> Could not find agent library on the library path or in the local directory: JPIBootLoader"
>
> I double-checked the installation instructions, but I can't figure out what's wrong.. :( Maybe I'm missing some LD_LIBRARY_PRELOAD magic?
Found it!
I added
LD_LIBRARY_PRELOAD=/opt/eclipse/plugins/org.eclipse.tptp.pla tform.jvmti.runtime_4.4.0.v200705041104/agent_files/linux_ia 32
to my Eclipse script, and installed the "New Java Profiler" plugin..
Everything is much smoother now, great :)
|
|
|
Re: Slow profiling [message #101791 is a reply to message #101781] |
Tue, 26 June 2007 15:32 |
Eclipse User |
|
|
|
Originally posted by: ffanton.ibc.it
On Tue, 26 Jun 2007 17:30:09 +0200
Federico Fanton <ffanton@ibc.it> wrote:
> LD_LIBRARY_PRELOAD=/opt/eclipse/plugins/org.eclipse.tptp.pla tform.jvmti.runtime_4.4.0.v200705041104/agent_files/linux_ia 32
Whoops, that's LD_LIBRARY_PATH of course, sorry ^^;
|
|
|
Powered by
FUDForum. Page generated in 0.02078 seconds