Jump to content
xjoker_

Guide to debug server FPS issues ?

Recommended Posts

Hello. 

 

I'm asking your help to find out what can cause FPS issues on my server. 

Server specs : 

Quote

Intel  i7-7700K OC4c/8t - 4.7GHz /5GHz
64GB DDR4 2400 MHz

 

Logs with players < 20

Spoiler

[2019-03-11 / 08:16:24] FPS : 48.048 ||| entities : 353 ||| vehicles : 311 ||| players : 7
[2019-03-11 / 08:16:26] Sauvegarde en cours...
[2019-03-11 / 08:16:26] Sauvegarde terminée !
[2019-03-11 / 08:31:26] FPS : 47.4777 ||| entities : 352 ||| vehicles : 313 ||| players : 8
[2019-03-11 / 08:31:26] Sauvegarde en cours...
[2019-03-11 / 08:31:27] Sauvegarde terminée !
[2019-03-11 / 08:46:27] FPS : 47.619 ||| entities : 354 ||| vehicles : 313 ||| players : 8
[2019-03-11 / 08:46:27] Sauvegarde en cours...
[2019-03-11 / 08:46:29] Sauvegarde terminée !
[2019-03-11 / 09:01:29] FPS : 46.6472 ||| entities : 353 ||| vehicles : 313 ||| players : 8
[2019-03-11 / 09:01:30] Sauvegarde en cours...
[2019-03-11 / 09:01:30] Sauvegarde terminée !
[2019-03-11 / 09:16:30] FPS : 47.4777 ||| entities : 355 ||| vehicles : 313 ||| players : 10
[2019-03-11 / 09:16:32] Sauvegarde en cours...
[2019-03-11 / 09:16:32] Sauvegarde terminée !
[2019-03-11 / 09:31:32] FPS : 47.3373 ||| entities : 355 ||| vehicles : 314 ||| players : 9
[2019-03-11 / 09:31:32] Sauvegarde en cours...
[2019-03-11 / 09:31:33] Sauvegarde terminée !
[2019-03-11 / 09:46:33] FPS : 47.3373 ||| entities : 357 ||| vehicles : 315 ||| players : 11
[2019-03-11 / 09:46:33] Sauvegarde en cours...
[2019-03-11 / 09:46:35] Sauvegarde terminée !
[2019-03-11 / 10:01:35] FPS : 47.7612 ||| entities : 358 ||| vehicles : 315 ||| players : 13
[2019-03-11 / 10:01:35] Sauvegarde en cours...
[2019-03-11 / 10:01:37] Sauvegarde terminée !
[2019-03-11 / 10:16:37] FPS : 45.7143 ||| entities : 368 ||| vehicles : 325 ||| players : 17
[2019-03-11 / 10:16:38] Sauvegarde en cours...
[2019-03-11 / 10:16:38] Sauvegarde terminée !
[2019-03-11 / 10:31:38] FPS : 44.8179 ||| entities : 370 ||| vehicles : 320 ||| players : 18
[2019-03-11 / 10:31:39] Sauvegarde en cours...
[2019-03-11 / 10:31:39] Sauvegarde terminée !
[2019-03-11 / 10:46:39] FPS : 44.6927 ||| entities : 370 ||| vehicles : 328 ||| players : 20
[2019-03-11 / 10:46:40] Sauvegarde en cours...
[2019-03-11 / 10:46:41] Sauvegarde terminée !
[2019-03-11 / 11:01:41] FPS : 46.6472 ||| entities : 377 ||| vehicles : 332 ||| players : 18
[2019-03-11 / 11:01:43] Sauvegarde en cours...
[2019-03-11 / 11:01:43] Sauvegarde terminée !
[2019-03-11 / 11:16:43] FPS : 26.2295 ||| entities : 372 ||| vehicles : 328 ||| players : 19
[2019-03-11 / 11:16:46] Sauvegarde en cours...
[2019-03-11 / 11:16:46] Sauvegarde terminée !
[2019-03-11 / 11:31:46] FPS : 43.8356 ||| entities : 380 ||| vehicles : 334 ||| players : 20

 

 

Logs with players > 95

Spoiler

