[Geoserver-users] JVM Options

I have no experience with JVM and was looking over the docs on setting
the JVM heap ( I keep getting heap errors when viewing a large tif
mosaic). Could someone please elaborate on the "configure your
container for production" in the GeoServer in a Production Environment
documents. Where do is set the -server -Xms48m -Xmx256m etc ....
options?

--
Travis K.

Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------

Hi Travis. I see them as command line options, although there may be other places where one can set them. How are you running GeoServer?

My shortcut for starting GeoServer looks like this:

"C:\Program Files\Java\jdk1.6.0_07\bin\java.exe" -DGEOSERVER_DATA_DIR="C:\Program Files\GeoServer 1.7.3\data_dir" -Xmx300m -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

A slightly updated (although probably still incomplete) version of the production considerations are here:

http://docs.geoserver.org/1.7.x/user/production/index.html

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Travis Kirstine wrote:

I have no experience with JVM and was looking over the docs on setting
the JVM heap ( I keep getting heap errors when viewing a large tif
mosaic). Could someone please elaborate on the "configure your
container for production" in the GeoServer in a Production Environment
documents. Where do is set the -server -Xms48m -Xmx256m etc ....
options?

I am running geoserver using Centos5 and is configured according to
the docs at http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install

2009/4/9 Mike Pumphrey <mike@anonymised.com>:

Hi Travis. I see them as command line options, although there may be other
places where one can set them. How are you running GeoServer?

My shortcut for starting GeoServer looks like this:

"C:\Program Files\Java\jdk1.6.0_07\bin\java.exe"
-DGEOSERVER_DATA_DIR="C:\Program Files\GeoServer 1.7.3\data_dir" -Xmx300m
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

A slightly updated (although probably still incomplete) version of the
production considerations are here:

http://docs.geoserver.org/1.7.x/user/production/index.html

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Travis Kirstine wrote:

I have no experience with JVM and was looking over the docs on setting
the JVM heap ( I keep getting heap errors when viewing a large tif
mosaic). Could someone please elaborate on the "configure your
container for production" in the GeoServer in a Production Environment
documents. Where do is set the -server -Xms48m -Xmx256m etc ....
options?

--
Travis K.

Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------

I think you need to set the CATALINA_OPTS environment variable. For example: export CATALINA_OPTS="-server -Xmx400m".

Gabriel
Travis Kirstine wrote:

I am running geoserver using Centos5 and is configured according to
the docs at http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install

2009/4/9 Mike Pumphrey <mike@anonymised.com>:

Hi Travis. I see them as command line options, although there may be other
places where one can set them. How are you running GeoServer?

My shortcut for starting GeoServer looks like this:

"C:\Program Files\Java\jdk1.6.0_07\bin\java.exe"
-DGEOSERVER_DATA_DIR="C:\Program Files\GeoServer 1.7.3\data_dir" -Xmx300m
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

A slightly updated (although probably still incomplete) version of the
production considerations are here:

http://docs.geoserver.org/1.7.x/user/production/index.html

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Travis Kirstine wrote:

I have no experience with JVM and was looking over the docs on setting
the JVM heap ( I keep getting heap errors when viewing a large tif
mosaic). Could someone please elaborate on the "configure your
container for production" in the GeoServer in a Production Environment
documents. Where do is set the -server -Xms48m -Xmx256m etc ....
options?