This article explains that how to integrate JProfiler tool for your java project in sun solaris operating system.
Things
to know before integrating JProfiler
·
Sun
Solaris Platform type – Sparc 32-bit/64bit or x86
·
JDK
Home Directory and Version –
·
JVM
on which your
project runs - 32 bit JVM or 64 bit JVM
·
Free
Custom Ports like 8888, 8889 etc
Installation of JProfiler in
Solaris Sparc.
chmod a+x
jprofiler_unix_5_2_2.sh
./
jprofiler_unix_5_2_2.sh
During installation set the JDK
Home same as configured for your project. [export $JAVA_HOME]
Checks to be done after installation
Check whether the JVM on which your project
runs is 32-bit or 64-bit using the Java System Property
“sun.arch.data.model”
32-bit
JVM:
cd
/bin/solaris_sparc
ldd
libjprofilerti.so
64-bit
JVM:
cd
/bin/solaris_sparcv9
ldd
libjprofilerti.so
This is done to check for any
missing dependencies for this dynamic library
After verification, update the Environmental
Variable for Dynamic Libraries in Solaris with
“/bin/solaris_sparc” or
“/bin/solaris_sparcv9”.
Export LD_LIBRARY_PATH in
[/This article expalins the how to integrate JProfiler with Java project in solaris platform Things to know before integrating JProfiler • Sun Solaris Platform type – Sparc 32-bit/64bit or x86 • JDK Home Directory and Version – • JVM on which your project runs - 32 bit JVM or 64 bit JVM • Free Custom Ports like 8888, 8889 etc Installation of JProfiler in Solaris Sparc. chmod a+x jprofiler_unix_5_2_2.sh ./ jprofiler_unix_5_2_2.sh During installation set the JDK Home sa me as configured for your project. [export $JAVA_HOME]
Checks to be done after installation
with “/bin/solaris_sparc” or “/bin/solaris_sparcv9”. Export LD_LIBRARY_PATH in [//.dtprofile] for permanent updates. Integrating the Your Project Startup scripts with JProfiler configuration
This is done to check for any missing dependencies for this dynamic library After verification, update the Environmental Variable for Dynamic Libraries in SolarisCheck whether the JVM on which your project runs is 32-bit or 64-bit using the Java System Property “sun.arch.data.model” 32-bit JVM: cd/bin/solaris_sparc ldd libjprofilerti.so 64-bit JVM: cd /bin/solaris_sparcv9 ldd libjprofilerti.so
In the your project Startup scriptsAppend the location of the agent jar-agentlib:jprofilerti=port=${PORT} -Xbootclasspath/a:/bin/agent.jar Along with the java class execution command For eg:Add the following in your application ‘startup’ script,-agentlib:jprofilerti=port=${PORT} -Xbootclasspath/a:/<….>/jprofiler5/bin/agent.jar$JAVA_HOME should be same as configured for JProfiler.Sharing of JVM Libraries to be disabled à -client -Xshare:offPort number to be same as configured for the Application Session in JProfiler
JProfiler Configuration Steps
In case your project runs on a 64-bit JVM select the 64bit JVM check box.
Specify the Integration Port on which the application will be started for JProfiler to profile it
Based on whether the JVM configured is a 32-bit or 64-bit, dynamic linked libraries from
“/bin/solaris-sparc “ or “/bin/solaris-sparcv9 “ directories will be used respectively.
Select the following check boxes:
Record CPU Data on Startup and Record Allocations on Startup and click Edit on Profiling Settings
Click on Application Settings icon . Specify a unique session name to save it for future use.
Select the Start Command check box and use File chooser to select the startup script to be associated with the Profiling Session.
Also enter the command line arguments to the startup script if required. In this example,
Your Project Command line arguments
Start Profiling!!!!
0 Comments:
Post a Comment