![]() Hint: In CQ 4.2, the serverctl script has become more advanced, allowing for providing various options on startup. Profiler agent is listening on port 10001. *** HINT ***: Use Java 5 (or newer) when possible! ![]() ![]() The agent library prints some information to the standard output (in case of CQ it is server(logs/startup.log): Now you're ready to start your application and the actual profiling. Now it is a matter of telling the JVM to actually integrate this library, which differs according to the JVM version in use: Java Version This setting makes the agent library available to the JVM. ![]() #- # enables the YourKit Java Profiler #- YJP_HOME="/home/honwai/yjp-6.0.16/bin/linux-x86-32" export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$YJP_HOME Include setting environment variables in the start-script of your application.įor example, in a CQ start script under Linux, do the following: First, enable profiling by providing the path to the respective OS agent library where the JVM is running on (see Enabling Profiling). You integrate the YourKit agent library into the JVM where the target application you want to profile is running. To be able to profile a Java application, it is necessary to provide the YourKit tool an interface to the Java application.
0 Comments
Leave a Reply. |