Clean server with SpongeForge don't start


#1

Hola!

I created clean Centos 7 server, downloaded forge-1.12.2-14.23.4.2705-installer.jar and spongeforge-1.12.2-2705-7.1.0-BETA-3361.jar
When i start my server with “java -Xmx1526M -jar forge-1.12.2-14.23.4.2705-universal.jar” - I got the message

./start.sh: line 3: 12314 Killed java -Xmx"$memory"M -jar forge-1.12.2-14.23.4.2705-universal.jar

in journalctl i found
“Oct 10 11:43:27 212-158-171-90.vm.example.com kernel: Out of memory: Kill process 12314 (java) score 862 or sacrifice child
Oct 10 11:43:27 212-158-171-90.vm.example.com kernel: Killed process 12314 (java) total-vm:4146132kB, anon-rss:1608624kB, file-rss:0kB, shmem-rss:0kB”

Does sponge really need 4GB or it’s joke?
Mods folder is clean (except spongeforge*.jar), all is clean! Without sponge it works without any problems, start in 4sec.

Thx for answers. I’m newbie here :baby:


#2

Hi,

A couple things. Uploading the actual Log files for forge and Sponge, would probably make it easier to determine where all the memory is going.
Secondly, you’re giving your server 1.5G of memory (java -Xmx1526M), which probably will not be enough to load Minecraft and sponge and forge.

The fact that it is journalctl and the kernel saying out of memory, leads me to believe it is not Java that is yelling about lack of memory, but you allocating more memory to the Java server than centos actually has been given.

Are you using a host? if so what host and what plan?
If you are hosting it, what are the VM/Server specs?

If you would like live help, feel free to reach out to me on Discord: Snowie (D4rk)#1374