OutOfMemoryError in ImageJ applet

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

OutOfMemoryError in ImageJ applet

vmunukutla
Hi,

When I am trying to view the images of huge dimensions in ImageJA applet I am getting
java.lang.OutOfMemoryError: Java heap space error.

I tried giving  
in the applet tag but no use.

Please help me.
Reply | Threaded
Open this post in threaded view
|

Re: OutOfMemoryError in ImageJ applet

vmunukutla

vmunukutla wrote
Hi,

When I am trying to view the images of huge dimensions in ImageJA applet I am getting
java.lang.OutOfMemoryError: Java heap space error.

I tried giving  
in the applet tag but no use.

Please help me.
I tried giving PARAM name="java_arguments" value="-Xmx1024m"  
in the applet tag but no use.


PARAM name="java_arguments" value="-Xmx1024m"
Reply | Threaded
Open this post in threaded view
|

Re: OutOfMemoryError in ImageJ applet

dscho
In reply to this post by vmunukutla
Hi,

On Tue, 14 Jul 2009, vmunukutla wrote:

> When I am trying to view the images of huge dimensions in ImageJA applet
> I am getting java.lang.OutOfMemoryError: Java heap space error.

You cannot reserve more memory for a Java applet from the server side,
_except_ when the client runs Java 6 Update 10 or later _in the browser_.

The way to increase memory for those installations is described by

        https://jdk6.dev.java.net/plugin2/#JAVA_ARGUMENTS

This information was found in the first link Google showed me for "java
applet memory".

Probably a better way would be to run ImageJ via WebStart; there you can
specify much better what the requirements are.

Ciao,
Dscho