vmoptions (Xmx)

Hi,

i'd love to increase the maximum amout of Java Heap Size in the 'mps.exe.vmoptions', but i'm unable to do it. When I increse the '-Xmx1200m' to any other amount, MPS wont start.

The error message is "Could not create the Java virtual machine.". I'm running MPS on a 64Bit-Windows7 System with 16G RAM.

Was anyone able to increase the max Heap-Size?

//Edit:
My current mps.exe.vmoptions looks like this:

-client
-Xss1024k
-ea
-Xmx1420m
-XX:MaxPermSize=256m
-XX:+HeapDumpOnOutOfMemoryError
-Dfile.encoding=UTF-8

Best Regards,
Simon
0
6 comments
When I increse the '-Xmx1200m' to any other amount, MPS wont start.


Increasing it up to -Xmx1420m works. Is this some sort of Magic Number?
0
Simon,

As far as I know, 32-bit JVM does not allow allocating more than 1500M.
What version of MPS are you using? And under which OS are you working?

Mihail
0
Hi Mihail,

I'm using MPS 2.0.6. I wasn't aware of using a 32-bit Version when i noticed that MPS comes with it's own JRE. Is it possible to get like an MPS 64Bit Version? Or am i able to replace the underlying JRE?

I'm running MPS on an Windows7-64Bit System.
0
Simon,

You can replace JRE, which is located in {mps_home}/jre
We use Sun JDK and JRE, so please replace with Sun versions* we haven't tested MPS with other JREs.
0
Another way is to change mps.bat to work with your 64-bit JDK.
0
I changed the path in the mps.bat from the jre to a jre64bit and it works without any problems so far.

Thank you for the fast replies.
0

Please sign in to leave a comment.