-
1. Re: Integration with YourKit Java Profiler
wolfc Oct 3, 2011 3:05 PM (in response to smigielski)Look through bin/standalone.conf you'll find how to setup jboss.modules.system.pkgs for use with a profiler.
Looking forward to your contribution for adding YourKit Java Profiler. ;-)
-
2. Re: Integration with YourKit Java Profiler
smigielski Oct 4, 2011 2:58 AM (in response to wolfc)If you find yourself in need of profiling jbossas7 with yourkit you should do:
1. Create the module in modules directory of your jbossas7 home:
1a. create directory: modules/com/yourkit/profiler/main
1b. create file module.xml file in this directory as follows
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="com.yourkit.profiler"> <resources> <resource-root path="yjp.jar"/> <!-- Insert resources here --> </resources> </module>
1c. copy yjp.jar from yourkit lib directory to main directory.
2. add JAVA_OPTS to standalone.conf or whatever configuration file are you using:
JAVA_OPTS="$JAVA_OPTS -agentpath:<path_to_yourkit>/bin/mac/libyjpagent.jnilib -Djboss.modules.system.pkgs=com.yourkit.profiler"
of course you need to change native library according to your system environment.
3. start your yourkit and connect to your application.
-
3. Re: Integration with YourKit Java Profiler
cluxig Apr 5, 2012 1:57 PM (in response to smigielski)There might be an error, use
-Djboss.modules.system.pkgs=com.yourkit instead of
-Djboss.modules.system.pkgs=com.yourkit.profiler