views:

125

answers:

2

Hello, 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.

+1  A: 

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.

Kaleb Pederson
+2  A: 
matt b
But if I want to simulate load and see how does the memory increases with every new user do I need to use JMeter in conjunction with VisualVM or YourKit?
Enrique
@Enrique - there's no reason to think that it wouldn't work.
Stephen C
Jmeter can be used to create/simulate load and VisualVM or Yourkit can be used to profile the app under load, so yes. You'd want to use them together.
matt b