Hi Vit.

To profile your project running on Apache Tomcat Linux AMD x86-64, you will need to install the LINUX-EM64T driver of the New technology Agent Controller on your target system.
1. Start your server with JVM argument '-XrunpiAgent' on the target system
2. From Eclipse workbench, attach to the profiling agent via a new launch configuration ie. Run > Profile ... > Attach - Java Process.
3. Select the target host, and agent, and profiling option in the launch configuration, click Profile when finish.
4. You should then see process and agent created in the Profiling monitor view.
5. If you didn't select auto monitoring in the profiling option, you will need to start monitoring the agent to start collecting profile data.

Details are also available in the online help > http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.tptp.platform.doc.user/tasks/teprlaun.htm
Details of available options in standalone mode > http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.tptp.platform.doc.user/tasks/teprofsa.htm

Please let me know if you have any further question.

Regards
------------------------------------------------------------------------------
Eugene Chan
IBM Toronto Laboratory, Canada



Vit Timchishin <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

09/22/2006 05:19 AM

Please respond to
TPTP Tracing and Profiling Tools Project developer discussions <tptp-tracing-profiling-tools-dev@eclipse.org>

To
tptp-tracing-profiling-tools-dev@eclipse.org
cc
Subject
[tptp-tracing-profiling-tools-dev] New user - new failures





Hello.

After getting used to Eclipse IDE I've switched to recently, I've tried
to use it's profiling tools and found out TPTP.
Unfortunately my experience in it is not so good - may be anyone could
help me?
My main project I am willing to profile is running on Apache Tomcat
under two servers: main and development. Both are Linux. Main one is amd
x86-64, development is i386.
After hours or trying and googling I've learned that on my main server I
can only use very new profiling agent (New Technology) in standalone
mode. Not too good, but OK. I've tried and failed:
Using CATALINA_BASE:   /usr/tomcat/Tomcat_test
Using CATALINA_HOME:   /usr/tomcat/Tomcat_test
Using CATALINA_TMPDIR: /usr/tomcat/Tomcat_test/temp
Using JRE_HOME:       /usr/java/jdk1.5.0_05/jre
[EC options: server=standalone]
CG profiler options:
EC module (JPIAgent) loaded
[EC JPIAgent received message: Internal error (see log file).]
Log file was not set!!!

Not knowing how to proceed I've tried my development server.
Here I've tried both Agent Controller
(http://www.eclipse.org/downloads/download.php?file=/tptp/4.2.0.2/TPTP-4.2.0.2-200608021100/tptpdc.linux_ia32-TPTP-4.2.0.2.zip)
and New Technology Agent Controller
(http://www.eclipse.org/downloads/download.php?file=/tptp/4.2.0.2/TPTP-4.2.0.2-200608021100/agntctrl.linux_ia32-TPTP-4.2.0.2.zip)
No luck for server/controlled modes.
I can see agents from Eclipse, can start profile but get no data (time
is counting, but all events counters are 0. In controlled mode it also
does not start application after connecting.
So I stick to standalone mode (fortunately working), but it makes so
large files... Can't they be compressed on-the-fly?
BTW: I used to restart my tomcat by simply killing it. I am getting
non-killable process with TPTP and after kill-9 I often has my
tomcat-users.xml overwritten with logging data (changing both data and
file size to ~800KB)

_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to