Search found 52 matches

by atoneday
10 Jun 2020, 01:11
Forum: SFS2X Questions
Topic: how to save room data when server shutdown
Replies: 3
Views: 4182

Re: how to save room data when server shutdown

Thank you very much. I will add time-based saves.
One single shutdown hook means shutdown hook in zone extension, right?
by atoneday
09 Jun 2020, 11:07
Forum: SFS2X Questions
Topic: how to save room data when server shutdown
Replies: 3
Views: 4182

how to save room data when server shutdown

I use addShutdownHook for every room extention to save some status in the room. But when i try to shutdown the sever, some shutdown hooks execute and some do not. How to ensure every room save their data? public class BaseRoomExtension extends SFSExtension { @Override public void init() { trace(getC...
by atoneday
24 Nov 2016, 03:14
Forum: SFS2X Questions
Topic: Is System Controller used to deal with System Event
Replies: 1
Views: 3622

Is System Controller used to deal with System Event

In my app, logout did heavy database job. So i adjust the number of SystemController thread pool size. But in the Dump i saw all the SystemController are idle and log out event are running in threads like "pool-1-thread-4". So i wonder how should i adjust the config. I user server version ...
by atoneday
17 Jun 2014, 10:46
Forum: SFS2X Questions
Topic: connection lost for unknown reason
Replies: 4
Views: 6867

Re: connection lost for unknown reason

Thank you very much.
I use a remote DB to check user name and password, which would cost about 250ms in average. Should I move the user check to UserJoinZoneHandler, or should i write an extension to handle the user check?
by atoneday
17 Jun 2014, 08:05
Forum: SFS2X Questions
Topic: connection lost for unknown reason
Replies: 4
Views: 6867

Re: connection lost for unknown reason

I compared the server side log and client side log, and found normally server side should be 17 Jun 2014 | 05:22:24,299 | Session created: { Id: 21253, Type: DEFAULT, Logged: No, IP: 10.108.8.86:49065 } on Server port: 9873 <---> 49065 17 Jun 2014 | 05:22:37,192 | (com.aegames.common.sfs.social.user...
by atoneday
10 Jun 2014, 04:00
Forum: SFS2X Questions
Topic: connection lost for unknown reason
Replies: 4
Views: 6867

connection lost for unknown reason

I have a web application and a smartfoxserver running in the save machine. And the web application is used as a monitor. Every minute, it would simulate a client to connect to smartfox server, log in a zone, handle a custom event and disconnect. Every step would be logged. Normally the log is 9 Jun ...
by atoneday
30 Jan 2014, 07:01
Forum: SFS2X Questions
Topic: Server connect issue
Replies: 7
Views: 8245

Re: Server connect issue

Extension queue is not continuously busy. I saw quick burst of queue activity once (more than thousands), but usually the queue size is below 5.
I didn't see special server side logs.
I do use database to check the login credentials.
by atoneday
29 Jan 2014, 06:33
Forum: SFS2X Questions
Topic: User can not login
Replies: 7
Views: 9268

Re: User can not login

Here is the code in login handler. We use user id in our system as user name in Smartfoxserver, so it is long instead of String. There is DB check to see if user exists. public void handleServerEvent(ISFSEvent event) throws SFSException { try{ Session session = (Session) event.getParameter(SFSEventP...
by atoneday
29 Jan 2014, 06:32
Forum: SFS2X Questions
Topic: Server connect issue
Replies: 7
Views: 8245

Re: Server connect issue

If so keep an eye on the server queues status via the AdminTool > Dashboard, it's likely you will find some anomalies in the Extension queue. If so let us know. Is there a way to save queues status into file? The issue did not happen all the time. When i take a look at my monitor data and found the...
by atoneday
28 Jan 2014, 08:35
Forum: SFS2X Questions
Topic: Server connect issue
Replies: 7
Views: 8245

Re: Server connect issue

Some times I got 27 Jan 2014 05:12:25 GMT --------------------------------------- 27 Jan 2014 05:12:25 GMT SFS Event: connection 27 Jan 2014 05:12:25 GMT Connected to Server: SOCKET 27 Jan 2014 05:12:25 GMT SFS Event: handshake 27 Jan 2014 05:12:50 GMT SFS Event: connectionLost 27 Jan 2014 05:12:50 ...
by atoneday
23 Jan 2014, 10:00
Forum: SFS2X Questions
Topic: Server connect issue
Replies: 7
Views: 8245

Server connect issue

My Smartfox Server is not stable, There is a sharp concurrency user count change. users.jpg I thought it was login issue. But after i wrote a client that do connect, login, join the lobby and disconnect. It seems a connection problem. Nomally I got 23 Jan 2014 07:22:44 GMT --------------------------...
by atoneday
23 Jan 2014, 09:37
Forum: SFS2X Questions
Topic: high cpu
Replies: 7
Views: 8425

Re: high cpu

Lapo wrote:Did you check which classes are hogging the CPU via the VisualVM Sampler?

How to do it?
by atoneday
22 Jan 2014, 10:40
Forum: SFS2X Questions
Topic: high cpu
Replies: 7
Views: 8425

Re: high cpu

Here is the code for DB coonection. protected UserDao(IDBManager dbm) throws SQLException { try { conn =dbm.getConnection(); } catch (SQLException e) { Logger.error(getClass(), "getConnection",e); throw e; } } After DB call there are codes return connection to the connection pool UserDao d...
by atoneday
20 Jan 2014, 02:15
Forum: SFS2X Questions
Topic: high cpu
Replies: 7
Views: 8425

Re: high cpu

I am not sure how did you determine these two threads are those with the highest cpu time. Did you compare the PIDs? Yes. 7719 -> nid=0x1e27 7707 -> nid=0x1e1b I would recommend checking via the AminTool Dashboard and monitor if those thread are staying at the top of the list for long times or it i...
by atoneday
19 Jan 2014, 13:39
Forum: SFS2X Questions
Topic: high cpu
Replies: 7
Views: 8425

high cpu

SmartfoxServer use more than 100% CPU PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7309 root 20 0 3255m 190m 12m S 113.2 2.6 611:20.05 java And there are 2 threads use the most of the CPU PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7719 root 20 0 3255m 201m 12m R 67.6 2.7 237:07.0...

Go to advanced search