|
@@ -1,14 +1,10 @@
|
|
= Increasing Heap Memory in the jMonkeyEngine SDK
|
|
= Increasing Heap Memory in the jMonkeyEngine SDK
|
|
-:author:
|
|
|
|
-:revnumber:
|
|
|
|
-:revdate: 2016/03/17 20:48
|
|
|
|
|
|
+:revnumber: 2.0
|
|
|
|
+:revdate: 2020/07/10
|
|
:keywords: documentation, sdk, faq
|
|
:keywords: documentation, sdk, faq
|
|
-:relfileprefix: ../
|
|
|
|
-:imagesdir: ..
|
|
|
|
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
|
|
|
-If you've been working on a large scene in the SDK, there is a good chance that you will need to increase the size of Java's heap space (which is quite small by default).
|
|
|
|
|
|
+If you've been working on a large scene in the SDK, there is a good chance that you will need to increase the size of Java's heap space (which is quite small by default).
|
|
|
|
|
|
To increase the amount of heap space allocated to the SDK, we must navigate to the SDK's installation directory and edit the etc/jmonkeyplatform.conf file.
|
|
To increase the amount of heap space allocated to the SDK, we must navigate to the SDK's installation directory and edit the etc/jmonkeyplatform.conf file.
|
|
|
|
|
|
@@ -18,9 +14,9 @@ The installation directory for Mac and Windows is:
|
|
|
|
|
|
*Windows:* C:\Program Files\jmonkeyplatform
|
|
*Windows:* C:\Program Files\jmonkeyplatform
|
|
|
|
|
|
-Tweaking the parameters to be right is quite a task because sometimes when specifing a too large value, the JRE might fall back to it's default value of (for example) 32 +++<abbr title="Megabyte">MB</abbr>+++. Also there are different values to increase. Take a look at your Error Message, it will show you whether you ran out of “Heap Space or “Direct Memory.
|
|
|
|
|
|
+Tweaking the parameters to be right is quite a task because sometimes when specifing a too large value, the JRE might fall back to it's default value of (for example) 32 +++<abbr title="Megabyte">MB</abbr>+++. Also there are different values to increase. Take a look at your Error Message, it will show you whether you ran out of "`Heap Space`" or "`Direct Memory`".
|
|
|
|
|
|
-In the config file you look for default_options=“.
|
|
|
|
|
|
+In the config file you look for default_options="`.`"
|
|
If you ran out of Heap Space increase the Value of -Xmx=512m to like 1024m or even further.
|
|
If you ran out of Heap Space increase the Value of -Xmx=512m to like 1024m or even further.
|
|
If you ran out of Direct Memory, increase -XX:MaxDirectMemorySize=256M
|
|
If you ran out of Direct Memory, increase -XX:MaxDirectMemorySize=256M
|
|
|
|
|