powered by Jive Software

Erro Memória do Java

Boa tarde, estou com este erro:

Exception in thread “timer-monitoring” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-25-thread-4” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-5” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-11” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-2” Exception in thread “pool-6-thread-6” java.lang.OutOfMemoryError: Java heap space
Exception in thread “Socket Listener at port 5269” java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
An unexpected exception occurred:
Exception in thread “Server SR - 22188863” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-12” java.lang.OutOfMemoryError: Java heap space
An unexpected exception occurred:
Exception in thread “TaskEngine-timer” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-1” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-7” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-3” java.lang.OutOfMemoryError: Java heap space
Exception in thread “Update Manager” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-9” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-7-thread-1” java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-6-thread-4” java.lang.OutOfMemoryError: Java heap space
An unexpected exception occurred:
Exception in thread “HouseKeeper” java.lang.OutOfMemoryError: Java heap space

Gostaria de passar o meu Spark para Banco Externo, pois não consigo aumentar mais a memória do Java.

http://download.igniterealtime.org/openfire/docs/latest/documentation/install-guide.html

Custom Parameters
Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize
the runtime environment of Openfire. You can do this by creating openfire.vmoptions files in the bin/
directory of your Openfire installation. For the Windows service, you’d create a new text
file called openfire-service.vmoptions. Each parameter to the VM should be on a new line of
the file. For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB, you’d use:

-Xms512m
-Xmx1024m

To create parameters for the normal launcher, create a file called openfired.vmoptions (since
the openfire.exe launcher invokes the openfired.exe executable to actually start the server).

Ja tenho esse arquivos criados. Mesmo assim o Spark funciona durante algumas horas, e depois para.
Temos aqui no escritório 63 usuários e o arquivo vmoptions está assim:
-Xms512m
-Xmm1024m
-Xmx1466m
-XX:NewRatio=2
-XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=30

How much RAM does the server has? What version of Openfire? Try updating to the latest.
I would leave only

-Xms512m
-Xmx1024m

In this file. Maybe up -Xmx to say 1536. If you are using 64-bit Openfire and have more RAM, then you can go even higher, like 2000 or more.