Posted by edgars
on June 13, 2007 at 10:22 PM PDT
This entry talks about how enable JBoss Profiler for pre-production Applications using JBoss AS as the solution for Application Server JEE.
I will show you now how you can use JBoss Profiler as your default choice for pre-production profiling tests.
Step 1 - Download the JBoss Profiler
Go to the JBoss Profiler Project page here , and download the CR4 Version from that page
Step 2 - For Linux Users
Copy to /usr/lib the file libjbossInspector.so from /jvmpi/linux. You should put on this folder, because for Linux it works as Windows/System, so for Windows users, please copy the .dll file from jvmpi/windows into your System folder.
Step 3 - Testing your Java Library Loading
You can test if Java is really loading our profiler Library, to do that execute the following command line in console:
[root@esilva jdk1.5.0_12]# java -XrunjbossInspector:/tmp Foo
Running process 9330
Exception in thread "main" java.lang.NoClassDefFoundError: Foo
If you see on the screen a result like that, you library is working fine.
Step 4 - Deploying a Spring Sample: countries.war for Profiling issues
After to build the sample using ANT, I copied the war file to my JBOSS_HOME/servers/default/deploy and that