Openfire Java Memory

I have openfire installed on my debian server.

I want to know if java openfire memory should be less than server memory?

For example, I have a server with 256MB of RAM, now I have openfire java memory over 256MB of RAM, or it should be less than 256.

Please, help

Thank you, Pankai

+2


source to share


1 answer


The "Java memory" should definitely be lower, preferably slightly lower than the available RAM, otherwise your server will start swapping and server performance will be significantly degraded.

A few things to keep in mind to determine the "correct" settings for the Java heap heap:



  • what is running on the server? If OpenFire is the only thing that works, it might be allowed to reserve more RAM.
  • How much RAM does OpenFire really need? If you give a Java process a lot of heap memory, it will fill it up before garbage collection starts. If you reduce the size of the heap, you will need to collect more garbage.

It can take a while to find the "ideal" settings, but it is often not useful to simply let the server take up more memory.

+3


source







All Articles