This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
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 Customer Requirements for Developers this week in the Jobs Discussion 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: 2791

"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|
I agree. Here's the link:
subject: [Netbeans] Ensure memory allocated
It's not a secret anymore!