| Summary: | Starting server with JVMTI attached to standalone Agent Controller is very slow | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Mark Birenbaum <mark> |
| Component: | TPTP | Assignee: | Bing Xu <xubing> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | asaf.yaffe, igor.alelekov, jgwest, jkubasta |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | closed460 | ||
|
Description
Mark Birenbaum
Samson, would you please do the initial investigation? See the 1.5 results as JVM 1.6 is not supported with 4.4.x Mr. Wai, to avoid wasting your time, I'll run my test on 1.5 JVMTI (I'm pretty sure I did already, but don't remember for sure) and let you know one way or the other. Confirmed I see this on JDK 1.5. This time I tested by using a clean Tomcat configuration (without my server). With JVMTI it took 4.96-5.01 seconds to start. With JVMPI it takes 0.94-0.95 seconds to start. With neither it takes 0.74-0.75 seconds to start. I tested by starting up a default tomcat 5.5.20 installation, with all sample apps except "balancer" and "ROOT" removed. My JVMPI settings: set PATH=%PATH%;%TPTP_AGENT_CONTROLLER_HOME%;%TPTP_AGENT_CONTROLLER_HOME%\bin;%JAVA_PROFILER_HOME% set JAVA_OPTS=%JAVA_OPTS% -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n My JVMTI settings: set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AGENT_CONTROLLER_HOME%\bin;%JAVA_HOME%\bin set JAVA_OPTS=%JAVA_OPTS% -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf ------ Other settings (shared by both): set TPTP_AGENT_CONTROLLER_HOME=c:\programs\agntctrl-tptp-4.4 set JAVA_PROFILER_HOME=%TPTP_AGENT_CONTROLLER_HOME%\plugins\org.eclipse.tptp.javaprofiler Hi Bing. I have transferred my bugs to you for triage. Thanks. Hi Igor, is this JVMTI related defect? If I remember correctly, support for dynamic instrumentation in "enabled" mode in the JVMTI Profiler (which allows an application to run in full speed until the profiler attaches) was added only in 4.4.0.3. Mark, can you please test the same scenarios with the latest 4.4.1 release version? Thanks, Asaf I'm afraid it actually seems worse, any possibility there's a configuration error on my part? With TPTP 4.4.1.0 JVMTI: 13.4-14.0 seconds JVMPI: 0.9 seconds Neither: 0.7 seconds -------- My config: set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AGENT_CONTROLLER_HOME%\bin;%JAVA_HOME%\bin set JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n set JAVA_OPTS=%JAVA_OPTS% -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf Doh... And of coruse there was a config error in my last one I had an extraneous load of jdwp. Yes, it's definitely much faster than before (although still significantly worse than JVMPI) With TPTP 4.4.1 JVMTI: 1.83-1.84 seconds JVMPI: 0.94 seconds Neither: 0.73 seconds Configuration: --------------- set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AGENT_CONTROLLER_HOME%\bin;%JAVA_HOME%\bin set JAVA_OPTS=%JAVA_OPTS% -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf When using it for actual development purposes (i.e., on the load of my entire application server) the impact seems to be proportionally less. My server now boots in roughly the same time for both JVMTI and JVMPI (boot time is not increased by more than 20%). So I'd be fine with declaring this bug resolved. Fixed by adding dynamic instrumentation in "enabled" mode in 4.4.0.3 As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |