This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Picked up _JAVA_OPTIONS: -Xmx512M in eclipse, and java games.  RSS feed

 
Joseph Alrawi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I've been running into an issue saying Picked up "_JAVA_OPTIONS: -Xmx512M" when I finish running a code in eclipse, when I code small things, this doesn't really bother me. But I'm aiming for being able to make some java games later on and I think that "Picked up _JAVA_OPTIONS: -Xmx512M" will hold me back, because in different java games, I've noticed that I am unable to allocate more RAM to them since my java is somehow only allowing a maximum of 512M. Is there any option file in my control panel or something like that which will allow me to change -Xmx to a higher value?

Thanks!
 
Henry Wong
author
Sheriff
Posts: 22867
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joseph Alrawi wrote:
I've been running into an issue saying Picked up "_JAVA_OPTIONS: -Xmx512M" when I finish running a code in eclipse, when I code small things, this doesn't really bother me. But I'm aiming for being able to make some java games later on and I think that "Picked up _JAVA_OPTIONS: -Xmx512M" will hold me back, because in different java games, I've noticed that I am unable to allocate more RAM to them since my java is somehow only allowing a maximum of 512M. Is there any option file in my control panel or something like that which will allow me to change -Xmx to a higher value?


Well, it's a JVM command line argument. To allocate more memory, you have to change it ... say ... -Xmx1024M to allow a one gigabyte heap.

For Eclipse, I believe you can change it in the start up initialization file.

Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!