Calculate jvm heap size for hosting web application

I want to host a web application in a private JVM , offering 32, 64, 128, 256 MB plans.

My web application uses Spring. And I store some objects for every login session.

My question is: how can I profile my web application to find out how big it is so that I can choose a plan? How can I simulate hundreds of users at the same time?

I am developing an application using Netbeans 6.7 Java 1.6 Tomcat 6.0.18

Thanks.

+6
java profiling web-applications heap-memory web-hosting
source share
3 answers
+2
source share

I would recommend using a tool like JMeter to do load testing. You can use jvisualvm to see the main use of the heap, or grab the heap heap to see the exact details.

+1
source share

jVisualVM is a great option for monitoring the use of your application in JVM memory.

However, once you get started, you can check the JVM memory usage statistics from time to time without going to the console to run jVisualVM. If you do, this simple web application ( coachman visualizer ) may be useful.

You can protect the application by changing web.xml so that only selected roles have access to this application.

0
source share

All Articles