On Sat, 2005-10-22 at 12:25 +0200, Bernhard Kastner wrote: > you're right. I just recognised, that I cannot to proper zoom and pan, > but I don't have the problem with the out of memory exception with it. > It occurs when using StyledMapPane and adding the mapContext to the > mapPane (mapPane.setMapContext(map)) and I have no idea how to avoid > that. It occurs on my slow (1.6Ghz, 512MB RAM) laptop and on my PC (3,6 > Ghz, 1024MB RAM). > Is there any possibility to work around that problem? > How much memory do you allocate to the JVM? (You can set it by supplying the -Xmx command line argument like so: java -Xmx256M com.foo.MyClass) I believe the default is 64MB, which I've often found insufficient for StyledMapPane. The best value depends on your data, but I run with 128 or 256 just fine. (Note that the maximum possible -Xmx value depends on your hardware architecture, for Intel x86 it's about 1600M.)
-- Trevor Stone ~ <[EMAIL PROTECTED]> Software Developer ~ Tyler Technologies, Eagle Division Denver Office ~ 1-866-554-4434 / 303-271-9100 ext 208 Curse of the moment: Thou ruttish sheep-biting flap-dragon! They took too much BSD back in the '80's. -- http://www.forum2000.org/ ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
