We have a problem with our Forgotten Hope 2 (BF2 modification) server. Sometimes, when player joins the server, the whole thing hangs up momentarily (~0.5‒3.0 sec) with every player on-line at the time being shown “There is a problem with your connection” message.
There seems to be no rhyme nor reason for that lag. It does not seem to be related to joining player’s ping, or any players in particular (same players could cause this one day, and not another). We’ve actually noticed that the same player could cause the server lag on some attempts to connect, but not on the others, all within minutes of each attempt. It does not seem to increase in frequency in relation with amount of players on the server (it can happen as often when there are five players, as when there are thirty).
In order to solve the problem there was much fiddling done with the server, to no avail. We had tried to remove other servers from other cores (I know they at least ran a Minecraft server on the same box). We used to have a script running that would automatically load the proper map size based on the number of players currently on-line. We thought it was the culprit, but disabling it didn’t help (besides, it works on other popular servers). Several PunkBuster checks were removed without apparent effect on the issue.
This looks like an issue with particular combination of hardware and software, because in all my years of playing vanilla BF2 and its mods (FH2, PR, Pirates etc.) I had never encountered such problem, even on 128-player servers at capacity. But I would like to see if the same thing happened on other servers as well to see if there is a common source of this lag, or whether it would require deep digging.
The basic technical specifications for the server are: AMD Phenom II X6 1090T (3.2 GHz), 16GB RAM, Linux. All those are way above the recommended specs for BF2 64-player Linux server.