[Geoserver-users] Problem of communication between Geoserver and GeoWebCache

Hi,

I have a Geoserver implementation with 90 layers and 5 group layers.
Everything works great, the layers and group layers being visible in an
OpenLayers application, but when I tried to cache the layers, for improving
the speed, i have this error:

2013-06-21 15:36:51,328 ERROR [geowebcache.GeoWebCacheDispatcher] - Problem
communicating with GeoServer
http://939632.vps-10.com:8081/geoserver/gwc/service/wms
2013-06-21 15:36:51,700 ERROR [geotools.map] - Call MapContent dispose() to
prevent memory leaks
2013-06-21 15:36:53,414 ERROR [geoserver.ows] -
java.lang.OutOfMemoryError: Java heap space
2013-06-21 15:36:53,419 ERROR [geowebcache.GeoWebCacheDispatcher] - Problem
communicating with GeoServer
http://939632.vps-10.com:8081/geoserver/gwc/service/wms
2013-06-21 15:36:54,019 ERROR [geotools.map] - Call MapContent dispose() to
prevent memory leaks
2013-06-21 15:38:32,719 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: This requested used more time than
allowed and has been forcefully stopped. Max rendering time is 120.0s
  at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:509)
  at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:255)
  at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:127)
  at org.geoserver.wms.GetMap.executeInternal(GetMap.java:466)
  at org.geoserver.wms.GetMap.run(GetMap.java:201)
  at org.geoserver.wms.GetMap.run(GetMap.java:111)
  at
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:356)
  at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
  at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  at
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:61)
  at
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:35)
  at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:78)
  at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:53)
  at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
  at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  at sun.proxy.$Proxy23.getMap(Unknown Source)
  at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:774)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
  at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1122)
  at
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:551)
  at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:496)
  at
org.geoserver.gwc.layer.GeoServerTileLayer.getTile(GeoServerTileLayer.java:445)
  at
org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispatcher.java:363)
  at
org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:254)
  at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  at
org.geoserver.gwc.dispatch.GwcServiceProxy.dispatch(GwcServiceProxy.java:87)
  at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:774)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
  at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
  at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
  at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
  at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
  at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
  at
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
  at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
  at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
  at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
  at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
  at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
  at
org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
  at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
  at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
  at
org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
  at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
  at
org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:46)
  at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
  at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
  at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
  at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
  at
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:103)
  at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
  at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
  at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
  at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
  at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
  at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
  at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:679)
2013-06-21 15:38:32,720 ERROR [geowebcache.GeoWebCacheDispatcher] - Problem
communicating with GeoServer
http://939632.vps-10.com:8081/geoserver/gwc/service/wms

The log of Gerserver reload is:

