Hello List,
I have an issue with my current setup:
Geoserver 1.7.2
Windows Server 2003 (WebServer)
Utilizing Geoserver instance of GeoWebCache (preloaded in 1.7.2)
Geoserver is running as a service using the Java-Service-Wrapper
Oracle XE (datastore is remote, on a desktop)
My question is this:
I have been having major problems with Geoserver throwing the Heap Out of Memory error when trying to view a parcel layer via GeoWebCache. The parcel layer is kinda big (32686 features) but nothing that Geoserver should be choking on. Geoserver is running as a service. Open layers returns the parcels for a while, but after I navigate to another location, the Heap-Out of memory error begins to be thrown.
If I view the same parcel layer (same datastore config) on another instance of geoserver that is NOT running geoserver as a service with the java wrapper, it works just fine. Caches beautifully and the performance is blazing! I see that one possible thing to first try to increase the memory allotted using the “–Xmx256” but I don’t know where to use this script. Furthermore, since I am using the Wrapper, I think the problem may be something else.
Also, if anybody has had trouble using GWC in combination with the Java-Service-Wrapper I would like to know about any hurdles you had to go over.
Any help would be great and I hope I provided enough info about my environment and problem.
Thanks,
Tom
Mike: Any idea how to set this in the service wrapper?
My guess is that you encounter the problem because GWC is making metatiled requests that result in 1024x1024 images before they are sliced into tiles. Increasing the heap space is definitely a good idea, at least to 256 Mb (I would say 512 if its a production box, 1024 if you have more than 2 Gb RAM). Memory requirements depend on the complexity of the SLD, but are generally independent of the number of features in a layer because GeoServer uses a streaming renderer.
You could try setting it in a global environment variable JAVA_OPTS. Worst case, you can install Tomcat 6 (which runs as a service and is not bad, but Jetty is fine too).
-Arne
Tomas Lopes wrote:
Hello List,
I have an issue with my current setup:
Geoserver 1.7.2
Windows Server 2003 (WebServer)
Utilizing Geoserver instance of GeoWebCache (preloaded in 1.7.2)
Geoserver is running as a service using the Java-Service-Wrapper
Oracle XE (datastore is remote, on a desktop)
My question is this:
I have been having major problems with Geoserver throwing the /Heap Out of Memory/ error when trying to view a parcel layer via GeoWebCache. The parcel layer is kinda big (32686 features) but nothing that Geoserver should be choking on. Geoserver is running as a service. Open layers returns the parcels for a while, but after I navigate to another location, the Heap-Out of memory error begins to be thrown.
If I view the same parcel layer (same datastore config) on another instance of geoserver that is NOT running geoserver as a service with the java wrapper, it works just fine. Caches beautifully and the performance is blazing! I see that one possible thing to first try to increase the memory allotted using the “–Xmx256” but I don’t know where to use this script. Furthermore, since I am using the Wrapper, I think the problem may be something else. //
Also, if anybody has had trouble using GWC in combination with the Java-Service-Wrapper I would like to know about any hurdles you had to go over.
Any help would be great and I hope I provided enough info about my environment and problem.
Thanks,
Tom
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers