Page 2 of 2

Re: Disconnected Sessions stay active

PostPosted: Sat Aug 22, 2015 4:26 pm
by mantux5
Kent Briggs wrote:That misses the point of what has happened. The server has (likely) run out of system resources, which killed the system timers, and is now in an unstable state.

I'm sure that the server is not overloaded in my case. The resource usage never reaches even 30% of what we have allocated to our VM.

Kent Briggs wrote:Once a full minute has passed, the tournament is considered expired and won't start automatically. You could have been down for hours and the players all left. It wouldn't be fair to start a tournament and accept those buy-ins at that point.

Ok, I see your point.

Kent Briggs wrote:It shows if the problems are occurring at maximum load, indicating that you've overloaded your server with players, rather than it being some random bug or hacking attempt.

No, it does not. It would show just the number of threads and resources used increasing after the connections stopped getting closed properly. It is hard to determine when it started just from these logs.

Kent Briggs wrote:That issue will be addressed in version 5 when I convert everything to databases. In the mean time, I'd suggest you keep your own user database of players and then you can create/delete accounts on the fly as players log into and out of your web site. Otherwise Windows has to load 76K individual files into memory at startup. I suspect 90% of them are probably long abandoned anyway, right?

Well, when is Version 5 coming out? I think we could use your suggestion on handling players, but it's incorrect that 90% of these users are inactive.

Re: Disconnected Sessions stay active

PostPosted: Sat Aug 22, 2015 5:07 pm
by Kent Briggs
mantux5 wrote:It would show just the number of threads and resources used increasing after the connections stopped getting closed properly.


If it shows "Discon", the connection and associated thread have already closed automatically. The timer just cleans up the memory object (which is small) and clears it from the connection list.

Well, when is Version 5 coming out? I think we could use your suggestion on handling players, but it's incorrect that 90% of these users are inactive.


Probably not this year.

Re: Disconnected Sessions stay active

PostPosted: Tue Sep 22, 2015 4:08 pm
by Kent Briggs
FYI, I've made a couple of changes in 4.43 that should help some of the issues you brought up. I replaced all the system timers with my own timer thread that should never stop. And I vastly improved the startup time for sites with large numbers of accounts.

Re: Disconnected Sessions stay active

PostPosted: Sun Sep 27, 2015 3:52 pm
by mantux5
Thank you! I noticed the update just today, but it's loading extremely fast. It took like 30 seconds to load all those accounts. I hope the new timer will improve the performance too :)

Re: Disconnected Sessions stay active

PostPosted: Sun Sep 27, 2015 5:34 pm
by Kent Briggs
mantux5 wrote:It took like 30 seconds to load all those accounts.


Note that it won't be that fast after a reboot. You're probably also getting the benefit of the Windows file cache. But it'll still be a lot faster than before.