On Thu, Dec 9, 2010 at 6:30 PM, Just van den Broecke
<j...@justobjects.nl> wrote:
> On 09-12-10 16:32, Andrea Aime wrote:
>> On Thu, Dec 9, 2010 at 3:13 PM, Just van den Broecke
>> <j...@justobjects.nl>  wrote:
>>> Hi Andrea,
>>>
>>> On 09-12-10 14:05, Andrea Aime wrote:
>>>> On Thu, Dec 9, 2010 at 11:59 AM, Just van den Broecke
>>>> <j...@justobjects.nl>    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).
>>
>> Hmmm... odd, during the FOSS4G shootout we had 1.7GB .shp and
>> dbf files over 2GB and found no issues.
> That was 2.1-beta1 probably ? Like said in 2.0.2 I also had no issues.
>>
>> Is it possible to have the shapefile in question along with the style
>> and the request that makes it break?
> Ok, already sent privately.

Ok, finally found some time to look into this. I can confirm this is an issue
happening on windows only, the memory mapping failed to be disabled
according to configuration

I fixed it, but not in time for beta3. However I've attached fixed shapefile
store jar which should work as a replacement for the one in beta3 here:
http://jira.codehaus.org/browse/GEOS-4268

Past the patch I tried to display a 4.5GB (total, shp + dbf) shapefile
which was part of the
FOSS4G 2010 exercise on windows and had no issues

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

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

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to