High RAM usage when using SmartFox

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

Moderators: Lapo, Bax

Post Reply
Nancywilson830
Posts: 1
Joined: 17 Mar 2024, 06:19

High RAM usage when using SmartFox

Post by Nancywilson830 »

Hi guys,
I am currently using SmartFox server with a 16GB RAM machine. At first it used around 5 to 6 GB, but I noticed recently it increased a lot at about 12GB. Is there anything I can do to reduce the RAM usage?
Best regards,
Nancy
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: High RAM usage when using SmartFox

Post by Lapo »

Hi,
normally SFS2X does not require that much RAM but depending on the amount of traffic and custom server side code you're using it can eat up more resource. Did you change the default memory settings of the server?
If so how?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
hieuitvnsoft
Posts: 12
Joined: 26 Sep 2023, 04:54

Re: High RAM usage when using SmartFox

Post by hieuitvnsoft »

Hi Lapo
https://freeimage.host/i/JjKa2j4
I have a question. Our server runs 8Gb of RAM but SFS only recognizes 2GB. Usage range is only 800Mb. So let me ask how to configure SFS to receive more RAM
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: High RAM usage when using SmartFox

Post by Lapo »

Hi,
SmartFoxServer doesn't need much memory to operate even with 1000s of concurrent players. The server will allocate more memory if necessary, otherwise il will use just what is needed.

If you want to learn more:
https://smartfoxserver.com/blog/sfs2x-m ... on-part-1/
https://smartfoxserver.com/blog/sfs2x-m ... on-part-2/

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