Login  Register

Re: java.lang.OutOfMemoryError: Java heap space

Posted by Michael Schmid on Jun 03, 2009; 1:14pm
URL: http://imagej.273.s1.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp3692299p3692302.html

Hi Donny,

maybe you don't close some of the images? You won't notice in a Batch  
mode macro unless you finish it with "exit and display".

Michael
________________________________________________________________

On 3 Jun 2009, at 15:09, Donny George wrote:

> hey boris
>
> thats true but the main intension of writing this macro was to  
> process such
> huge sets of pics, i tried reassigning the memory for imagej as  
> well to 2
> gb. but still kind of same
>
> well anyway now am breaking them into smaller parts :)
>
> don
>
>
> On Wed, Jun 3, 2009 at 2:45 PM, Boris Epstein  
> <[hidden email]
>> wrote:
>
>> Donny George wrote:
>>> Hello
>>>
>>> i got this error java.lang.OutOfMemoryError: Java heap space when  
>>> i ran a
>>> macro to process a folder with hundreds of images. then i tried  
>>> to set
>> the
>>> memory for java from the java control panel. i tried with the max of
>> 3gb(3gb
>>> is the max which my system has) but i still get the same error
>>>
>>> can someone tell me what would be a solution for this problem.  
>>> how can
>> run
>>> it without this exception?
>>>
>>> thnks in advance
>>>
>>>
>>>
>>>
>>
>> Donny,
>>
>> It is entirely possible that you tried to bite more than your  
>> system can
>> chew. Have you tried doing the same thing on a smaller file set?
>> --
>> *Boris Epstein
>> National Resource For Imaging Mass Spectrometry
>> <http://www.nrims.hms.harvard.edu/>
>> Cambridge, MA
>> Mobile: (617) 816-9654*

>>
> Donny George