HELP|| Overuse of memory?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

ransaymour
Posts: 27
Joined: 20 Jun 2016, 18:30

HELP|| Overuse of memory?

Postby ransaymour » 14 Jul 2022, 12:28

Is it normal for SFS to use so much memory? :shock:

This is a non-public server and used by developers for testing.

SFSPRO_V :1.6.20
OS: linux ubuntu 20.04.
Last edited by ransaymour on 16 Jul 2022, 12:38, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: HELP|| Overuse of memory?

Postby Lapo » 14 Jul 2022, 14:39

Hi,
if the machine has a lot of RAM available, SFS will use it. This is normal behavior for any Java application which essentially allocates the initial amount of memory as a fraction of the system RAM. This doesn't mean that SFS is actually using all that memory, but rather that the memory is available for use.

If you want to put a limit you can add a -Xmx switch in the launch script with the amount of maximum RAM to use.
For example:

Code: Select all

-Xmx1000M

limits the max RAM used by the JVM at 1GB.

On a 32GB machine the JVM can start with ~8GB of max memory, which doesn't mean it uses all of it, but it can reach that limit if necessary.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
ransaymour
Posts: 27
Joined: 20 Jun 2016, 18:30

Re: HELP|| Overuse of memory?

Postby ransaymour » 14 Jul 2022, 15:41

Hi lapo, now everything is clear.

thanks so much for the quick reply !!
:D

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 50 guests