[2019-03-10 / 20:46:42] FPS : 12.7694 ||| entities : 472 ||| vehicles : 378 ||| players : 85
[2019-03-10 / 20:47:00] Sauvegarde en cours...
[2019-03-10 / 20:47:01] Sauvegarde terminée !
[2019-03-10 / 21:02:17] FPS : 10.8844 ||| entities : 499 ||| vehicles : 384 ||| players : 99
[2019-03-10 / 21:02:33] Sauvegarde en cours...
[2019-03-10 / 21:02:55] Sauvegarde terminée !
[2019-03-10 / 21:18:33] FPS : 9.37317 ||| entities : 499 ||| vehicles : 392 ||| players : 99
[2019-03-10 / 21:18:35] Sauvegarde en cours...
[2019-03-10 / 21:19:42] Sauvegarde terminée !
[2019-03-10 / 21:35:29] FPS : 9.55795 ||| entities : 507 ||| vehicles : 394 ||| players : 99
[2019-03-10 / 21:35:29] Sauvegarde en cours...
[2019-03-10 / 21:36:14] Sauvegarde terminée !
[2019-03-10 / 21:53:15] FPS : 9.59233 ||| entities : 469 ||| vehicles : 368 ||| players : 99
[2019-03-10 / 21:53:15] Sauvegarde en cours...
[2019-03-10 / 21:53:49] Sauvegarde terminée !
[2019-03-10 / 22:09:09] FPS : 11.8519 ||| entities : 463 ||| vehicles : 362 ||| players : 89
[2019-03-10 / 22:09:09] Sauvegarde en cours...
[2019-03-10 / 22:09:24] Sauvegarde terminée !

 

 

There is no AI in this mission.

Only players, vehicles, objects in mission.sqm (buildings / addActions / modules to hide objects ... ), and (many ?) sql queries (using extDB3).

 The command 

https://community.bistudio.com/wiki/diag_activeSQFScripts

shows nothing special on the server except 2-3 loops that are sleeping and save vehicles every 15min 

 

I don't think that I will find a more powerfull CPU than this one for Arma. 

So i'm looking for an efficient way to find out why he's running at 100% and the server goes < 10 FPS with many players.

Some servers can host 150-200 players without problems, and with many mods enabled ...

 

I tried to edit the basic.cfg file to "optimize" the network, using the guide on this forum, it had no effect 

I tried to move all the vehicles on a HC using setOwner, it was worse (desync). 

So I don't know. 

 

What is strange though, is that as you can see on my logs , the server needs

less than 1 second to save 18 players - 332 vehicles 

but more than 40 seconds to save 99 players - 394 vehicles 

Share this post


Link to post
Share on other sites

Grab the Profiling branch and profile

https://community.bistudio.com/wiki/Performance_Profiling

https://community.bistudio.com/wiki/diag_captureSlowFrame

https://community.bistudio.com/wiki/diag_captureFrame

 

You will want to execute these on the server if the server is at low fps.

 

21 hours ago, xjoker_ said:

and (many ?) sql queries (using extDB3)

Are you using "compile" to parse the query results? if so, you should stop doing that.

 

You might want to move your database stuff to your HC if you already have one.

  • Like 1

Share this post


Link to post
Share on other sites
54 minutes ago, Dedmen said:

I tried that on the server but I don't really know how to read the generated file and what the differents lines mean or how it can help me

😞

57 minutes ago, Dedmen said:

Are you using "compile" to parse the query results? if so, you should stop doing that.

I'm using parseSimpleArray for that

 

58 minutes ago, Dedmen said:

You might want to move your database stuff to your HC if you already have one.

It's actually a good idea I don't know why I didn't try that before

Share this post


Link to post
Share on other sites
6 minutes ago, xjoker_ said:

I tried that on the server but I don't really know how to read the generated file and what the differents lines mean or how it can help me

For reading the file you can execute captureFrame on your client to open the UI. And then copy-paste the text into it to display it.

What the lines mean is not documented. Have to apply some logical thinking. Like "nw" is network and "drw" is drawing aka rendering. And "sim" is simulation and so on.

I assume your main problem will be extDB calls anyway.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×