Andrea Aime ha scritto: > PDF and SVG are kind of unfortunate formats, as I have no > good way to predict memory usage beforehand,
Hum... forget about what I said of PDF, I found a way to make some checks on memory usage during PDF generation. They are not accurate, but better than nothing, especially since PDF, like SVG, tends to accumulate memory in small chunks, which is something that brings the VM on his knees when approaching the max heap limit (the VM is furiously GC-ing in order to be able and allocate the extra 10kb needed, it gets hard to even attach to it heap viewers such as visualvm). This leaves SVG out, which builds a DOM in memory. We could rewrite the output format to stream out, Chris has been dreaming about this for quite some time... but it's no small task... Alternatively, we could fine a way for the SVG DOM to overflow on disk instead of accumulating in memory. Something like this: http://au.geocities.com/caddydc/, too bad the thing seems quite dead and licensing is not clear. Well, if you don't need SVG output, the admin can set WMS to use the streaming SVG generator, it is not style capable, but it's streaming... Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel