Hello all,
I have successfully installed & configured GeoServer on my PC ( Dual CPU, 2.GHz and 3Gb RAM) to use GWC (GeoWebCache). I am having a lot of memory issues at the moment. I can see that the gwc successfully creates the file caches and from time to time I am getting OOM - Out Of Memory errors. I am just wondering what is the recommended memory required to run the GeoServer and GWC…
I have another question that is more of the GWC than GeoServer, but I would really appreciate if you can have any comments: I am just wondering if I can use MapServ with GWC as its caching solution instead of tilecache that is implemented in python. If this is possible, how do you configure the mapserver to work with GWC?
Thanks,
Godfrey
Godfrey nangoma wrote:
Hello all,
I have successfully installed & configured GeoServer on my PC ( Dual CPU, 2.GHz and 3Gb RAM) to use GWC (GeoWebCache). I am having a lot of memory issues at the moment. I can see that the gwc successfully creates the file caches and from time to time I am getting OOM - Out Of Memory errors. I am just wondering what is the recommended memory required to run the GeoServer and GWC....
I have another question that is more of the GWC than GeoServer, but I would really appreciate if you can have any comments: I am just wondering if I can use MapServ with GWC as its caching solution instead of tilecache that is implemented in python. If this is possible, how do you configure the mapserver to work with GWC?
Thanks,
Godfrey
This is 1.7.0a ?
I believe we recommend 256 Mb RAM, but it depends on how complex your data and requests are. We tend to give the JVM of the container (Tomcat, Jetty) on our servers 1 to 2 Gb.
You can use a standalone version of GWC with MapServer. I'm polishing up 1.0 as we speak, care to subscribe to the geowebcache-users list and repeat question there, and I'll put out a new build and update the documentation in the order you need it ?
https://lists.sourceforge.net/lists/listinfo/geowebcache-users
-Arne
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Arne Kepp ha scritto:
Godfrey nangoma wrote:
Hello all,
I have successfully installed & configured GeoServer on my PC ( Dual CPU, 2.GHz and 3Gb RAM) to use GWC (GeoWebCache). I am having a lot of memory issues at the moment. I can see that the gwc successfully creates the file caches and from time to time I am getting OOM - Out Of Memory errors. I am just wondering what is the recommended memory required to run the GeoServer and GWC....
Do you have the error logs? Can you paste some log around those OOM
you're getting?
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Godfrey nangoma ha scritto:
Hello Andrea
Hi. Please keep the users list cc'ed 
Below is the OOM exception that was thrown when I tried to create SLD:
rest based on schemaBase: null
[java] Nov 17, 2008 10:52:41 AM org.apache.catalina.core.ApplicationDispatcher invoke
[java] SEVERE: Servlet.service() for servlet jsp threw exception
[java] java.lang.OutOfMemoryError: PermGen space
Ah, right, permgen. This happens when you have too many classes
loaded in the JVM, and GeoServer + GWC deployed separately do
use in fact a lot.
Trying adding this parameter to the java options of your JVM (should be
in catalina.bat/sh):
-XX:MaxPermSize=128m
(or a bigger value, it all depends on how many GeoServers/GWC instances
you want to run in parallel in your JVM).
If you do so, also adjust the max memory to something bigger, like:
-Xms48m -Xmx256M
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thanks Andrea for a quick response,
Yes, I do have other webapps running in the same Tomcat container. I guess that is the reason this keeps failing. I am wondering, if you have any documentation on how to use GeoWebCache with mapserv…
Thanks
On Mon, Nov 17, 2008 at 11:18 AM, Andrea Aime <aaime@anonymised.com> wrote:
Godfrey nangoma ha scritto:
Hello Andrea
Hi. Please keep the users list cc’ed 
Below is the OOM exception that was thrown when I tried to create SLD:
rest based on schemaBase: null
[java] Nov 17, 2008 10:52:41 AM org.apache.catalina.core.ApplicationDispatcher invoke
[java] SEVERE: Servlet.service() for servlet jsp threw exception
[java] java.lang.OutOfMemoryError: PermGen space
Ah, right, permgen. This happens when you have too many classes
loaded in the JVM, and GeoServer + GWC deployed separately do
use in fact a lot.
Trying adding this parameter to the java options of your JVM (should be
in catalina.bat/sh):
-XX:MaxPermSize=128m
(or a bigger value, it all depends on how many GeoServers/GWC instances
you want to run in parallel in your JVM).
If you do so, also adjust the max memory to something bigger, like:
-Xms48m -Xmx256M
Hope this helps
Cheers
Andrea
–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Godfrey nangoma ha scritto:
Thanks Andrea for a quick response,
Yes, I do have other webapps running in the same Tomcat container. I guess that is the reason this keeps failing. I am wondering, if you have any documentation on how to use GeoWebCache with mapserv....
It's no different than using it with GeoServer, it uses the WMS
interface which is a standard protocol. Just look at the sample
GWC layers and change the requests to match the MapServer URL.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thanks Andrea,
I am following the instruction on web site and encounter some problems with using MapServ. Here are the steps that I have followed.
- Modify the web.xml file
1.1 Specify the GEOSERVER_DATA_DIR
1.2 Specify the GEOSERVER_WMS_URL to localhost/cgi-bin/mapserv.exe
1.3 Specify the GEOWEBCACHE_DIR to where I want the cache files are to be saved
I also modified the layerTest.xml file.
Changed the wmsUrl to point to MapServ URL.
But when I run the test at
http://localhost/geowebcache/service/wms?layers=topp:states
I get the error message stating:
400: Unable to determine requested format, null…
Am I doing something wrong?
Thanks again for your help on this… I really need to test this with MapServ.
Thanks,
Godfrey
On Mon, Nov 17, 2008 at 12:15 PM, Andrea Aime <aaime@anonymised.com> wrote:
Godfrey nangoma ha scritto:
Thanks Andrea for a quick response,
Yes, I do have other webapps running in the same Tomcat container. I guess that is the reason this keeps failing. I am wondering, if you have any documentation on how to use GeoWebCache with mapserv…
It’s no different than using it with GeoServer, it uses the WMS
interface which is a standard protocol. Just look at the sample
GWC layers and change the requests to match the MapServer URL.
Cheers
Andrea
–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi Godfrey,
as I requested earlier [1], please bring the topic to geowebcache-users , since MapServer has little to do with GeoServer ?
-Arne
1: http://www.nabble.com/GeoServer-Memory-Issue-td20541526.html
Godfrey nangoma wrote:
Thanks Andrea,
I am following the instruction on web site and encounter some problems with using MapServ. Here are the steps that I have followed.
1. Modify the web.xml file
1.1 Specify the GEOSERVER_DATA_DIR
1.2 Specify the GEOSERVER_WMS_URL to localhost/cgi-bin/mapserv.exe
1.3 Specify the GEOWEBCACHE_DIR to where I want the cache files are to be saved
I also modified the layerTest.xml file.
Changed the wmsUrl to point to MapServ URL.
But when I run the test at
http://localhost/geowebcache/service/wms?layers=topp:states
I get the error message stating:
400: Unable to determine requested format, null...
Am I doing something wrong?
Thanks again for your help on this... I really need to test this with MapServ.
Thanks,
Godfrey
On Mon, Nov 17, 2008 at 12:15 PM, Andrea Aime <aaime@anonymised.com <mailto:aaime@anonymised.com>> wrote:
Godfrey nangoma ha scritto:
Thanks Andrea for a quick response,
Yes, I do have other webapps running in the same Tomcat
container. I guess that is the reason this keeps failing. I am
wondering, if you have any documentation on how to use
GeoWebCache with mapserv....
It's no different than using it with GeoServer, it uses the WMS
interface which is a standard protocol. Just look at the sample
GWC layers and change the requests to match the MapServer URL.
Cheers
Andrea
-- Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers