Aumentar Memoria Java

Deseo sabar como pudeo aumentar a mas de 2G la meoria de java del openfire porque tengo aproximadamente 400 usuarios pero requiero almasanar informacion de las conversaciones y ya esta por copara toda la meria o como hago para que la informacion de las convesaciones no se levante en la memoria.

Cito

08-nov-2007 8:24 (en respuesta a Amol Kelaskar)

Re: Increasing Java Memory

In the openfire/bin directory, add a vmoptions file. The first part of the name of the vmoptions file should be the same as the executable running the Openfire service. For example, on Windows running as a service, you’d create a file named openfire-service.vmoptions. Among other things in this file, you can define the minimum and maximum memory to allocate to the process in the Java VM.

For example:

-Xms512m

-Xmx1024m

It’s worth noting that you’re bound to the 32 bit 2 GB limit on memory size for the Java VM. While the process may need a certain amount of memory, Java also needs a certain amount. It’s all taken out of the same 2 GB space for the Java VM. Giving the process all the available memory space (2 GB) leaves nothing for Java. Allocating up to 1 GB for the process (see the above example) seems to be a good mark.


Tenés una versión 32 bits o 64? por lo que veo para 32 b 2 gb es el límite pero desconosco si esto con PAE en 32 bits puede cambiar.

Saludos.