• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Netbeans] Ensure memory allocated

 
Bill Parsh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Klamath" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic