We aren't using our game server outside limited testing yet, so often it isn't used for days or weeks. Then when we come to use it, we find SFS isn't running and has to be re-started. We don't deliberately stop SFS between tests, so it seems either SFS has 'crashed' or our server has done something weird in-between (we use a fair high-spec EC2 Linux instance and SFS has 512Mb RAM to play with).
Has anyone solved the issue of being notified when SFS stops, specifically on Linux, and even making it restart automatically?
As far as the server seeming to die every now and then, is that something others see or should it run for months without problems? 512Mb for a game server which does very little and has no more than 1-2 active users has to be enough to avoid running out of RAM in the JVM right?
Detecting server shut-down
Re: Detecting server shut-down
Hello,
Does the server actually shut down or it is just failing at completing the login phase?
Can you show the logs when the server shuts down? Thanks
Does the server actually shut down or it is just failing at completing the login phase?
Can you show the logs when the server shuts down? Thanks
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: Detecting server shut-down
It's shut down - we use the "./sfs status" command to verify.
I will look into logs, we seem to have request, SFS and wrapper logs - which is relevant?
I will look into logs, we seem to have request, SFS and wrapper logs - which is relevant?
Re: Detecting server shut-down
Try searching in both. Maybe it is the VPS which is automatically shutting down the process for being idle?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: Detecting server shut-down
Either way the original question remains - how to monitor SFS? It seems like the kind of issue most people running real games should have faced.
Anyone like to share their solutions?
Anyone like to share their solutions?
Re: Detecting server shut-down
Well, for detecting a shut down, you could add a ShutDownHook to the JVM.
But the server isn't supposed to shut down automatically, so I suggest you to debug what the problem is.
Is there anything valuable on the logs?
But the server isn't supposed to shut down automatically, so I suggest you to debug what the problem is.
Is there anything valuable on the logs?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: Detecting server shut-down
HI,
I am having the same issue. MY VPS sfs2x server stopped but same server at local working fine. Can you help me.
Thanks in advance.
I am having the same issue. MY VPS sfs2x server stopped but same server at local working fine. Can you help me.
Thanks in advance.
Re: Detecting server shut-down
Do you have any errors in the logs when the server shut down?
Thanks
Thanks
Re: Detecting server shut-down
NO error but my server having low memory like 512 MB and MYSQL also shut down. This may be low memory issue.
Re: Detecting server shut-down
Yes, this is expected.
Especially in a VPS environment they have a so called "process killer" that will automatically shutdown processes when memory (or cpu) is running low.
With 512MB you should still be able to run SFS2X and MySQL... unless of course there's a whole lot of other services running.
You should check what is the amount of free memory after the server has booted up and all services are running.
Take a look here:
http://www.binarytides.com/linux-comman ... ory-usage/
Especially in a VPS environment they have a so called "process killer" that will automatically shutdown processes when memory (or cpu) is running low.
With 512MB you should still be able to run SFS2X and MySQL... unless of course there's a whole lot of other services running.
You should check what is the amount of free memory after the server has booted up and all services are running.
Take a look here:
http://www.binarytides.com/linux-comman ... ory-usage/
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 66 guests