In & Out packets count and packet size

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

Moderators: Lapo, Bax

sitnik
Posts: 19
Joined: 24 Jan 2018, 08:49

In & Out packets count and packet size

Postby sitnik » 01 Feb 2019, 06:23

I want to capture the in & out packets count / hour and corresponding size in logs, how can i do that?

Intent is to highlight the events:
1. which are carrying high packet size so that they can be optimised.
2. which are triggered the most, ie. count per hour.


Also i would like to have stats separately for zone and all rooms.

please help how can i achienve this?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: In & Out packets count and packet size

Postby Lapo » 01 Feb 2019, 08:24

Hi,
you can do this analysis by turning on the DEBUG level of the logger. This will output all packets in binary and readable form in the log files. Then you can run a client (or multiple ones), play the game and check the resulting output.

I would not recommend to do this in production because the amount of logging is massive (especially with high traffic) and it will generate huge log files and degrade the server performance.

See here:
http://docs2x.smartfoxserver.com/Gettin ... figuration

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 92 guests