Dear Mark,
a tentative fix is in for 2.4.x. You should be able to grab a nightly today
for testing.


Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Tue, Feb 25, 2014 at 1:23 AM, Simone Giannecchini <
[email protected]> wrote:

> Ciao Mark,
> I am going to check on this right now.
>
> I believe the mapping parameter is not exposed atm for mosaics and
> pyramids by default and as such it should not
> use memory mapping. I am opening a JIRA for this :
> https://jira.codehaus.org/browse/GEOT-4712
>
> An alternative for the time being would be to use a datastore.properties
> like the one attached that you can put in the mosaic directory to control
> how the shapefile is built more finely.
>
> Regards,
> Simone Giannecchini
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:     +39 0584 1660272
> mob:   +39  333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Fri, Feb 21, 2014 at 6:28 AM, Mark Grantham <[email protected]>wrote:
>
>> Hi,
>>
>> I am currently trialling GeoServer and have a bunch of Image Pyramids
>> configured on GeoServer 2.5 beta on Windows. Occasionally, I got the
>> following error:
>>   at
>>
>> org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:1301)
>>     ... 119 more
>> Caused by: java.lang.OutOfMemoryError: Map failed
>>     at sun.nio.ch.FileChannelImpl.map0(Native Method)
>>     ... 133 more
>>
>> I am running on a 32-bit JVM with ImageIO Native installed. I have the
>> full stack below (it is long!)
>>
>> After some research, I found this issue:
>> http://jira.codehaus.org/browse/GEOS-4268
>> Is it likely that the problem which I am having is because the Image
>> Pyramid plugin uses Shapefiles, but does not expose the "Use memory
>> mapped buffers (Disable on Windows)" parameter on the store? Or is there
>> something else going on?
>>
>> Thanks
>>
>> Mark
>>
>> 2014-02-20 15:53:17,619 ERROR [geoserver.ows] -
>> org.geoserver.platform.ServiceException: Error rendering coverage on the
>> fast path
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:331)
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:251)
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:123)
>>     at org.geoserver.wms.GetMap.executeInternal(GetMap.java:509)
>>     at org.geoserver.wms.GetMap.run(GetMap.java:253)
>>     at org.geoserver.wms.GetMap.run(GetMap.java:124)
>>     at
>>
>> org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:328)
>>     at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>     at
>>
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
>>     at
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>>     at
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>>     at
>>
>> org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
>>     at
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>>     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:79)
>>     at
>>
>> org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:54)
>>     at
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>>     at
>>
>> org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:32)
>>     at
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>>     at
>>
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
>>     at com.sun.proxy.$Proxy66.getMap(Unknown Source)
>>     at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>     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:707)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>>     at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>>     at
>>
>> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>>
>> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
>>     at
>> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
>>     at
>>
>> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
>>     at
>>
>> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>>
>> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     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:52)
>>     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:134)
>>     at
>>
>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
>>     at
>>
>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:48)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>>
>> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>>
>> org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
>>     at
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>>     at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>>     at
>>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>     at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>     at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>     at
>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>>     at
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>     at
>>
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>     at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>     at org.mortbay.jetty.Server.handle(Server.java:324)
>>     at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>     at
>>
>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>>     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>>     at
>>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>     at
>>
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>> Caused by: org.geoserver.platform.ServiceException:
>> org.geotools.data.DataSourceException: Unable to create this mosaic
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:898)
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:329)
>>     ... 105 more
>> Caused by: org.geotools.data.DataSourceException: Unable to create this
>> mosaic
>>     at
>>
>> org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:1352)
>>     at
>>
>> org.geotools.gce.imagemosaic.RasterLayerResponse.processRequest(RasterLayerResponse.java:1193)
>>     at
>>
>> org.geotools.gce.imagemosaic.RasterLayerResponse.createResponse(RasterLayerResponse.java:1159)
>>     at
>> org.geotools.gce.imagemosaic.RasterManager.read(RasterManager.java:1125)
>>     at
>>
>> org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:629)
>>     at
>>
>> org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:608)
>>     at
>>
>> org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:542)
>>     at
>>
>> org.geotools.gce.imagepyramid.ImagePyramidReader.loadRequestedTiles(ImagePyramidReader.java:494)
>>     at
>>
>> org.geotools.gce.imagepyramid.ImagePyramidReader.loadTiles(ImagePyramidReader.java:434)
>>     at
>>
>> org.geotools.gce.imagepyramid.ImagePyramidReader.read(ImagePyramidReader.java:373)
>>     at
>>
>> org.geotools.coverage.grid.io.AbstractGridCoverage2DReader.read(AbstractGridCoverage2DReader.java:147)
>>     at
>>
>> org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:140)
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.readBestCoverage(RenderedImageMapOutputFormat.java:1296)
>>     at
>>
>> org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:861)
>>     ... 106 more
>> Caused by: java.io.IOException: Map failed
>>     at sun.nio.ch.FileChannelImpl.map(Unknown Source)
>>     at org.geotools.data.shapefile.files.ShpFiles.map(ShpFiles.java:929)
>>     at
>>
>> org.geotools.data.shapefile.files.FileChannelDecorator.map(FileChannelDecorator.java:81)
>>     at
>>
>> org.geotools.data.shapefile.shp.ShapefileReader.init(ShapefileReader.java:325)
>>     at
>>
>> org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:266)
>>     at
>>
>> org.geotools.data.shapefile.ShapefileSetManager.openShapeReader(ShapefileSetManager.java:51)
>>     at
>>
>> org.geotools.data.shapefile.ShapefileFeatureSource.getReaderInternal(ShapefileFeatureSource.java:263)
>>     at
>>
>> org.geotools.data.shapefile.ShapefileFeatureStore.getReaderInternal(ShapefileFeatureStore.java:126)
>>     at
>>
>> org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:563)
>>     at
>>
>> org.geotools.data.store.ContentFeatureSource.accepts(ContentFeatureSource.java:686)
>>     at
>>
>> org.geotools.data.store.ContentFeatureCollection.accepts(ContentFeatureCollection.java:121)
>>     at
>>
>> org.geotools.gce.imagemosaic.catalog.CachingDataStoreGranuleCatalog.getGranuleDescriptors(CachingDataStoreGranuleCatalog.java:158)
>>     at
>>
>> org.geotools.gce.imagemosaic.RasterManager.getGranuleDescriptors(RasterManager.java:1135)
>>     at
>>
>> org.geotools.gce.imagemosaic.RasterLayerResponse.prepareResponse(RasterLayerResponse.java:1301)
>>     ... 119 more
>> Caused by: java.lang.OutOfMemoryError: Map failed
>>     at sun.nio.ch.FileChannelImpl.map0(Native Method)
>>     ... 133 more
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to