[Geoserver-users] Geoserver memory leak at geowebcach's seeding

Hi list,

When I use GeoWebCache to seed the map layer, Geoserver happens memory leak.
I found the area of "CMS Old Gen" in heap of geoserver's jvm. It will become
bigger and bigger and finally Geoserver hang by error of OutOfMemory.
GC is running, but something in the heap is not sweeped by GC. I also given
heap up to 800MB or down to 400MB, but result is same.

Following is my running environment on one server
------------------------------------------------------------------------
environment of Geoserver 1.7.2:
  Xeon 2GHz Quad-Core X 2, 2G RAM
  
  windows 2003,
  datastore of Postgis(at another DB server),
  web container of Jetty,
  JDK 1.6,
  JVM_OPT =
    -server
    -Djava.awt.headless=true
    -Xms600m -Xmx600m
    -XX:SoftRefLRUPolicyMSPerMB=6000
    -XX:PermSize=64M -XX:MaxPermSize=128m
    -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled,
  geoserver configuration
    JAI mem capacity: 0.2
    JAI mem threshold: 0.7
    JAI tile threads: 2
  
environment of GeoWebCache 1.0.1
  web container of Tomcat 6.0.16
  JVM_OPT =
    -Xms256m -Xmx256m
    -Xmn128m -XX:MaxPermSize=128m
    -XX:+UseConcMarkSweepGC
    -XX:+CMSClassUnloadingEnabled
  geowebcache.xml
    format: gif/png
    metaWidthHeight: 3 X 3
    threads on seeding: 1
------------------------------------------------------------------------
Whether I lost some configuration?
IS anyone can help on this ??
--
View this message in context: http://www.nabble.com/Geoserver-memory-leak-at-geowebcach's-seeding-tp23500887p23500887.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

andy_86 ha scritto:

Hi list,

When I use GeoWebCache to seed the map layer, Geoserver happens memory leak.
I found the area of "CMS Old Gen" in heap of geoserver's jvm. It will become
bigger and bigger and finally Geoserver hang by error of OutOfMemory.
GC is running, but something in the heap is not sweeped by GC. I also given
heap up to 800MB or down to 400MB, but result is same.

Whether I lost some configuration?
IS anyone can help on this ??

We had a few reports of this, but we never managed to reproduce the
problem in house. Every time I asked people to start GeoServer
with the -XX:+HeapDumpOnOutOfMemoryError and make the heap dump
that results out of an OOM available, but so far, no one
ever sent us back anything we can look into.
If you can make that information available I'll be happy to have
a quick look into it.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea Aime-4 wrote:

andy_86 ha scritto:

Hi list,

When I use GeoWebCache to seed the map layer, Geoserver happens memory
leak.
I found the area of "CMS Old Gen" in heap of geoserver's jvm. It will
become
bigger and bigger and finally Geoserver hang by error of OutOfMemory.
GC is running, but something in the heap is not sweeped by GC. I also
given
heap up to 800MB or down to 400MB, but result is same.

Whether I lost some configuration?
IS anyone can help on this ??

We had a few reports of this, but we never managed to reproduce the
problem in house. Every time I asked people to start GeoServer
with the -XX:+HeapDumpOnOutOfMemoryError and make the heap dump
that results out of an OOM available, but so far, no one
ever sent us back anything we can look into.
If you can make that information available I'll be happy to have
a quick look into it.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Andrea,

Thanks for your reply :).
I got a .hprof file. You can download it from
http://www.megaupload.com/?d=6EHLUC8P

ps: I given MaxPermSize down to 64MB and heap down to 400MB in this test.

Best Regards,
Andy
--
View this message in context: http://www.nabble.com/Geoserver-memory-leak-at-geowebcach's-seeding-tp23500887p23533653.html
Sent from the GeoServer - User mailing list archive at Nabble.com.