Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Problems when profiling a standalone tomcat
Problems when profiling a standalone tomcat [message #117150] Mon, 05 November 2007 12:35 Go to previous message
Eclipse User
Originally posted by: wjfang.gmail.com

Hello,

I partially succeed to profile a standalone tomcat by setting up the
following java option:
-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf

But two annoying problems exist:

1. I set up a filter including only my classes and excluding all others. But
many org.apache.*, java.* classes are still being profiled. And they are not
directly called from my classes.

2. Profiling data can only be captured when tomcat is attached from the very
beginning. If I start tomcat, run some client test code to warm it up, then
let eclipse tptp profiler to attach to the tomcat to capture profiling data,
no data is captured!

Is it because TPTP agent only instrument bytecodes when they are first
loaded? So when all classes are loaded, attaching profiler to tomcat has no
chance to instrument bytecode.

Any insight or suggestions? Many thanks in advance!

Jerry
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Create a Deployment programmatically
Next Topic:IWAT4039E The Test Execution Harness reported the following problems:Failed to retrieve the context
Goto Forum:
  


Current Time: Sat May 25 08:55:52 EDT 2013

Powered by FUDForum. Page generated in 0.01723 seconds