How to check/monitor/log Servlet memory usage on Windows?
-
I've notices several topic on how to check the memory usage of Java application on linux, but I can hardly find anything, even on Google, about a quick and easy way to perform such a check on Windows. The situation is, I've got Tomcat up and running as the Java Servlet container, inside which a Servlet is running and listening on port 9300. How can I check/monitor/log its memory usage?
-
Answer:
I've been enabling JMX in my Tomcat instances, then running VisualVM. Just add the following parameters to the Java Options using the Tomcat configuration tool (it's an icon in the system task tray). -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=/jmxremote.password Then use VisualVM to connect to "localhost:8004". VisualVM comes with the latest JDK's but is also available here: https://visualvm.dev.java.net/ As an alternative, I just started working with Psi Probe (it's a fork of Lambda Probe) and really like it. http://code.google.com/p/psi-probe/
Michael Mao at Server Fault Visit the source
Other answers
It's probably easier to configure LambdaProbe http://www.lambdaprobe.org/d/index.htm
JoseK
I'm happy to tell you there's a freeware software for windowns which can properly help you. It's called Capsa Free. I war redirected to their website by techrepublic, you can google it.
Lily
Related Q & A:
- How to reduce memory usage per virtual server?Best solution by Server Fault
- What's the relationship between .NET assembly file size and memory usage?Best solution by Programmers
- Why is the maximum memory usage 512?Best solution by answers.yahoo.com
- Physical memory dumping for windows XP?Best solution by Super User
- How do I check what Graphics Card I have on Windows 7?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.