ãEclipse3.3.1ã¨TPTP4.4.0.3ã§Tomcatããããã¡ã¤ãªã³ã°
Eclipse2.xã¨ã3.0ã®æä»£ã«ã¯Eclipse profiler pluginãã¤ãã£ã¦Tomcatã®ãããã¡ã¤ãªã³ã°ããçµé¨ã¯ãã£ããã©ãæè¿ã¯ãããªããªã£ã¡ãã£ããã§ããããã¨ãã£ã¦ãæ¨æºã®-agent:hprofã§ã¯ãã¯ã使ãã«ãããã¨ãããã¨ã§Eclipseã¨TPTP(Test and Performance Tools Platform)ã§Tomcatã®ãããã¡ã¤ãªã³ã°ããã¦ã¿ããã¨ã«ã
ãã¦ã³ãã¼ã
- Eclipse Downloads | The Eclipse Foundationã®Eclipse Classic(140MBã®ãã¤)
ãeclipse-SDK-3.3.1-win32.zip
- Test and Performance Tools Platform All TPTP pluginsã®Runtime
ãtptp.runtime.allInOne.win32.win32.x86-TPTP-4.4.0.3.zip
- Eclipse Modeling Framework (EMF and XSD) SDK EMF SDKã®2.3.1
ãemf-sdo-xsd-SDK-2.3.1.zip
- Test and Performance Tools Platform Agent Controllerã®Runtime
ãagntctrl.win_ia32-TPTP-4.4.0.3.zip
ã¤ã³ã¹ãã¼ã«
>unzip eclipse-SDK-3.3.1-win32.zip >unzip tptp.runtime.allInOne.win32.win32.x86-TPTP-4.4.0.3.zip >mv eclipse c:\eclipse331 >unzip agntctrl.win_ia32-TPTP-4.4.0.3.zip >mv agntctrl.win_ia32-TPTP-4.4.0.3 c:\agntctrl >c:\agntctrl\bin\SetConfig.bat ãâ»ãã¹ã¦ENTER >set PATH=%PATH%;c:\agntctrl\bin
åä½ç¢ºèª
>c:\agntctrl\bin\ACServer.exe ãâ»å¥ã®DOSçªã§ã >c:\agntctrl\bin\SampleClient.exe ãOKãªãããããã£ã¨è¡¨ç¤ºããããNGãªãã¬ã¹ãã³ã¹ãªã
ACSServerã¯ãããã¡ã¤ãªã³ã°ãããã¨ãã«ã ãèµ·åãã¦ãããããWindowsãµã¼ãã¹ã¨ãã¦ç»é²ãããã¨ãã§ããã
Eclipseå ã®Javaã¢ããªã®ãããã¡ã¤ãªã³ã°
ããã¯ç°¡åã
- Eclipseå ã§ããã¸ã§ã¯ãã使ãã¦Javaã¢ããªã使
- ã¡ãã¥ã¼ããRunâProfile...ã鏿
- Java Applicationã鏿ããç¶æ ã§ãã¤ã¤ãã°å·¦ä¸ã®æ°è¦ä½æã¢ã¤ã³ã³ãã¯ãªãã¯
- å³ãã¤ã³ã®Mainã¿ãã«ããã¸ã§ã¯ãåãBrowseãã¦é¸æãã¡ã¤ã³ã¯ã©ã¹ãSearchã§é¸æ
- å³ãã¤ã³ã®Monitorã¿ãã«Java Profiling - JRE 1.5 or newerããã§ãã¯ããµãé ç®ãé©å½ã«ãã§ãã¯(ãªããæä»çã«ãã鏿ã§ããªãã仿§ï¼)
- Applyãã¿ã³æ¼ããProfileãã¿ã³æ¼ãã¨ãProfileç¨ã®ãã¼ã¹ãã¯ãã£ãã«èªåçã«åãæ¿ãããJavaã¢ããªãèµ·åãã
- Javaã¢ããªãçµããã¨ãããã¡ã¤ã«ã忢ããã
- é©å½ã«ãããã¡ã¤ã«çµæãè¦ã
ãªã¢ã¼ãã§ã®ãããã¡ã¤ãªã³ã°
æ¬æ¥ã®ããããã£ããã¨ã¯ããããªã¢ã¼ãã¯Tomcatãªããã®Webã³ã³ããä¸ã®ã¢ããªã®ãããã¡ã¤ãªã³ã°ã
TPTPã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¡ããã¡ããããæ¹ãå¤ãã£ã¦ããã®ããã¢ãã¿ãªã³ã°ãã対象ã®Javaã¢ããª(Tomcatãªã©)ãèµ·åããã¨ãã®ãªãã·ã§ã³ããç°å¢å¤æ°ããã®è¨å®ã«é¢ãã¦ãæ¤ç´¢ã§è¦ã¤ããæ
å ±ã§ã¯ãªããªããã¾ããããªããããã¨æã£ã¦ãããæ¬å®¶ã®ããã¥ã¡ã³ãã«ã¡ããã¨æ¸ããã£ã
Archived Projects | The Eclipse Foundation
To run the Java Profiling Agent in standalone mode on Windows, perform the following steps:1. Set TPTP_AC_HOME=<
>
2. Set JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.javaprofiler
3. Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
4. Set PATH=%PATH%;%JAVA_HOME%\bin
5. Execute the Java application with the -agentlib parameter as described above.
æé ã¨ãã¦ã¯
- ACServer.exeãèµ·å
- Eclipseãèµ·å
- ä¸è¨ç°å¢å¤æ°ãè¨å®ã
- Tomcatã®catalina.batã«ä»¥ä¸ã追è¨
set JAVA_OPTS=%JAVA_OPTS% -agentlib:JPIBootLoader=JPIAgent;CGProf
ãã®ä»è¨å®ä¾ã¨ãã¦ã
-agentlib:JPIBootLoader=JPIAgent;HeapProf:allocsites=true
ã¨ãã§ããããAgentContolerã®ドキュメントåç
§
- bin\startup.bat
- Tomcatãèµ·åãã(é常ããããªãé ãï¼CPUã¯èµ·åããã¾ã§ã®é100%)
- ã¡ãã¥ã¼ããRunâProfile...ã鏿
- Attach to Agentã鏿ããç¶æ ã§ãã¤ã¤ãã°å·¦ä¸ã®æ°è¦ä½æã¢ã¤ã³ã³ãã¯ãªãã¯
- å³ãã¤ã³ã®Hostã§ã¿ãã§Test Connectionãã¿ã³ãæ¼ããä¸å¿æ¥ç¶æ§ç¢ºèª
- å³ãã¤ã³ã®Agentsã¿ãã§Java Profiling - JRE 1.5 or newerããã§ãã¯ããµãé ç®ãé©å½ã«ãã§ãã¯(ãã£ã±ãæä»çã«ãã鏿ã§ããªãã)
- Applyãã¿ã³æ¼ããProfileãã¿ã³æ¼ãã¨ãProfileç¨ã®ãã¼ã¹ãã¯ãã£ãã«èªåçã«åãæ¿ãããJavaã¢ããªãèµ·åãã
- 忢ãã¿ã³ãæ¼ãã¨ãããã¡ã¤ã«ã忢ããã
- é©å½ã«ãããã¡ã¤ã«çµæãè¦ã
ã¾ã¨ã
ãããã¡ã¤ãªã³ã°ã¯ãããã«éãã§ãï¼Tomcatã®èµ·åã2ç§ã ã£ãã®ã1å2åã¨ãããããã«ãªãã¾ã)ãã¨ã¼ã¸ã³ã°ããªãããããã¡ã¤ãªã³ã°ãã¨ãã¨ããããããç¹å®ã®ã·ã¼ã±ã³ã¹ã1ãã¹ã§ã¨ã£ã¦ã¿ã¦ãã©ããããã«ããã¯ã調æ»ããã¨ããç®çã ã£ããã便å©ã«ä½¿ãããããããããTPTPã¯ãããã¡ã¤ãªã³ã°ã ããããªããèªåçã«ã·ã¼ã±ã³ã¹å³ã¨ãéçºã¨ãã¹ãã«å½¹ã«ç«ã¤ãã¼ã«ã¿ãããªã®ã§ããã°ãã使ã£ã¦ã¿ããã¨æãã¾ãã
åè
以ä¸ã¯æ®éª¸
Java6ã ã¨ã©ãããã¾ããããªããJDKã®ãã¢ã®Notepad.jarã§ãããã¦ã¿ãã
java -XrunpiAgent:server=enabled -jar Notepad.jar Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: piAgent
ã©ã¤ãã©ãªãåç §ã§ããªãï¼
set PATH=%PATH%;c:\agntctrl\bin java -XrunpiAgent:server=enabled -jar Notepad.jar FATAL ERROR: JVMPI, an experimental interface, is no longer supported. Please use the supported interface: the JVM Tool Interface (JVM TI). For information on temporary workarounds contact: [email protected] Could not resolve to JVMPI interface Error occurred during initialization of VM -Xrun library failed to init: piAgent
JVMPIã¯ãã¡ãJVMTIã使ãï¼
java -agentlib:JPIBootLoader=JPIAgent:server=enabled -jar Notepad.jar Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: JPIBootLoader
ã©ã¤ãã©ãªãåç §ã§ããªãï¼
set PATH=%PATH%;c:\agntctrl\bin;c:\agntctrl\plugins\org.eclipse.tptp.javaprofiler java -agentlib:JPIBootLoader=JPIAgent -jar Notepad.jar Error occurred during initialization of VM agent library failed to init: JPIBootLoader
ãããããã¡ã£ã½ããJDK1.5ã ã¨ã©ãã ããï¼
set PATH=%PATH%;c:\agntctrl\bin;c:\agntctrl\plugins\org.eclipse.tptp.javaprofiler c:\Program Files\Java\jdk1.5.0_05\bin\java.exe" -XrunpiAgent:server=enabled -jar Notepad.jar æ£å¸¸èµ·åï¼
ã§ãeclipseããã¯ã¢ãã¿ãªã³ã°ãã¾ãã¤ãªãããªãæãããã