You probably don't need 512MB for PermGen.  If I needed to run GeoServer in
512MB of RAM, I would start by setting JAVA_OPTS like: "-Xmx128M
-XX:MaxPermSize=192M" and reducing the size of the Tomcat thread pool (to
limit the number of concurrent requests GeoServer will try to serve. You
can also do this in a more fine-grained way with the control-flow module:
http://docs.geoserver.org/stable/en/user/extensions/controlflow/index.html,
but that would be adding more code and contributing to the pressure on
PermGen.)

You can also use JConsole or JVisualVM to keep an eye on memory usage.
This is probably most effective if you are also controlling a client, so
you can correlate increases in memory consumption with operations (and then
configure GeoServer not to offer those operations if you don't need them.)
http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html
http://docs.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html

Note that both JConsole and JVisualVM can operate through an SSH tunnel, so
you don't need to expend much of the server's RAM on running them.

--
David Winslow
OpenGeo - http://opengeo.org/

On Thu, Oct 4, 2012 at 7:22 PM, cmaul <[email protected]> wrote:

> Robert,
>
> first remove every service you do not need, no WPS, no format that you do
> not access, only datbases you need try to make the installation as lean as
> possible.
> Next starting with 128 MB PermGen/MaxPermGen, (may be even 96 MB) and go up
> in 32MB steps, if 128 does not suffice. Try to minimise the PermGen. Give
> as
> much as you can to the heap.
> There was a link on this list from somebody pointing to:
> http://opengeo.org/publications/geoserver-production/
> which is a nice summary of geoserver configuration for production.
>
> Then monitor the memory use of the VM :
>
> -Xloggc:somewhere\gc.log
> -XX:+PrintGCDetails
>
> I do appreciate the sportsmanship of this attempt to get away with 512 MB
> RAM, however, compared to the work involved isn't it cheaper to go to to
> the
> next shop get some RAM and stuff it in the box?
>
> Cheers
>
> Christian
>
>
>
>
>
> -----
> ____________________________
>
> Dr Christian Maul
> Project Manager
>
> Information Services Branch
> Department of Sustainability and Environment
> Level13, Marland House, 570 Bourke Street
> Melbourne 3000
>
> PO Box 500, East Melbourne Vic 3002
>
>
> Telephone:        +61-3-8636 2325
> Telefax:              +61-3-8636 2813
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Installation-on-server-with-low-memory-tp5006291p5006518.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to