Hi Andrea,
On 09-12-10 14:05, Andrea Aime wrote:
> On Thu, Dec 9, 2010 at 11:59 AM, Just van den Broecke
> <[email protected]> wrote:
>> Hi,
>>
>> I upgraded GS from 2.0.2 to 2.1-beta2. I now get OOM exceptions and
>> locking errors (see below) from Java NIO FileChannel (memory mapped
>> files I think) when serving Shapefiles several times via WMS. Usually
>> the first rendering after a fresh start of GS went OK. The same
>> config/Shapefiles did not cause these exceptions in 2.0.2.
>
> Are you running on Windows? I'd suggest to disable memory mapping there,
> the OS is simply not good enough to handle memory maps effectively.
No on Ubuntu Linux, settings:
Ubuntu 9.10 32b, 12 GB RAM, Sun JDK 1.6_22, native JAI+ImageIO, Tomcat
6.0.29, no Gdal bindings. Tomcat JAVA_OPTS="-server -Xmx1500M -Xms256M
-XX:SoftRefLRUPolicyMSPerMB=36000 -XX:MaxPermSize=512m -XX:+UseParallelGC"
I use a directory of (10) Shape files as a datastore. The problem
happens only with one Shape file (the largest: 370MB dbf).
>
> On Linux enable it as well as memory maps caches
All these Store options were disabled when the original problem occurred:
Create spatial index if missing/outdated
Use memory mapped buffers
Cache and reuse memory maps
If I enable all of these I get exceptions for all Shape files.
If I enable only "Cache and reuse memory maps" I get a new exception:
09 Dec 14:54:21 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: The requested Style can not be
used with this layer. The style specifies an attribute of TYPEWEG and
the layer is: inspire:tn_wegdeel_vlak
at
org.geoserver.wms.map.GetMapKvpRequestReader.checkStyle(GetMapKvpRequestReader.java:1024)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:375)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:71)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1168)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:506)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:226)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
This style (my SLD) has always worked and was not changed and when I use
ogrinfo -al to dump the Shape file I see that this attribute TYPEWEG is
present and has values. Strange..
best,
Just
>
> Cheers
> Andrea
>
> -----------------------------------------------------
> Ing. Andrea Aime
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584962313
> fax: +39 0584962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -----------------------------------------------------
>
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:
WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users