How to Suppress the 90% Memory Usage Warnings

Islington

  • Posts: 6
it worked, thanks. attached is the error that i'am receiving when trying to put 2048m or higher.

Joe

  • *
  • Posts: 2480
Apparently your system isn't able to allocate more memory to Java. If that's the case, you'll need to install additional RAM on your machine.

Islington

  • Posts: 6
Thank you, Joe! I really appreciate your help! I'll install additional ram in next few days and advise if it helped :)

Silux

  • Posts: 438
In Linux it's enough to edit the Stencyl application file and write -Xmx{number of megabytes free in your ram that you want to be avaible for Stencyl}m instead of -Xmx1024m.

I have yet to test it on windows but you should be able to do the same with cmd.
Currently working at:
Starwarrior 2097(my main project)
How to make successful games in Kongregate and the world(article)

Joe

  • *
  • Posts: 2480
This user's problem is that the machine doesn't have enough RAM installed.

Cobra Blade

  • Posts: 51
I'm using a 2011 model iMac with 4GB of RAM, but I've had something really weird happen. Up until last night Stencyl was running just fine. But this morning it refused to run. So I checked the console and it looks like I'm now getting a "Could not reserve enough space for object heap" error. So I had to lower -Xmx1536m to -Xmx1024m.

I have no idea what has changed since last night...

Cobra Blade

  • Posts: 51
If anyone else ends up in the same predicament I was in, you can just reinstall Java.
Snow Leopard users like myself can find a download here.

camaleonyco

  • Posts: 204
Hi, I'm working on a big project, and I'm running out of memory lately. Apparently I can't allocate more memory, 1536 is the limit for me. What bothers me is that I have 6GB of RAM, and running on Windows 7 I usually never use more than 2GB... Is there any rule that prevents you to allocate more than a quarter of your memory? Am I missing something?

Joe

  • *
  • Posts: 2480
You need a 64-bit version of Java to allocate more than 2 GB of memory.

Jon

  • *
  • Posts: 17524
I think this should do the trick.

1) Visit http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html

2) Download the Windows 64-bit version (offline is more reliable)

3) Run it. (I think it's an actual installer. If it is, "the folder" means the folder it installs to under program files.)

4) Copy the folder over to [STENCYL_INSTALL]/runtimes/jre-win/ and replace that.

nuyluy

  • Posts: 3
I'm devasted, this all doesn't work for Stencyl 3.4 on Win 8. I don't know what to do, please help!