This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Performance and the fly likes -Xms  -Xmx parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "-Xms  -Xmx parameters" Watch "-Xms  -Xmx parameters" New topic

-Xms -Xmx parameters

satyam pat

Joined: Apr 16, 2011
Posts: 14
Hi there,

how would i calculate how much stack or heap memory my application needs to start with, are there any profilers tools that can help calculate this ?

Rohan Dhapodkar

Joined: Jun 27, 2011
Posts: 23
No one can tell you how much memory your application will require, but you can use jvisualvm tool to monitor the heap memory usage by your application.
after java 1.6.13, jvisualvm is distributed with java SDK.
Rishi Shehrawat
Ranch Hand

Joined: Aug 11, 2010
Posts: 218

A load test with with the load expected in production along with monitoring using VisualVM or similar tools will give you idea about memory requirement of your application.
I agree. Here's the link:
subject: -Xms -Xmx parameters
Similar Threads
Monitor Size
size of objects in session
Iteration in XP
calculate difference in months
How to calculate two date