Das ganze liegt (leider) an Knuddels selbst - Knuddels liefert eine Uralte Java-VM mit, die zudem ausschließlich auf 32bit läuft.

Da das ganze ausschließlich auf 32bit läuft und du (höchstwahrscheinlich) eine 64bit-Maschine besitzt, kann die VM nicht auf den vollen Speicher zugreifen.

Zitat:

Can we set more than 4GB as maximum heap size for 32 bit JVM running on 64 bit or x64 operating system?
This is a tricky question as you are running 32 bit JVM on x64 server. In my opinion you can set upto 4GB for 32 bit JVM but not more than that. Though x64 Servers has more memory for his needs and since every process can have upto 2^64 bit it may look perfectly OK for 32 bit JVM to accept 4GB as maximum heap size. In practice, I have tried both Linux and Solaris servers setting maximum heap size as 4G but it didn’t accept. Solaris goes more close to 4GB by allowing upto 3.6G (approx).


Übersetzt:
Zitat:

Können wir mehr als 4GB als Maximum der heap size (Fachbegriff) für 32bit JVM auf einem 64bit/x64 System setzen?
Das ist eine trickreiche Frage, wenn du eine 32bit VM auf einer x64 Maschine laufen hast. Man kann das ganze auf maximal 4GB für 32bit VM's setzen, aber nicht mehr. [...]


Weitere Informationen findest du hier:
https://javarevisited.blogspot.com/2013/...ava-memory.html
https://stackoverflow.com/questions/1434779/maximum-java-heap-size-of-a-32-bit-jvm-on-a-64-bit-os