MCServer Development Discussion
#39
Obviously, I know the server isn't ready, but I decided to try open the test server to the public to see what would happen.
Here are some observations I made:

There are hacks that apparently cause the packet queue to grow large. I see several messages about packets in queue until the server finally crashes.

I also saw strings on the console that flew by like this:
[15:52:23] Health: 3
[15:52:23] Health: 4
[15:52:23] Health: 5
[15:52:23] Health: 6
[15:52:23] Health: 7
[15:52:23] Health: 8
[15:52:23] Health: 9
[15:52:23] Health: 10
[15:52:23] Health: 11
[15:52:23] Health: 12
[15:52:23] Health: 13
[15:52:23] Health: 14
[15:52:23] Health: 15
[15:52:23] Health: 16
[15:52:23] Health: 17
[15:52:23] Health: 18
[15:52:23] Health: 19
[15:52:23] Health: 20
[15:52:23] Health: 21
[15:52:23] Health: 22
[15:52:23] Health: 23
[15:52:23] Health: 24
[15:52:23] Health: 25
[15:52:23] Health: 26
[15:52:23] Health: 27
THOUSANDS of these messages is what caused one of the crashes. The number eventually went negative. It looks like a stack overflow.
That lagged the server and eventually caused it to crash like this:

[15:44:24] Got ping
[15:44:24] Deleting client
[15:44:24] -76 0 -2 Destroying on action765
[15:44:24] -76 0 -2 Destroying on action765
[15:44:24] -75 0 -2 Destroying on action765
[15:44:24] -73 0 -2 Destroying on action765
[15:44:24] Destroy that entity! 768
[15:44:24] Destroy that entity! 794
[15:44:24] Destroy that entity! 795
[15:44:24] Destroy that entity! 796
[15:44:24] Destroy that entity! 797
[15:44:24] To tick: 7
[15:44:24] To tick: 86
[15:44:24] 1. Stack size: 0
[15:44:24] 2. Stack size: 1
[15:44:24] 3. Stack size: 2
[15:44:24] Calling bound function!Big Grin
[15:44:24] ok. Stack size: 0
[15:44:24] From -76 -2 To -77 -2
[15:44:24] From -77 -2 To -76 -2
[15:44:24] Health: -1214
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted



I also noticed when someone DC'd there would be several spawn messages for someone who was still on the server. I'm not sure what those messages mean. Does it mean mobs around the person who DC'd get teleported to someone else?

I aslo noticed running mc server like this:
./MCServer > log.log
and using
tail -f log.log
seemed to improve performance when someone was causing an action that spammed the console. Maybe moving the console output to anther thread could improve performance?



Making the server immune to most attacks is also a high priority for me. It's incredible how many people try to attack servers. I get attacks several times a day on my bukkit server.


I'd like to put in something that disconnects or bans a player that is trying to do too much at once. Like trying to use a nuke client for example. I know that might sound like something a plugin should do, but I think of that more as basic security.
Reply
Thanks given by:


Messages In This Thread
MCServer Development Discussion - by rs2k - 10-21-2011, 11:24 AM
RE: MCServer Development Discussion - by rs2k - 10-24-2011, 09:34 AM
RE: MCServer Development Discussion - by rs2k - 10-24-2011, 09:50 AM
RE: MCServer Development Discussion - by Sebi - 11-06-2011, 05:28 AM
RE: MCServer Development Discussion - by rs2k - 11-06-2011, 05:38 AM
RE: MCServer Development Discussion - by Sebi - 11-06-2011, 06:45 AM
RE: MCServer Development Discussion - by Sebi - 11-06-2011, 08:12 AM
RE: MCServer Development Discussion - by rs2k - 11-06-2011, 08:18 AM
RE: MCServer Development Discussion - by Sebi - 11-06-2011, 12:34 PM
RE: MCServer Development Discussion - by rs2k - 11-06-2011, 07:27 PM
RE: MCServer Development Discussion - by Sebi - 11-07-2011, 11:32 PM
RE: MCServer Development Discussion - by rs2k - 11-08-2011, 03:27 AM
RE: MCServer Development Discussion - by Sebi - 11-08-2011, 04:51 AM
RE: MCServer Development Discussion - by rs2k - 11-08-2011, 05:17 AM
RE: MCServer Development Discussion - by Sebi - 11-08-2011, 05:29 AM
RE: MCServer Development Discussion - by rs2k - 11-08-2011, 05:55 AM
RE: MCServer Development Discussion - by Sebi - 11-08-2011, 06:03 AM
RE: MCServer Development Discussion - by rs2k - 11-08-2011, 06:09 AM
RE: MCServer Development Discussion - by Sebi - 11-08-2011, 06:40 AM
RE: MCServer Development Discussion - by Sebi - 11-08-2011, 08:09 AM
RE: MCServer Development Discussion - by rs2k - 11-08-2011, 09:03 AM
RE: MCServer Development Discussion - by Sebi - 11-10-2011, 06:12 AM
RE: MCServer Development Discussion - by rs2k - 11-10-2011, 10:07 AM
RE: MCServer Development Discussion - by Sebi - 11-10-2011, 10:55 PM
RE: MCServer Development Discussion - by rs2k - 11-11-2011, 02:33 AM
RE: MCServer Development Discussion - by rs2k - 11-11-2011, 10:23 AM
RE: MCServer Development Discussion - by Boo - 02-05-2012, 02:31 AM
RE: MCServer Development Discussion - by tbar - 02-05-2012, 04:08 AM
RE: MCServer Development Discussion - by Boo - 02-05-2012, 04:39 PM
RE: MCServer Development Discussion - by rs2k - 02-05-2012, 05:41 PM
RE: MCServer Development Discussion - by Boo - 02-05-2012, 09:19 PM
RE: MCServer Development Discussion - by Boo - 02-05-2012, 11:21 PM
RE: MCServer Development Discussion - by tbar - 02-06-2012, 04:21 AM
RE: MCServer Development Discussion - by xoft - 02-06-2012, 01:42 AM
RE: MCServer is open source! - by AJIeKCaHDp - 10-21-2011, 08:04 PM
RE: MCServer is open source! - by rs2k - 10-21-2011, 08:23 PM
RE: MCServer is open source! - by AJIeKCaHDp - 10-21-2011, 09:00 PM
RE: MCServer is open source! - by rs2k - 10-21-2011, 10:23 PM
RE: MCServer is open source! - by AJIeKCaHDp - 10-21-2011, 10:29 PM
RE: MCServer is open source! - by FakeTruth - 10-21-2011, 11:51 PM
RE: MCServer is open source! - by AJIeKCaHDp - 10-21-2011, 11:55 PM
RE: MCServer is open source! - by FakeTruth - 10-22-2011, 12:18 AM
RE: MCServer is open source! - by AJIeKCaHDp - 10-22-2011, 12:56 AM
RE: MCServer is open source! - by FakeTruth - 10-22-2011, 01:51 AM
RE: MCServer is open source! - by rs2k - 10-22-2011, 04:21 AM
RE: MCServer is open source! - by AJIeKCaHDp - 10-22-2011, 06:21 AM
RE: MCServer is open source! - by vcnnews - 10-22-2011, 07:04 AM
RE: MCServer is open source! - by FakeTruth - 10-22-2011, 07:27 AM
RE: MCServer is open source! - by rs2k - 10-22-2011, 08:15 AM
RE: MCServer is open source! - by FakeTruth - 10-22-2011, 08:24 AM
RE: MCServer is open source! - by AJIeKCaHDp - 10-22-2011, 09:04 AM
RE: MCServer is open source! - by rs2k - 10-22-2011, 09:20 AM
RE: MCServer is open source! - by FakeTruth - 10-22-2011, 10:20 AM
RE: MCServer is open source! - by rs2k - 10-23-2011, 01:05 AM
RE: MCServer is open source! - by FakeTruth - 10-23-2011, 05:09 AM
RE: MCServer is open source! - by rs2k - 10-23-2011, 05:18 AM
RE: MCServer is open source! - by necavi - 10-23-2011, 03:27 PM
RE: MCServer is open source! - by rs2k - 10-24-2011, 02:20 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 03:59 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 05:04 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 06:51 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 06:55 AM
RE: MCServer is open source! - by necavi - 10-24-2011, 07:02 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 07:05 AM
RE: MCServer is open source! - by necavi - 10-24-2011, 07:08 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 07:40 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 08:03 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 08:11 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 08:29 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 08:30 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 08:55 AM
RE: MCServer is open source! - by rs2k - 10-24-2011, 09:04 AM
RE: MCServer is open source! - by FakeTruth - 10-24-2011, 09:20 AM



Users browsing this thread: 4 Guest(s)