2013-06-21 16:08:16,842 INFO [org.geoserver] - Loaded layer group
'meridian2'
2013-06-21 16:08:16,846 INFO [org.geoserver] - Loaded layer group
'miniscale'
2013-06-21 16:08:16,847 INFO [org.geoserver] - Loaded layer group '250k'
2013-06-21 16:08:16,849 INFO [org.geoserver] - Loaded layer group 'strategi'
2013-06-21 16:08:16,862 INFO [org.geoserver] - Loaded service 'wcs', enabled
2013-06-21 16:08:16,869 INFO [org.geoserver] - Loaded service 'wfs', enabled
2013-06-21 16:08:16,875 INFO [org.geoserver] - Loaded service 'wms', enabled
2013-06-21 16:08:16,876 INFO [gwc.layer] - GeoServer TileLayer store base
directory is: /var/lib/tomcat7/webapps/geoserver/data/gwc-layers
2013-06-21 16:08:16,876 INFO [gwc.layer] - Loading tile layers from
/var/lib/tomcat7/webapps/geoserver/data/gwc-layers
2013-06-21 16:08:16,914 INFO [gwc.layer] - Initializing GWC configuration
based on GeoServer's Catalog
2013-06-21 16:08:16,914 INFO [gwc.layer] - GeoServer TileLayer store base
directory is: /var/lib/tomcat7/webapps/geoserver/data/gwc-layers
2013-06-21 16:08:16,915 INFO [gwc.layer] - Loading tile layers from
/var/lib/tomcat7/webapps/geoserver/data/gwc-layers
2013-06-21 16:08:16,987 INFO [gwc.layer] - GWC configuration based on
GeoServer's Catalog loaded successfuly
2013-06-21 16:08:16,987 INFO [config.XMLConfiguration] - Found configuration
file in /tmp/tomcat7-tomcat7-tmp/geowebcache
2013-06-21 16:08:17,032 INFO [config.XMLConfiguration] - Configuration file
validated fine.
2013-06-21 16:08:17,042 INFO [config.XMLConfiguration] - Initializing
GridSets from /tmp/tomcat7-tomcat7-tmp/geowebcache
2013-06-21 16:08:17,042 INFO [config.XMLConfiguration] - Initializing layers
from /tmp/tomcat7-tomcat7-tmp/geowebcache
2013-06-21 16:08:17,042 INFO [layer.TileLayerDispatcher] - Configuration
/tmp/tomcat7-tomcat7-tmp/geowebcache contained no layers.
2013-06-21 16:08:17,042 INFO [diskquota.ConfigLoader] - DiskQuota
configuration not found:
/tmp/tomcat7-tomcat7-tmp/geowebcache/geowebcache-diskquota.xml
2013-06-21 16:08:17,042 INFO [diskquota.ConfigLoader] - DiskQuota
configuration not found:
/tmp/tomcat7-tomcat7-tmp/geowebcache/geowebcache-diskquota.xml
2013-06-21 16:08:17,042 INFO [diskquota.DiskQuotaMonitor] - Disk quota
monitor shutting down...
2013-06-21 16:08:17,043 INFO [diskquota.DiskQuotaMonitor] - Shutting down
quota usage monitor...
2013-06-21 16:08:17,043 INFO [diskquota.QuotaUpdatesMonitor] - Shutting down
quota usage monitor...
2013-06-21 16:08:17,043 INFO [diskquota.QueuedQuotaUpdatesConsumer] -
Shutting down quota update background task due to InterruptedException
2013-06-21 16:08:17,043 INFO [diskquota.DiskQuotaMonitor] - Shutting down
quota statistics gathering monitor...
2013-06-21 16:08:17,086 INFO [diskquota.QueuedUsageStatsConsumer] - Shutting
down quota update background task due to interrupted exception
2013-06-21 16:08:17,086 INFO [diskquota.ConfigLoader] - DiskQuota
configuration not found:
/tmp/tomcat7-tomcat7-tmp/geowebcache/geowebcache-diskquota.xml
2013-06-21 16:08:17,086 INFO [diskquota.DiskQuotaMonitor] - Shutting down
clean up executor service...
2013-06-21 16:08:17,086 INFO [diskquota.DiskQuotaMonitor] - Setting up disk
quota periodic enforcement task
2013-06-21 16:08:17,087 INFO [diskquota.DiskQuotaMonitor] - 0 layers
configured with their own quotas.
2013-06-21 16:08:17,087 INFO [diskquota.DiskQuotaMonitor] - 96 layers
attached to global quota 500.0 MB
2013-06-21 16:08:17,116 INFO [diskquota.DiskQuotaMonitor] - Disk quota
periodic enforcement task set up every 10 SECONDS
2013-06-21 16:08:17,130 INFO [geoserver.wms] - Loaded font file
/var/lib/tomcat7/webapps/geoserver/data/styles/Strategi_Symbols.ttf, loaded
font 'Strategi Symbols' in family 'Strategi Symbols'

The server running is Ubuntu
GeoServer - Version 2.3.2
        Git Revision 1bcf49af9073855c8f5c8c64bb924440fb5baf2d
        Build Date 16-May-2013 03:29
        GeoTools Version 9.2 (rev 804e65d2d7b5a9247ccdcdccf0d1a5378a006ab3)
        GeoWebCache Version 1.4-M20130509a (rev
05467ecca1592aa9b2dafc1f4aa5845650feea21)
Tomcat 7
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

JAVA_OPTS="-Xms512m -Xmx6144m -XXPermSize=128m -XX:MaxPermSize=512m -server
-XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseParallelGC"

Any clue?
Thanks!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-of-communication-between-Geoserver-and-GeoWebCache-tp5061637.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
did you ever get an answer?

I have been trying to get the geoserver war file loaded in tomcat 7 on
windows for weeks without success.

I think we'll probably have to drop it as an alternative given the
difficulting in getting it working in an existing server environment.

I need to be able to run in tomcat for a bunch od otgher reasons.

Has anyone, ever actually successfully deployed geoserver on tomcat 7/xampp
on Windows?

If so, how?

THanks in advance.

Barry

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-of-communication-between-Geoserver-and-GeoWebCache-tp5061637p5092282.html
Sent from the GeoServer - User mailing list archive at Nabble.com.