It's not a secret anymore!
The moose likes IDEs, Version Control and other tools and the fly likes [Netbeans] Ensure memory allocated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "[Netbeans] Ensure memory allocated" Watch "[Netbeans] Ensure memory allocated" New topic

[Netbeans] Ensure memory allocated

Bill Parsh

Joined: Nov 20, 2008
Posts: 9
I have an application that is run through Netbeans that will crash after about 4 hours if I don't manually allocate memory through Properties>Run>VM Options. I move it between different computers and every time I do I create a new project. Sometimes I forget to set the memory and this causes me a huge headache.

Is there a way that I can either 1) Set the minimum and maximum memory through the code itself or 2) Access what the maximum heap size is through the code itself so I could check at startup?
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2846

"Klamath" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.

|Asking Good Questions|
jQuery in Action, 3rd edition
subject: [Netbeans] Ensure memory allocated
It's not a secret anymore!