Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compute jvm heap size to host web application

I want to host a web application on a private JVM they offer 32, 64, 128, 256 MB plans.

My web application uses Spring. And I store some objects for every logged in user session.

My question is: How can I profile my web app to see how much heap size it needs so I can choose a plan?, How can I simulate hundreds of users logged in at the same time?

I'm developing the application using Netbeans 6.7 Java 1.6 Tomcat 6.0.18

Thank you.

like image 684
Enrique Avatar asked Apr 06 '10 20:04

Enrique


2 Answers

  • For profiling you can use VisualVM, YourKit, etc.
  • For simulating load you can use Apache JMeter
like image 172
matt b Avatar answered Nov 17 '22 06:11

matt b


I'd recommend using a tool like JMeter to do your load testing. You can use jvisualvm to see basic heap usage or grab a heap dump to see exact details.

like image 1
Kaleb Pederson Avatar answered Nov 17 '22 05:11

Kaleb Pederson