increase memory of created jar-file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

increase memory of created jar-file

Heiko Gleitsmann
Hi folks,

i´m developing with eclipse and export the imageJ project as a jar file. if
i start imagej.jar the memory is limited to 64 mb (please correct if i´m
wrong). And now the question: is it possible to change respectively increase
the memory of the running jar file? I know that there exists the file
IJ_Prefs.txt, but there i can´t find something that has to do with memory.

Please help, thanks in advance

--
regards
heiko.
Reply | Threaded
Open this post in threaded view
|

Re: increase memory of created jar-file

dscho
Hi,

On Fri, 22 Sep 2006, Heiko Gleitsmann wrote:

> i´m developing with eclipse and export the imageJ project as a jar file.
> if i start imagej.jar the memory is limited to 64 mb (please correct if
> i´m wrong). And now the question: is it possible to change respectively
> increase the memory of the running jar file? I know that there exists
> the file IJ_Prefs.txt, but there i can´t find something that has to do
> with memory.

You have to call java appropriately:

        java -Xmx128m ij.jar

for 128MB. The problem with IJ_Prefs.txt is that it is read only when Java
is _already_ started (with 64MB).

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: increase memory of created jar-file

Heiko Gleitsmann
Hi Johannes,

thanks for the help, it works. But I think you have to call:

java -jar -Xmx128m ij.jar     ;-)


regards
heiko

2006/9/22, Johannes Schindelin <[hidden email]>:

>
> Hi,
>
> On Fri, 22 Sep 2006, Heiko Gleitsmann wrote:
>
> > i´m developing with eclipse and export the imageJ project as a jar file.
> > if i start imagej.jar the memory is limited to 64 mb (please correct if
> > i´m wrong). And now the question: is it possible to change respectively
> > increase the memory of the running jar file? I know that there exists
> > the file IJ_Prefs.txt, but there i can´t find something that has to do
> > with memory.
>
> You have to call java appropriately:
>
>         java -Xmx128m ij.jar
>
> for 128MB. The problem with IJ_Prefs.txt is that it is read only when Java
> is _already_ started (with 64MB).
>
> Hth,
> Dscho
>
>


--