How to perform memory analysis on remote Java Web Applications
•
Java
I know we can use tools like jpprofiler
Any ideas?
Solution
You have visualgc, which is not very advanced, but you can see the memory usage of your application (garbage, old, perm... Etc.)
http://java.sun.com/performance/jvmstat/visualgc.html
Recovery: you started daemon monitoring on the remote computer( http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jstatd.html , see security parameters)
JAVA_HOME/bin/jstatd -J-Djava.security.policy=jstatd.all.policy
Here is a file called jstatd all. Policy file, which contains:
grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
On a remote computer, you can use the JPS tool to debug the PID of the application:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html#jps
Finally, on your local machine, you started visualgc:
visualgc the_pid@remote_machine_address
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码