How to enable JVM profiling with iAS to locate performance bottlenecks
Dear Sir,
Refer to Article ID: 4969, i want to enable JVM profiling with iAS.
But according to the procedure, i need to add one line to one variable
JAVA_ARGS on kjs, but i can't found this variable. I try to manually add
this line.
JAVA_ARGS="-Xrunhprof:cpu=samples,depth=6,thread=y -Xss512k -Xms64m
-Xmx64m"
And do the remaining procedure.
when i do the following part, i type "Ctrl" and "\" keys
simultaneously. it can run but not stopped, do you know what is the
problem?
Dumping performance data to disk
1.Go to the terminal window where you executed the ./kjs script.
2.Press the "Ctrl" and "\" keys simultaneously.
This key combination will cause the following menu to appear:
A SIGQUIT has been received. Do you want to:
[ 0 ] continue program
[ 1 ] check & print one deadlock
[ 2 ] check & print all deadlocks
[ 3 ] dump thread stacks
[ 4 ] dump lock registry
[ 5 ] heap inspection
[ 6 ] hprof dump
[ 7 ] terminate program
Type number corresponding to selected action:
3.Enter "6" to dump the performance data to a disk
http://knowledgebase.iplanet.com/ikb/kb/articles/4969.html
http://developer.java.sun.com/developer/technicalArticles//Programming/perfanal /index.html
Thanks
Angus
[1397 byte] By [
709131] at [2007-11-25 4:58:12]

Hi Angus,
From Sp3 onwards, all the kjs, kxs and kcs scripts first source a file
called iasenv.ksh located in <ias-Root>/env directory, to set the
environment variables specific to iAS. Please open this file and go to
the line where it is written if [ "$script" = "kjs" ], there you will
find the variable JAVA_ARGS, edit all the entries here and after that
try running kjs manually. I think as you are writing JAVA_ARGS
variable in kjs script, it is overriding the one which is set in
iasenv.ksh file in which few more parameters are also set with it and
is creating problem.
Please mail me if it still gives you problems, meanwhile I will try to
do it myself.
Sanjeev,
Developer Support Team iAS-India.
Angus Yiu wrote:
> Dear Sir,
>
>Refer to Article ID: 4969, i want to enable JVM profiling with
> iAS. But according to the procedure, i need to add one line to one
> variable JAVA_ARGS on kjs, but i can't found this variable. I try to
> manually add this line.
> JAVA_ARGS="-Xrunhprof:cpu=samples,depth=6,thread=y -Xss512k -Xms64m
> -Xmx64m"
> And do the remaining procedure.
>
> when i do the following part, i type "Ctrl" and "\" keys
> simultaneously. it can run but not stopped, do you know what is the
> problem?
>
> Dumping performance data to disk
>
> 1.Go to the terminal window where you executed the ./kjs
> script.
> 2.Press the "Ctrl" and "\" keys simultaneously.
>This key combination will cause the following menu to
> appear:
>
> A SIGQUIT has been received. Do you want to:
> [ 0 ] continue program
> [ 1 ] check & print one deadlock
> [ 2 ] check & print all deadlocks
> [ 3 ] dump thread stacks
> [ 4 ] dump lock registry
> [ 5 ] heap inspection
> [ 6 ] hprof dump
> [ 7 ] terminate program
> Type number corresponding to selected action:
>
> 3.Enter "6" to dump the performance data to a disk
>
>
> http://knowledgebase.iplanet.com/ikb/kb/articles/4969.html
>
> ttp://developer.java.sun.com/developer/technicalArticles//Programming/perfanal/ index.html
>
> Thanks
> Angus
--
SIGSIG -- signature too long (core dumped)
Try our New Web Based Forum at http://softwareforum.sun.com