[SOLVED] ADDING INFINITE THREADS AMOUNT

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

[SOLVED] ADDING INFINITE THREADS AMOUNT

Postby TryMyGames » 24 Mar 2017, 11:00

Hello,

After some modifications I run into this problem which occurs like in a couple of hours after starting the server, so the server dies :( :

Code: Select all

....
24 Mar 2017 | 04:00:26,236 | INFO  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 132
24 Mar 2017 | 04:00:26,237 | INFO  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 147
24 Mar 2017 | 04:01:16,256 | INFO  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 148
24 Mar 2017 | 04:01:16,258 | INFO  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 164
24 Mar 2017 | 04:02:06,279 | INFO  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 180
24 Mar 2017 | 04:02:56,294 | INFO  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 180
24 Mar 2017 | 04:02:56,297 | INFO  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 196
24 Mar 2017 | 04:03:12,341 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 268, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:52167 }
24 Mar 2017 | 04:03:12,341 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | User disconnected: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_4, Id: 267, Priv: 0, Sess: 127.0.0.1:52167 ) , SessionLen: 310043, Type: Unity
24 Mar 2017 | 04:03:12,347 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 269, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52171 } on Server port: 9933 <---> 52171
24 Mar 2017 | 04:03:12,383 | INFO  | SFSWorker:Sys:3 | v2.api.SFSApi |     | User login: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_5, Id: 268, Priv: 0, Sess: 127.0.0.1:52171 ) , Type: Unity
24 Mar 2017 | 04:03:12,445 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | Room joined: [ MMORoom: Midgard0, Id: 1, Group: default, AOI: (16.0, 9.0, 0.0) ], { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_5, Id: 268, Priv: 0, Sess: 127.0.0.1:52171 ) , asSpect: false
24 Mar 2017 | 04:03:46,310 | INFO  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 196
24 Mar 2017 | 04:03:46,311 | INFO  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 212
24 Mar 2017 | 04:04:36,328 | INFO  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 212
24 Mar 2017 | 04:04:36,328 | INFO  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 228
24 Mar 2017 | 04:05:26,343 | INFO  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 228
24 Mar 2017 | 04:05:26,343 | INFO  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 244
24 Mar 2017 | 04:05:26,343 | INFO  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 244
24 Mar 2017 | 04:06:16,359 | INFO  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 244
24 Mar 2017 | 04:06:16,360 | INFO  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Added 16 new threads, current size is: 260
24 Mar 2017 | 04:07:06,376 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1043748, but all backup thread are already active: 260
24 Mar 2017 | 04:07:06,376 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1043748, but all backup thread are already active: 260
24 Mar 2017 | 04:07:36,389 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1080306, but all backup thread are already active: 260
24 Mar 2017 | 04:07:36,389 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1080306, but all backup thread are already active: 260
24 Mar 2017 | 04:07:36,389 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1080306, but all backup thread are already active: 260
24 Mar 2017 | 04:07:36,389 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1080306, but all backup thread are already active: 260
24 Mar 2017 | 04:08:06,395 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1117065, but all backup thread are already active: 260
24 Mar 2017 | 04:08:06,395 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1117065, but all backup thread are already active: 260
24 Mar 2017 | 04:08:06,395 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1117065, but all backup thread are already active: 260
24 Mar 2017 | 04:08:06,395 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1117065, but all backup thread are already active: 260
24 Mar 2017 | 04:08:22,306 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 269, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:52171 }
24 Mar 2017 | 04:08:22,306 | INFO  | SFSWorker:Sys:1 | v2.api.SFSApi |     | User disconnected: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_5, Id: 268, Priv: 0, Sess: 127.0.0.1:52171 ) , SessionLen: 309923, Type: Unity
24 Mar 2017 | 04:08:22,317 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 270, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52178 } on Server port: 9933 <---> 52178
24 Mar 2017 | 04:08:22,348 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | User login: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_6, Id: 269, Priv: 0, Sess: 127.0.0.1:52178 ) , Type: Unity
24 Mar 2017 | 04:08:22,416 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | Room joined: [ MMORoom: Midgard0, Id: 1, Group: default, AOI: (16.0, 9.0, 0.0) ], { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_6, Id: 269, Priv: 0, Sess: 127.0.0.1:52178 ) , asSpect: false
24 Mar 2017 | 04:08:36,405 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1153805, but all backup thread are already active: 260
24 Mar 2017 | 04:08:36,405 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1153805, but all backup thread are already active: 260
24 Mar 2017 | 04:08:36,405 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1153805, but all backup thread are already active: 260
24 Mar 2017 | 04:08:36,405 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1153805, but all backup thread are already active: 260
24 Mar 2017 | 04:09:06,415 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1190498, but all backup thread are already active: 260
24 Mar 2017 | 04:09:36,425 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1227424, but all backup thread are already active: 260
24 Mar 2017 | 04:10:06,437 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1263972, but all backup thread are already active: 260
24 Mar 2017 | 04:10:06,437 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1263972, but all backup thread are already active: 260
24 Mar 2017 | 04:10:06,437 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1263972, but all backup thread are already active: 260
24 Mar 2017 | 04:10:06,437 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1263972, but all backup thread are already active: 260
24 Mar 2017 | 04:10:36,446 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1300832, but all backup thread are already active: 260
24 Mar 2017 | 04:10:36,446 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1300832, but all backup thread are already active: 260
24 Mar 2017 | 04:10:36,446 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1300832, but all backup thread are already active: 260
24 Mar 2017 | 04:10:36,446 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1300832, but all backup thread are already active: 260
24 Mar 2017 | 04:11:06,457 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1337652, but all backup thread are already active: 260
24 Mar 2017 | 04:11:06,457 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1337652, but all backup thread are already active: 260
24 Mar 2017 | 04:11:06,457 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1337652, but all backup thread are already active: 260
24 Mar 2017 | 04:11:06,457 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1337652, but all backup thread are already active: 260
24 Mar 2017 | 04:11:36,464 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1374589, but all backup thread are already active: 260
24 Mar 2017 | 04:11:36,464 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1374589, but all backup thread are already active: 260
24 Mar 2017 | 04:11:36,464 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1374589, but all backup thread are already active: 260
24 Mar 2017 | 04:11:36,464 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1374589, but all backup thread are already active: 260
24 Mar 2017 | 04:12:06,477 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1411463, but all backup thread are already active: 260
24 Mar 2017 | 04:12:06,477 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1411463, but all backup thread are already active: 260
24 Mar 2017 | 04:12:06,477 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1411463, but all backup thread are already active: 260
24 Mar 2017 | 04:12:06,477 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1411463, but all backup thread are already active: 260
24 Mar 2017 | 04:12:36,485 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1448308, but all backup thread are already active: 260
24 Mar 2017 | 04:12:36,485 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1448308, but all backup thread are already active: 260
24 Mar 2017 | 04:12:36,485 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1448308, but all backup thread are already active: 260
24 Mar 2017 | 04:12:36,485 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1448308, but all backup thread are already active: 260
24 Mar 2017 | 04:13:06,495 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1485083, but all backup thread are already active: 260
24 Mar 2017 | 04:13:06,495 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1485083, but all backup thread are already active: 260
24 Mar 2017 | 04:13:06,495 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1485083, but all backup thread are already active: 260
24 Mar 2017 | 04:13:32,467 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 270, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:52178 }
24 Mar 2017 | 04:13:32,467 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | User disconnected: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_6, Id: 269, Priv: 0, Sess: 127.0.0.1:52178 ) , SessionLen: 310119, Type: Unity
24 Mar 2017 | 04:13:32,482 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 271, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52184 } on Server port: 9933 <---> 52184
24 Mar 2017 | 04:13:32,519 | INFO  | SFSWorker:Sys:3 | v2.api.SFSApi |     | User login: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_7, Id: 270, Priv: 0, Sess: 127.0.0.1:52184 ) , Type: Unity
24 Mar 2017 | 04:13:32,582 | INFO  | SFSWorker:Sys:2 | v2.api.SFSApi |     | Room joined: [ MMORoom: Midgard0, Id: 1, Group: default, AOI: (16.0, 9.0, 0.0) ], { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_7, Id: 270, Priv: 0, Sess: 127.0.0.1:52184 ) , asSpect: false
24 Mar 2017 | 04:13:36,504 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1521905, but all backup thread are already active: 260
24 Mar 2017 | 04:13:36,504 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1521905, but all backup thread are already active: 260
24 Mar 2017 | 04:13:36,504 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1521905, but all backup thread are already active: 260
24 Mar 2017 | 04:13:36,504 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1521905, but all backup thread are already active: 260
24 Mar 2017 | 04:14:06,516 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1558497, but all backup thread are already active: 260
24 Mar 2017 | 04:14:06,516 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1558497, but all backup thread are already active: 260
24 Mar 2017 | 04:14:06,516 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1558497, but all backup thread are already active: 260
24 Mar 2017 | 04:14:06,516 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1558497, but all backup thread are already active: 260
24 Mar 2017 | 04:14:36,526 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1595144, but all backup thread are already active: 260
24 Mar 2017 | 04:14:36,526 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1595144, but all backup thread are already active: 260
24 Mar 2017 | 04:14:36,526 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1595144, but all backup thread are already active: 260
24 Mar 2017 | 04:14:36,526 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1595144, but all backup thread are already active: 260
24 Mar 2017 | 04:15:06,532 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1631872, but all backup thread are already active: 260
24 Mar 2017 | 04:15:06,532 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1631872, but all backup thread are already active: 260
24 Mar 2017 | 04:15:06,532 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1631872, but all backup thread are already active: 260
24 Mar 2017 | 04:15:06,532 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1631872, but all backup thread are already active: 260
24 Mar 2017 | 04:15:36,546 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1668772, but all backup thread are already active: 260
24 Mar 2017 | 04:15:36,546 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1668772, but all backup thread are already active: 260
24 Mar 2017 | 04:15:36,546 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1668772, but all backup thread are already active: 260
24 Mar 2017 | 04:15:36,546 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1668772, but all backup thread are already active: 260
24 Mar 2017 | 04:16:06,554 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1705583, but all backup thread are already active: 260
24 Mar 2017 | 04:16:06,554 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1705583, but all backup thread are already active: 260
24 Mar 2017 | 04:16:06,554 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1705583, but all backup thread are already active: 260
24 Mar 2017 | 04:16:06,554 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1705583, but all backup thread are already active: 260
24 Mar 2017 | 04:16:36,562 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1742382, but all backup thread are already active: 260
24 Mar 2017 | 04:16:36,562 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1742382, but all backup thread are already active: 260
24 Mar 2017 | 04:16:36,562 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1742382, but all backup thread are already active: 260
24 Mar 2017 | 04:16:36,562 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1742382, but all backup thread are already active: 260
24 Mar 2017 | 04:17:06,581 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1779242, but all backup thread are already active: 260
24 Mar 2017 | 04:17:06,581 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1779242, but all backup thread are already active: 260
24 Mar 2017 | 04:17:06,581 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1779242, but all backup thread are already active: 260
24 Mar 2017 | 04:17:06,581 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1779242, but all backup thread are already active: 260
24 Mar 2017 | 04:17:36,582 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1816041, but all backup thread are already active: 260
24 Mar 2017 | 04:17:36,582 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1816041, but all backup thread are already active: 260
24 Mar 2017 | 04:18:06,593 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1852615, but all backup thread are already active: 260
24 Mar 2017 | 04:18:06,593 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1852615, but all backup thread are already active: 260
24 Mar 2017 | 04:18:06,593 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1852615, but all backup thread are already active: 260
24 Mar 2017 | 04:18:06,593 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1852615, but all backup thread are already active: 260
24 Mar 2017 | 04:18:36,601 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1889194, but all backup thread are already active: 260
24 Mar 2017 | 04:18:36,601 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1889194, but all backup thread are already active: 260
24 Mar 2017 | 04:18:36,601 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1889194, but all backup thread are already active: 260
24 Mar 2017 | 04:18:36,601 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1889194, but all backup thread are already active: 260
24 Mar 2017 | 04:18:42,461 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 271, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:52184 }
24 Mar 2017 | 04:18:42,461 | INFO  | SFSWorker:Sys:3 | v2.api.SFSApi |     | User disconnected: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_7, Id: 270, Priv: 0, Sess: 127.0.0.1:52184 ) , SessionLen: 309942, Type: Unity
24 Mar 2017 | 04:18:42,487 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 272, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52193 } on Server port: 9933 <---> 52193
24 Mar 2017 | 04:18:42,519 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | User login: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_8, Id: 271, Priv: 0, Sess: 127.0.0.1:52193 ) , Type: Unity
24 Mar 2017 | 04:18:42,587 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | Room joined: [ MMORoom: Midgard0, Id: 1, Group: default, AOI: (16.0, 9.0, 0.0) ], { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_8, Id: 271, Priv: 0, Sess: 127.0.0.1:52193 ) , asSpect: false
24 Mar 2017 | 04:19:06,612 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1925791, but all backup thread are already active: 260
24 Mar 2017 | 04:19:06,612 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1925791, but all backup thread are already active: 260
24 Mar 2017 | 04:19:06,612 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1925791, but all backup thread are already active: 260
24 Mar 2017 | 04:19:06,612 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1925791, but all backup thread are already active: 260
24 Mar 2017 | 04:19:36,622 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1962212, but all backup thread are already active: 260
24 Mar 2017 | 04:19:36,622 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1962212, but all backup thread are already active: 260
24 Mar 2017 | 04:19:36,622 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1962212, but all backup thread are already active: 260
24 Mar 2017 | 04:19:36,622 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1962212, but all backup thread are already active: 260
24 Mar 2017 | 04:20:06,632 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1998802, but all backup thread are already active: 260
24 Mar 2017 | 04:20:06,632 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1998802, but all backup thread are already active: 260
24 Mar 2017 | 04:20:06,632 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1998802, but all backup thread are already active: 260
24 Mar 2017 | 04:20:06,632 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 1998802, but all backup thread are already active: 260
24 Mar 2017 | 04:20:36,638 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2035396, but all backup thread are already active: 260
24 Mar 2017 | 04:20:36,638 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2035396, but all backup thread are already active: 260
24 Mar 2017 | 04:20:36,638 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2035396, but all backup thread are already active: 260
24 Mar 2017 | 04:20:36,638 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2035396, but all backup thread are already active: 260
24 Mar 2017 | 04:21:06,652 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2071715, but all backup thread are already active: 260
24 Mar 2017 | 04:21:06,652 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2071715, but all backup thread are already active: 260
24 Mar 2017 | 04:21:06,652 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2071715, but all backup thread are already active: 260
24 Mar 2017 | 04:21:06,652 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2071715, but all backup thread are already active: 260
24 Mar 2017 | 04:21:36,661 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2108223, but all backup thread are already active: 260
24 Mar 2017 | 04:21:36,661 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2108223, but all backup thread are already active: 260
24 Mar 2017 | 04:21:36,661 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2108223, but all backup thread are already active: 260
24 Mar 2017 | 04:21:36,661 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2108223, but all backup thread are already active: 260
24 Mar 2017 | 04:22:06,669 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2145045, but all backup thread are already active: 260
24 Mar 2017 | 04:22:36,676 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2181608, but all backup thread are already active: 260
24 Mar 2017 | 04:23:06,691 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2218187, but all backup thread are already active: 260
24 Mar 2017 | 04:23:06,691 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2218187, but all backup thread are already active: 260
24 Mar 2017 | 04:23:06,691 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2218187, but all backup thread are already active: 260
24 Mar 2017 | 04:23:06,691 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2218187, but all backup thread are already active: 260
24 Mar 2017 | 04:23:36,698 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2254540, but all backup thread are already active: 260
24 Mar 2017 | 04:23:36,698 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2254540, but all backup thread are already active: 260
24 Mar 2017 | 04:23:36,698 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2254540, but all backup thread are already active: 260
24 Mar 2017 | 04:23:36,698 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2254540, but all backup thread are already active: 260
24 Mar 2017 | 04:23:52,314 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session removed: { Id: 272, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:52193 }
24 Mar 2017 | 04:23:52,314 | INFO  | SFSWorker:Sys:1 | v2.api.SFSApi |     | User disconnected: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_8, Id: 271, Priv: 0, Sess: 127.0.0.1:52193 ) , SessionLen: 309795, Type: Unity
24 Mar 2017 | 04:23:52,319 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 273, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52200 } on Server port: 9933 <---> 52200
24 Mar 2017 | 04:23:52,354 | INFO  | SFSWorker:Sys:4 | v2.api.SFSApi |     | User login: { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_9, Id: 272, Priv: 0, Sess: 127.0.0.1:52200 ) , Type: Unity
24 Mar 2017 | 04:23:52,427 | INFO  | SFSWorker:Sys:1 | v2.api.SFSApi |     | Room joined: [ MMORoom: Midgard0, Id: 1, Group: default, AOI: (16.0, 9.0, 0.0) ], { Zone: Vikings Fate }, ( User Name: Midgard0_Bot_Manager_9, Id: 272, Priv: 0, Sess: 127.0.0.1:52200 ) , asSpect: false
24 Mar 2017 | 04:24:06,705 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2290888, but all backup thread are already active: 260
24 Mar 2017 | 04:24:06,705 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2290888, but all backup thread are already active: 260
24 Mar 2017 | 04:24:36,726 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2327258, but all backup thread are already active: 260
24 Mar 2017 | 04:24:36,726 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2327258, but all backup thread are already active: 260
24 Mar 2017 | 04:24:36,726 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2327258, but all backup thread are already active: 260
24 Mar 2017 | 04:24:36,726 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2327258, but all backup thread are already active: 260
24 Mar 2017 | 04:25:06,730 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2363912, but all backup thread are already active: 260
24 Mar 2017 | 04:25:06,730 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2363912, but all backup thread are already active: 260
24 Mar 2017 | 04:25:06,730 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2363912, but all backup thread are already active: 260
24 Mar 2017 | 04:25:06,730 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2363912, but all backup thread are already active: 260
24 Mar 2017 | 04:25:36,740 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2400360, but all backup thread are already active: 260
24 Mar 2017 | 04:25:36,740 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2400360, but all backup thread are already active: 260
24 Mar 2017 | 04:25:36,740 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2400360, but all backup thread are already active: 260
24 Mar 2017 | 04:25:36,740 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2400360, but all backup thread are already active: 260
24 Mar 2017 | 04:26:06,763 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2436818, but all backup thread are already active: 260
24 Mar 2017 | 04:26:06,763 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2436818, but all backup thread are already active: 260
24 Mar 2017 | 04:26:06,763 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2436818, but all backup thread are already active: 260
24 Mar 2017 | 04:26:06,763 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2436818, but all backup thread are already active: 260
24 Mar 2017 | 04:26:36,769 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2473599, but all backup thread are already active: 260
24 Mar 2017 | 04:26:36,769 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2473599, but all backup thread are already active: 260
24 Mar 2017 | 04:26:36,769 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2473599, but all backup thread are already active: 260
24 Mar 2017 | 04:26:36,769 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2473599, but all backup thread are already active: 260
24 Mar 2017 | 04:27:06,779 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2510533, but all backup thread are already active: 260
24 Mar 2017 | 04:27:06,779 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2510533, but all backup thread are already active: 260
24 Mar 2017 | 04:27:36,791 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2547031, but all backup thread are already active: 260
24 Mar 2017 | 04:27:36,791 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2547031, but all backup thread are already active: 260
24 Mar 2017 | 04:27:36,791 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2547031, but all backup thread are already active: 260
24 Mar 2017 | 04:27:36,791 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2547031, but all backup thread are already active: 260
24 Mar 2017 | 04:28:06,803 | WARN  | SFSWorker:Sys:1 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2583809, but all backup thread are already active: 260
24 Mar 2017 | 04:28:06,803 | WARN  | SFSWorker:Sys:2 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2583809, but all backup thread are already active: 260
24 Mar 2017 | 04:28:06,803 | WARN  | SFSWorker:Sys:4 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2583809, but all backup thread are already active: 260
24 Mar 2017 | 04:28:06,803 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2583809, but all backup thread are already active: 260
24 Mar 2017 | 04:28:36,821 | WARN  | SFSWorker:Sys:3 | util.executor.SmartThreadPoolExecutor |     | Ext :: Queue size is big: 2620458, but all backup thread are already active: 260
......



