• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting -Xmx1024m on Java command?

 
medhaj hambi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...I have an application that runs out of memory frequently. I have learnt that we can use this so that that error may not occur. Can anyone tell me how to set
that particular variable permanantly...unlike just doing it run time. The reason why I was asking is...I am having an application that uses Java compiler and I donot know the reason but, I see that the program runs out of memory. So, I want to set this value permanantly as I donot use the command line option for that. I am using a particular tool.
That will be great if someone could shed some light on this.

Thanks,
-V
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably better to find out why your application is running out of memory.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And use a batch/shell program to run the program with that argument until you do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic