Hey there, thanks in advance if you have any advice.
I'm running my server on an Ubuntu machine (14.04) and it works fine for hours at a time but it freezes randomly for random amounts of time (minutes to hours).
It runs just fine for a while but eventually it stops responding, and I get kicked from the server and cannot re-login (it doesn't say that I cannot connect to the server just sits saying "Your character list is being loaded").
Problem is the server still appears to be running, and it outputs no errors in the terminal. It shows up when I run 'top' but shows its using 0% of my CPU.
So it seems like its just hung and needs to be restarted, but then starts working again at some point in the future (sometimes minutes, sometimes hours) without restarting it.
Could other things to note:
- otservlist.org still shows that my server is online too.
- Also I cannot replicate this freeze on my windows machine that I develop on.
So does anyone have any advice on how I can debug this problem? Could an error be being thrown and the server doesn't print it? Is there any place in the source code I should add some couts to help me debug?
I'm running my server on an Ubuntu machine (14.04) and it works fine for hours at a time but it freezes randomly for random amounts of time (minutes to hours).
It runs just fine for a while but eventually it stops responding, and I get kicked from the server and cannot re-login (it doesn't say that I cannot connect to the server just sits saying "Your character list is being loaded").
Problem is the server still appears to be running, and it outputs no errors in the terminal. It shows up when I run 'top' but shows its using 0% of my CPU.
So it seems like its just hung and needs to be restarted, but then starts working again at some point in the future (sometimes minutes, sometimes hours) without restarting it.
Could other things to note:
- otservlist.org still shows that my server is online too.
- Also I cannot replicate this freeze on my windows machine that I develop on.
So does anyone have any advice on how I can debug this problem? Could an error be being thrown and the server doesn't print it? Is there any place in the source code I should add some couts to help me debug?