Re: [OpenMap Users] Too many OMScalingRaster classes in an OMGraphicList cause out of memory error

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Mon Oct 13 2003 - 18:16:18 EDT

Have you tried increasing the amount of virtual memory available to the
JVM? There's a command line option:-

        java -Xmx256M

With 2GiB available you can probably push it beyond the 256MB above :-)

regards,

Adrian
_____________________________________________

Adrian Lumsden
Product Specialist
Scientific Software and Systems Limited

Tel: +64 4 917-6680 (direct)
        +64 4 917-6670 (reception)
Fax: +64 4 917-6671
E-mail: Adrian.Lumsden@spam_trap.sss.co.nz

Visit us on the Web at: http://www.sss.co.nz
_____________________________________________

This e-mail passed SSS's content security scan.
It is covered by the confidentiality clauses at
http://www.sss.co.nz/content_and_confidentiality

Martin Chapman <mchapman@sanz.com>
Sent by: owner-openmap-users@bbn.com
14/10/03 10:32

 
        To: openmap-users@bbn.com
        cc:
        Subject: [OpenMap Users] Too many OMScalingRaster classes in an OMGraphicList cause
out of memory error

I am using the OMScalingRaster class to display thumbnail satellite images
on the map. It works fine when I want to display a few small images, but
when I want to show many images at a time (50 - 100 depending on image
byte size) the system chokes after a certain threshold. I think it is
causing the system to run out of memory, but this doesn't seem logical
since 40 jpegs that are all about 20k each cause it to barf on a system
that has 2gig of memory. The code below shows how I am creating the
OMScalingRasters. Do you think it could be because I'm using the
MediaTracker object, which is out of date since JAI has been released?
 
this code is in a loop...
 
URL url = new URL ( thumbNailFilePath );
Image image = Toolkit.getDefaultToolkit ().getImage ( url );
MediaTracker tracker = new MediaTracker ( frame );
 
tracker.addImage ( image, 0 );
tracker.waitForAll ();
 
OMScalingRaster scalingRaster = new OMScalingRaster ( upperLeftLatitude,
upperLeftLongitude, lowerRightLatitude, lowerRightLongitude, image );
graphicList.insertOMGraphicAt ( scalingRaster, 0 );
 
Martin Chapman
Cell 303-885-1936
Office 303-660-3933 x226
mchapman@sanz.com
http://www.sanz.com
 
 

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Oct 13 18:17:13 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT