Server is ubuntu 18.0.4 lts, hosted in aws ec2.
Server type is c5.2xlarge having 8 cores, 16G ram.
Using Community Edition v2.13 with v2.13.3 patch.
Client is unity.
No java installed in os.
We have only 1 zone installed in sfs server, max 10 users at a time and we have added bots to simulate live playing environment. Server is getting stopped automatically atleast 2-3 times in 24 hours and there is no error or trace in the logs. We have searched inside SmartFoxServer_2X/SFS2X/logs/, SmartFoxServer_2X/SFS2X/logs/boot/, SmartFoxServer_2X/SFS2X/logs/http/ and our app named directory inside logs.
Most of the times we find INFO [Thread-0] managers.SFSZoneManager - BuddyList saveAll... in the logs before getting WARN [SFS2X ShutdownHook] core.SFSShutdownHook - SFS2X is shutting down. The process may take a few seconds..., sometime first line after second.
We have installed mysql in the same server and left it unused to verify if os is stopping processes but mysql was not stopped. Also we are running daemon processes of our own in the server and those are also not getting stopped.
We were thinking that it could be memory issue at first when we were running it in a 1G ram box but now in this server it is starting with 3605M, below is from boot.log
Processor(s): 8
VM Max. memory: 3605MB
os.name: Linux
os.arch: amd64
os.version: 4.15.0-1021-aws
java.version: 1.8.0_102
java.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
java.vm.specification.version: 1.8
java.vm.version: 25.102-b14
java.vm.vendor: Oracle Corporation
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.io.tmpdir: /tmp
Default charset: UTF-8
We have also checked for any system exit in our codebase.
Can you help us with debugging the issue? We can provide any required data. Also, is there a way to trace the caller of SFSShutdownHook?