This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

-Xms -Xmx parameters  RSS feed

 
satyam pat
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thanks
 
Rohan Dhapodkar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

http://java.net/projects/visualvm/content/gettingstarted.html?VisualVM_1.1.1
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!