Re: OutOfMemory when loading 2MB OMScalingRaster

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Thu Oct 10 2002 - 19:26:49 EDT

Hello,

I had that problem when I first developed the code that did the clipping
and scaling from the source image.

I am currently displaying two gif files as the base images for my map.
They are 5.31MB and 5.56MB each.

Your 2.01MB jpeg will expand to use more memory when it loads. The amount
it needs will depend on the amount of compression used when making the
file.

I got around this problem by using the -Xmx option on the Java command
line. I currently use -Xmx256M which sets the maximum heap size to 256MB.

Hope this helps.

with regards,

Adrian

_____________________________________________

Adrian Lumsden
Product Specialist
Scientific Software and Systems Limited

Tel: +64 4 917-6670 (reception)
        +64 4 917-6680 (direct)
Fax: +64 4 917-6671
E-mail: Adrian.Lumsden@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

--
[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 Thu Oct 10 19:28:58 2002

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