:D I found that the cause can be the memory leaks, also I don't remove all of the event listeners from the client, but just disconnecting him, can this be the problem?

Thanks!
Last edited by TryMyGames on 25 Mar 2017, 02:06, edited 1 time in total.
User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

Re: ADDING INFINITE THREADS AMOUNT

Postby TryMyGames » 24 Mar 2017, 12:46

Found this in documentation:

The Scheduler also exposes a schedule method that executes a Runnable task once after the specified amount of time. Finally the Scheduler's thread pool can be resized on-the-fly at runtime via the resizeThreadPool() method.


I have like hundreds of schedules created per second, the only cleaning thing I do is someSchedule.cancel(true);

should I use resizeThreadPool() method?

Thanks
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: ADDING INFINITE THREADS AMOUNT

Postby Lapo » 24 Mar 2017, 15:19

The messages have nothing to do with Schedulers or scheduled tasks.
The server is simply notifying that it is auto-scaling the system thread pool to keep up with the load.

The most likely reason for this is that some pretty slow code (e.g. database or external HTTP Calls) are being used in large amounts and are keeping each thread busy for a long time.

If you go check the status of the server's queue (AdminTool > Dashboard) you will notice the problem.

You can allow the server to spawn more threads:
http://docs2x.smartfoxserver.com/Advanc ... extensions
but this is symptom of a bottleneck issue.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

Re: ADDING INFINITE THREADS AMOUNT

Postby TryMyGames » 25 Mar 2017, 02:04

I found the cause of the problem) I didn't expect that to happen)

As I mentioned in my another post, I have an instance per Room of Bot Manager application running, also as I mentioned in my other post http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=19309 I use my own machine for server and I'm connected to a simple home network, so now when I have hundreds of users connected as bots I update the problem to a next level:

1. Server is running and for example ~50 bots are connected to smartfox locally.
2. I connect remotely to server machine using in my case Team Viewer and BOOOOOOM, I triggered the problem again, the server becomes unresponsive, Admin Tool Dashboard also stopped updating and I was unable to connect to smartfox again, so this was the state the last state of the Dashboard:

Image


3. Waited a couple of time for it to unfreeze...doesn't help, closed connection from team viewer :D and vuala:
It started to work, a lot of messages were added to queue due to the fact that bots were still thinking that they are connected to the server (same with Admin Tool) and were sending their position ~10 times per second:

Image
Image

Hopefully this kind of problems will not occur in case of a Dedicated server)

Thanks!
Attachments
Queue.png
(152.89 KiB) Not downloaded yet
AfterLag.png
(200.59 KiB) Not downloaded yet
OnLag.png
(230.05 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: ADDING INFINITE THREADS AMOUNT

Postby Lapo » 25 Mar 2017, 09:18

TryMyGames wrote:
1. Server is running and for example ~50 bots are connected to smartfox locally.
2. I connect remotely to server machine using in my case Team Viewer and BOOOOOOM, I triggered the problem again, the server becomes unresponsive,

It sounds like you are saturating your network. The server can't write data back and starts slowing down.

Code: Select all

Admin Tool Dashboard also stopped updating and I was unable to connect to smartfox again, so this was the state the last state of the Dashboard:

Yes, confirms my supposition. You need a better network :)

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 114 guests