On Fri, Feb 3, 2012 at 9:15 AM, Yang <[email protected]> wrote: > see the following stack trace: I used useMemoryMappedBuffer = true for the > ShapeFileDataStore/ShapeFileReader, > > since the shape file is very large (several GBs), the FileChannel.map() ran > out of memory.
I guess you are on Windows? Windows memory mapping is a bug, not a feature, don't use it :-) On linux I use memory mapping extensively without problems since memory mapping does not actually need to put the file in memory Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
