This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
8,445 Views 12 Replies Last post: Nov 26, 2009 8:30 AM by dickinson RSS
Bronze 7 posts since
Sep 15, 2007
Currently Being Moderated

Oct 18, 2007 5:25 AM

Increase java memory

Hi

 

 

How i can increase java memory because default is to low??

 

************************************************************************

Memoria de Java 

9,55 MB of 63,31 MB (15,1%) used

************************************************************************

 

regards

Tags: memory, java
Guus der Kinderen KeyContributor 603 posts since
Sep 8, 2005
Currently Being Moderated
Oct 18, 2007 6:02 AM in response to: Jorge Gustavo
Re: Increase java memory

 

Have a look at this tutorial: http://www.igniterealtime.org/community/docs/DOC-1033

 

 

You're probably interested in the section that is called 'heap settings'.

 

 

sixthring KeyContributor 3,747 posts since
Apr 2, 2007
Currently Being Moderated
Oct 18, 2007 6:04 AM in response to: Jorge Gustavo
Re: Increase java memory

 

This is an excerpt from the Openfire Installation Guide found in your documentation folder of the Openfire server install folder:

 

 

 

 

 

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 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).

 

 

Bronze 8 posts since
Oct 15, 2007
Currently Being Moderated
Oct 18, 2007 11:26 AM in response to: Jorge Gustavo
Re: Increase java memory

 

as a work around, I ususally uncomment the line in bin/openfire:

 

 

INSTALL4J_ADD_VM_PARAMS="-Xmx20g"

 

 

note: 20g is what I have.

 

 

I have not figure out why *.vmoptions file is sometimes not read.

 

 

dickinson Bronze 12 posts since
Sep 10, 2009
Currently Being Moderated
Nov 26, 2009 8:30 AM in response to: Jorge Gustavo
Re: Increase java memory

Add a line like this in /etc/sysconfig/openfire

 

OPENFIRE_OPTS="-Xms256m -Xmx512m

 

******************************************************************

 

This way worked to me in a Centos 5. tnx

sebastienserre Bronze 9 posts since
Dec 11, 2008
Currently Being Moderated
Aug 13, 2009 4:08 AM in response to: Jorge Gustavo
Re: Increase java memory

Hello

 

I'm using OpenFire on Ubuntu 8.04.

 

How can i increase the Java Memory???

 

Many thx by advance.

wroot KeyContributor 4,933 posts since
Jan 24, 2005
Currently Being Moderated
Aug 13, 2009 7:55 AM in response to: sebastienserre
Re: Increase java memory
sebastienserre Bronze 9 posts since
Dec 11, 2008
Currently Being Moderated
Aug 13, 2009 8:19 AM in response to: wroot
Re: Increase java memory

Hello and many thx for your answer

 

I've checked this page and i've added the string in "System Properties" but it unfortunately stay at 63.31 Mb

 

Could you please help more???

 

Many thx

wroot KeyContributor 4,933 posts since
Jan 24, 2005
Currently Being Moderated
Aug 14, 2009 8:37 AM in response to: sebastienserre
Re: Increase java memory

You dont have to add this to your System Properties. You should read that doc carefully. There is a link to Openfire Settings. Here, a quote:

 

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 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).
sebastienserre Bronze 9 posts since
Dec 11, 2008
Currently Being Moderated
Aug 14, 2009 8:02 AM in response to: wroot
Re: Increase java memory

I'm really sorry but i don't watch any link to Openfire Setting in the quote!

 

I've installed Openfire with the .deb find here:

http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openf ire_3.6.4_all.deb

 

on an Ubuntu 8.04

 

Where is the directory of the OpenFire installation??

 

I'm sorry... to insist

wroot KeyContributor 4,933 posts since
Jan 24, 2005
Currently Being Moderated
Aug 14, 2009 8:47 AM in response to: sebastienserre
Re: Increase java memory

I'm not sure about the deb installation. Maybe you should try to ask LG (the author of these docs) directly.

 

One more doc http://www.igniterealtime.org/community/docs/DOC-1033

At the bottom there are instructions about openfired.vmoptions file.

More Like This

  • Retrieving data ...

Bookmarked By (1)