Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Overhead/heavy CPU load
Overhead/heavy CPU load [message #66077] Wed, 12 April 2006 06:55 Go to next message
Eclipse User
Originally posted by: torsten.romer.teliasonera.com

I just set up TPTP to profile a J2EE application running on JBoss. I have
installed the agent controller, started the RAServer and added
-XrunpiAgent:server=enabled to JBoss' JVM parameters. I can attach to the
agent and I tried an Exceution Time Analysis and it actually works, but as
soon as I start monitoring in Eclipse the JBoss process uses extremely
much CPU and the application runs so extremely slow that there is no point
in profiling.
I should probably mention that currently I run everything on the same
machine: JBoss, the agent controller, Eclipse and also the client browser.
I am filtering for only the packages of the application. But even if
JBoss/the application is idle and there are only few events, JBoss uses
between 10 and 40% CPU. As soon as I stop monitoring, it goes down to 0%.
This is not normal, right? Is there something wrong with my setup?

Thanks in advance!
Torsten
Re: Overhead/heavy CPU load [message #66323 is a reply to message #66077] Thu, 13 April 2006 12:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 005B8C5E8525714F_=
Content-Type: text/plain; charset="US-ASCII"

Here are some tips for speeding up the profiler:


1) If you're using IAC (i.e. Local Direct Connection), try using RAC
instead
2) Selecting fewer profiling options will make things faster. Try
avoiding the graphical details option and the collection of instance level
information if possible. In TPTP 4.2, we've introduced an aggregating
agent, which significantly helps with performance. To take advantage of
this, grab the latest TPTP 4.2 development build (make sure you also grab
the requirements), select execution time analysis in *compressed data*
mode and profile.
3) The most important thing is to make sure you have your filters set up
properly. In your launch configuration -> click on 'Profiling' -> Select
your profiling set -> 'Edit' -> 'Next' -> 'Next' -> Set your filter set.
Try to exclude everything you're not interested in. This is the filterset
I usually use:
Class Method Mode
org.mypackage* * INCLUDE <--
Include everything in my package
* * EXCLUDE <--
Exclude everything else

From your message, it sounds like you're already doing this.

4) If it's still too slow, try profiling to a file: -> in the 'Profiling'
tab of your launch configuration -> click on the 'Destination' tab ->
'Send profiling data to a file'. You can later import the profiling file
by going to File -> Import

Navid Mehregani
--=_alternative 005B8C5E8525714F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Here are some tips for speeding up the
profiler:</font>
<br>
<br><font size=2 face="sans-serif"><br>
1) If you're using IAC (i.e. Local Direct Connection), try using RAC instead</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
2) Selecting fewer profiling options will make things faster. &nbsp;Try
avoiding the graphical details option and the collection of instance level
information if possible. &nbsp;In TPTP 4.2, we've introduced an aggregating
agent, which significantly helps with performance. &nbsp; To take advantage
of this, grab the latest TPTP 4.2 development build (make sure you also
grab the requirements), select execution time analysis in *compressed data*
mode and profile.<br>
3) The most important thing is to make sure you have your filters set up
properly. &nbsp;In your launch configuration -&gt; click on 'Profiling'
-&gt; Select your profiling set -&gt; 'Edit' -&gt; 'Next' -&gt; 'Next'
-&gt; Set your filter set. &nbsp;Try to exclude everything you're not interested
in.</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif">This
is the filterset I usually use:</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
Class &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Method &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Mode</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
org.mypackage* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; INCLUDE &nbsp; &nbsp; &nbsp;&lt;-- &nbsp;Include everything in my
package</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; EXCLUDE &nbsp; &nbsp; &lt;-- Exclude everything
else</font><font size=3 face="Times New Roman"> </font>
<br>
<br><font size=2 face="sans-serif">From your message, it sounds like you're
already doing this.<br>
<br>
4) If it's still too slow, try profiling to a file: -&gt; in the 'Profiling'
tab of your launch configuration -&gt; click on the 'Destination' tab -&gt;
'Send profiling data to a file'. &nbsp;You can later import the profiling
&nbsp;file by going to File -&gt; Import</font><font size=3 face="Times New Roman">
<br>
<br>
Navid Mehregani</font>
--=_alternative 005B8C5E8525714F_=--
Re: Overhead/heavy CPU load [message #67118 is a reply to message #66323] Wed, 19 April 2006 12:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: torsten.romer.teliasonera.com

Hi Navid,

Sorry for my late answer.

I followed your advice and updated Eclipse to 3.2.0 RC1 and TPTP to the
newest 4.2 development build. This made a huge difference, now I can even
monitor graphical details and the monitoring overhead is very minimal. All
I tested so far works very nice and there have been no problems at all.

I must say now I am VERY impressed by TPTP. I recently got a presentation
of Compuware's J2EE Analyzer, and I thought it looked very interesting,
but now that I have seen TPTP, well... ;-)

Thanks a lot for your help!
Torsten
Re: Overhead/heavy CPU load [message #67188 is a reply to message #67118] Thu, 20 April 2006 10:41 Go to previous message
Eclipse User
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0050B97485257156_=
Content-Type: text/plain; charset="US-ASCII"

Great, I'm glad to hear that.

Navid Mehregani
--=_alternative 0050B97485257156_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Great, I'm glad to hear that.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0050B97485257156_=--
Previous Topic:Large Resource Support MySQL
Next Topic:Disabling Welcome Dialog (and others) for testing
Goto Forum:
  


Current Time: Fri Aug 22 00:02:40 EDT 2014

Powered by FUDForum. Page generated in 0.22283 seconds