This site requires JavaScript, please enable it in your browser!
Greenfoot back
Beamo
Beamo wrote ...

2017/10/9

Cannot dedicate more ram to java within greenfoot.defs

Beamo Beamo

2017/10/9

#
I've been going through a lot of discussions and apparently the only way to dedicate more ram to java is to go to the greenfoot.defs file in the lib folder and change bluej.vm.args=-Xincgc -Dapple.awt.graphics.UseQuartz=true to bluej.vm.args=-Xincgc -Dapple.awt.graphics.UseQuartz=true -Xms(insertnumber)M -Xmx(insertnumber)M. However, when I cannot find that line of code in the file. If this was removed in an update, is there any other way to dedicate more ram to greenfoot? Thanks in advance! :)
Super_Hippo Super_Hippo

2017/10/9

#
For me using 3.1.0, it's the last line (line 150).
davmac davmac

2017/10/9

#
In fact in 3.1.0 it looks like this, by default:
1
greenfoot.windows.vm.args=-Xmx512M
You should not need to add -Xms as that sets the minimum heap size. Just adjust the number (512) to what you want. Note that it's (now) greenfoot.windows.vm.args and not bluej.windows.vm.args.
Beamo Beamo

2017/10/9

#
Ah thank you!
Beamo Beamo

2017/10/9

#
I found the line and changed it to 1024M, but when I tried to save the file, it said that access was denied. I attempted to change the permissions in security but I couldn't. Any ideas?
Super_Hippo Super_Hippo

2017/10/10

#
You can't edit the file, but you can save it somewhere else and then move it back there and override the original one.
Beamo Beamo

2017/10/10

#
Oh ok! Thanks for your help!
You need to login to post a reply.