I'm trying to run a SMP server on a linux server but whenever I try and give it a maximum or 3 Gb to work with it says "could not reserve enough space for object heap" when I look at "free -m" it clearly says I have over 3Gb available... Any idea on how to fix this?
I will provide more info if I need to...
It's actually somewhat north of 1G, but not too much more.
The technical limit is that 32bit Java is using a 32bit Signed integer for it's memory pointers, so the entire JVM process space is limited to 2G. Since the JVM needs memory for it's own needs, you're left with a max heap around 1.3G
I will provide more info if I need to...
Total installed is 4G. No I don't think how is this done?
It's 32 but I can assign it a max of 2048M
---
If it helps at all this is what I use to start the server:
More or less I think that's right...
32 bit OS's have a technical limit of 1024 MB (for the Java virtual machine). Unless you can upgrade, you're stuck with that amount.
Also, note that the commandline option you put there starts the server with a maximum of 2 GB, not 3.
So for 32 bit, it would be:
The technical limit is that 32bit Java is using a 32bit Signed integer for it's memory pointers, so the entire JVM process space is limited to 2G. Since the JVM needs memory for it's own needs, you're left with a max heap around 1.3G