Two possibilities come to mind: either you are using 32 bit java (and thus largely limited to 4 GB) or you've got a command line switch that you can use to increase the memory that you aren't using. The ProjectZomboidServer.bat looks like the following below:
@cd /d "%~dp0"
".\jre64\bin\java.exe" -Xms2048m -Xmx2048m -Djava.library.path=./ -cp jinput.jar;lwjgl.jar;lwjgl_util.jar;sqlite-jdbc-18.104.22.168.jar;trove-3.0.3.jar;uncommons-maths-1.2.3.jar;./ zombie.network.GameServer
Now, the 'switch' I'm talking about is -Xmx2048m this is the effective maximum amount of memory allotted to java, the 'switch' before that is the minimum. Now, I'm assuming you are running this on your personal machine, and with windows 7 64 bit (generic) you are not going to be able to use all 8 GB of your ram. What I'd suggest is starting out with -Xmx5120m which leaves you a cushion for running a few lower intensity apps. That leaves you with around 2.8 GB to use for the OS, and any extra applications you do run while the server is up. If you notice different issues with your OS you may need to lower the amount of ram I'd start by moving down to -Xmx4500m. Finally, you may have to adjust the maximum amount of players you can have on at a time. Being a public server I can see the desire to let as many get on as they want, but you'll find greater stability for your players if you set a limit that works for your machine. (No one likes crashes after all, developers, admins, and players alike.) Feel free to ask if you don't understand something specific; this information might help others in the future.
I've also been asking this question on this thread, on my own separate thread in the support section, on the subreddit and on the official discord server, but I have gotten no reply anywhere. Is it possible to get a response on this?
First, i'm not good at english, Because i'm korean sorry
Anyway i'm hosting my Project Zomboid public server But when many people come in my server The server Suddenly stops! And when i see my server CMD, Displays this error message
But my computer uses 8GM Ram and Windows 7 64bit
Please Help me!