|
From: <no...@so...> - 2001-12-03 15:10:46
|
Support Requests item #476009, was opened at 2001-10-29 06:42 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=204091&aid=476009&group_id=4091 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Joachim Bröckl (saltag) Assigned to: Nobody/Anonymous (nobody) Summary: Memory Consumption Initial Comment: Hi, I have a .shp-file of 4.2 megabyte. Reading it with sf = ShapefileReader(myURL) consumes 17.5 megabyte of RAM, creating a layer object with sf.getLayer() dissipates another 32 MBytes. Adding a couple of other layers from other shape-files to my map soonly raises a OutOfMemoryException. Is there a way to reduce the memory consumption when creating layers? Thanks Joachim ---------------------------------------------------------------------- >Comment By: James Macgill (jmacgill) Date: 2001-12-03 07:10 Message: Logged In: YES user_id=9731 Sorry, I made the changes to GeoPoint localy, and completly failed to commit them into the main repository. So it's little wonder you saw no difference. Could you try again please? btw, the sugestion to nullify your shapefileReader is a good one, and should free up a bit of memmory. James ---------------------------------------------------------------------- Comment By: James Macgill (jmacgill) Date: 2001-12-03 07:10 Message: Logged In: YES user_id=9731 Sorry, I made the changes to GeoPoint localy, and completly failed to commit them into the main repository. So it's little wonder you saw no difference. Could you try again please? btw, the sugestion to nullify your shapefileReader is a good one, and should free up a bit of memmory. James ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-12-03 05:57 Message: Logged In: NO Did you try nullifying the shapefileReader object after calling sf.getLayer() ? You shouldn't need the reader anymore at that point, if I recall correctly ---------------------------------------------------------------------- Comment By: Joachim Bröckl (saltag) Date: 2001-12-03 05:44 Message: Logged In: YES user_id=362103 I downloaded the latest nightly build today and tested it with my huge shapefile. Unfortunately I could not see any significant changes in memory consumption; the java-process now displays 45828 KBytes instead of 46844 KBytes of consumed memory in the task manager (I probably should look for that JProbe instead?!). Nevertheless thanks for your efforts. Joachim ---------------------------------------------------------------------- Comment By: James Macgill (jmacgill) Date: 2001-11-30 05:32 Message: Logged In: YES user_id=9731 I have just been testing JProbe, a profiling tool which allows me to analyse where most of the memmory is going. I've knocked out about 16% of typical memory usage by changing the devenition of GeoPoints. This has helped quite a bit, but I can still see a lot of other areas that might help reduce the load further. Could you grab the latest nightly build from http://www.geotools.org/dload.php and let me know if you notice any significant difference? James ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=204091&aid=476009&group_id=4091 |