I run a private server for my friends and it's reached the point where the world is too big for the recommended (-Xms1024m -Xmx1024m) heap allocation flag to handle (at least I think that's what's going on; Java was throwing an outOfMemoryError and closing the server). I figured it was no big deal, I'd just double the heap flags to 2GB, but now it throws an error on startup claiming it can't reserve enough space. So I checked my performance settings and it showed that I had over 10 gigs free, I watched it for about 10 minutes and it never went below 9.4 so I can't think of any way I could be running out of that much memory that quickly. Does Java have some sort of internal ceiling on heap allocations, and if so how can i circumvent it?
-Image showing the error message and RAM allocation data (sorry about all the whitespace, I'm not great with photo editing)
I run a private server for my friends and it's reached the point where the world is too big for the recommended (-Xms1024m -Xmx1024m) heap allocation flag to handle (at least I think that's what's going on; Java was throwing an outOfMemoryError and closing the server). I figured it was no big deal, I'd just double the heap flags to 2GB, but now it throws an error on startup claiming it can't reserve enough space. So I checked my performance settings and it showed that I had over 10 gigs free, I watched it for about 10 minutes and it never went below 9.4 so I can't think of any way I could be running out of that much memory that quickly. Does Java have some sort of internal ceiling on heap allocations, and if so how can i circumvent it?
-Image showing the error message and RAM allocation data (sorry about all the whitespace, I'm not great with photo editing)
Install 64-bit Java.