Hi. As is was beginning to lean Sponge (and java with it) I wanted to create a test-server for my Hello World plugins. But when i wanted to set up the server, i had some problems that came with each other. After the server had started the fist time, everything was ok (that was after the first attempt of solving problems via the IRC). Then, from the second start on (and the second join), I got weird messages in the ingame chat as well as the console, saying i’m joining and leaving the game, or in the console something like joined and instantly leaved because of an exception. There was a Player blinking right in front of me a fraction of a second before the terrain got loaded correctly. After that, i tried to dig some blocks. The blocks dissappeared, but i could still walk on the invisible block (collision was like the block was still existing). Also the animals were moving not making sounds but being invincible. So the server was not responding? Also the console started putting out "Can’t keep up"etc after a couple of minutes. That can NOT be because of a bad pc, the components would offer enough power!). The server would not respond to any messages or commands executed by me ingame, but only to commands from console, so I stopped the server.
After messing around with that for a way too long time, i decided to make a topic about it.
Here is the log: http://pastebin.com/7ZBpn7RF
Sorry if my english is not the best.
First of all: Thanks for your reply!
But I don’t understand what will do the trick for fixing it. Will I even be able to play on the server and test things without crashing it?
“server could not keep up” isn’t good. Maybe your antivirus or a firewall is your problem?
Are you using Java 8 x64? Enough memory located for the server?
Could you list your cpu, ram and os just for reference?
Additional info (read on irc): sponge.jar -go downloads the forge jar and installs it. Technically there should be no difference between:
a) installing forge + copying sponge.jar into mods folder
b) using sponge.jar -run or sponge.jar -go
the folders look a bit different but the server is the same. -go is a combination of -install plus -run
Thank you very much! At the moment, java 32-bit is installed i think, but the server got just 1 gigabyte, so that schould not be a problem (or am i wrong?). When I ran the server with te GUI for testing, it said that it used just 100MB of 1gigabyte. The server (in this case a laptop) has 8 gigabyte of ram in total. Also the CPU is not even near to 100% with server and game running.
The laptop has got NO problems with overheating.
CPU: Intel Core i7-4720HQ @ 2.60GHz (4 cores; 8 threads)
RAM: 1 DDR3 SO-DIMM, (manufacturer dows not matter i guess)
OS: MS Windows 8.1 (OEM)
Please ask if you need more information.
I used a) first, then the server had problems without sponge already, then (now) I used b); with -go.
I will take a look at the firewall and antivirus (maybe shut it down for a test).
“On AMD64 and EM64T platforms this difference ranges from 0-15% depending
on the amount of pointer accessing your application performs.”
-> up to 15% for free is nice. Just run MC on 32bit, have a look at the fps, install x64 and look again.
There should be a difference.
EDIT: Another note: The Cpu can’t be at 100% with just a MC server running, as the server should be mostly singlethreaded. On a cpu with 8 threads you can get into the cpu limit with just 12.5% cpu usage (one core being at 100% while all others sleep). This said: have a look at the cpu usage per core too.
I (re-) installed 64 bit now, joined the server and everything was fine (as expected). I blew loads of TNT, killes animals etc: working! Now the question is: what happens if i leave and rejoin, because that is where the problems had started! You just edited; The usage per core is fine too.
btw my skin is not loaded. even on first join. 1st rejoin; everything ok. 2nd rejoin; nothing works any more. can’t place blocks etc (as described already).Also there is the weird output of me leaving and joining a couple of times. Hm. ok Thanks @Tzk and @simon816. Tell me if you have another idea!
EDIT: Tell me if anyone else has the same issue.
EDIT2: Another weird thing: I can now change some blocks when joining. Then i can’t do anything again, like if the world was grief protected / the server does not get my inputs correctly. Also I still can’t execute commands as player.
EDITnumbertoomany: When i just rejoin a couple of times (5 or 6 times) everything works again. Now i am extremely confused…
I’m not sure if it was reported as fixed already but there was an issue with skins being requested too many times and not fetching from the skin cache.
Simon posted about something like that. If i saw it right, he changed something in the forge code for that; but i’m not sure and do not want to tell wrong things as i have no idea of the sponge and forge code (yet maybe).
Yeah there’s an issue with forge on the client, but on the server it’s different. I think what I need to do is update the player profile cache after fetching a UUID/name because I don’t think I did that.