Hi list,<br>I'm trying to build a very big In Memory Raster Dataset (~1 GB) using SWIG's Java Bindings on my Notebook (with Windows Vista, with 2GB ram)<br><br>When calling the java method memoryDriver.create(...) the following error appears "ERROR 2: Unable to create band arrays ... out of memory" which is thrown when the underlying calloc method can't successfully allocate memory.
<br>I have performed some tests and tunings with the following conclusions:<br>- reducing the JVM Heap Size (using -Xmx command) allows to allocate a bigger native memory portion (using -Xmx1024M allows me to allocate only <550 MB memory while using -Xmx16M allows me to allocate up to ~820MB) [Java Heap space and "Native" Heap space are managed separately]
<br>- increasing the virtual memory, the result is the same (out of memory).<br>- killing all unuseful processes -> freeing more physical memory (~1.2 GB), the result is the same (out of memory))<br>Any setting allows me to allocate a max of ~840000 KBytes.
<br><br>Anyway, why having almost 1.2 GB free physical memory and a 3GB virtual memory setting (with ~2GB free) allows me only to create always ~840000 KBytes?<br>Does anyone know how memory is managed, how the calloc method operates and whether an OS limitation exist?
<br>Thank you very much.<br><br>Best Regards,<br>Daniele R.<br><br>PS: anyway, I will try avoid In Memory Raster use in case of very Big datasets.<br><br>-- <br>-------------------------------------------------------<br>
Eng. Daniele Romagnoli <br>Software Engineer<br><br>GeoSolutions S.A.S.<br>Via Carignoni 51<br>55041 Camaiore (LU)<br>Italy<br><br>phone: +39 0584983027
<br>fax: +39 0584983027<br>mob: +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><br>-------------------------------------------------------<br>