Changing JVM heap size

O

Oleg Konovalov

Hi,

I am running applets in Java Plug-in 1.4.2 under IE6
and often receive OutOfMemory exceptions
(dealing with large file - video clips, etc.)
although according to option M, almost 50% (out of 64MB) of memory is
available.

If I start playing with Java Runtime parameters, like setting it to
mx128m, it actualy decreases the heap size:
Memory: 8,904K Free: 2,630K (29%) ... completed.

Is there a way to increase it to 128 or 256 MB ?

Have 2GB of RAM.

Thank you in advance,
Oleg.
 
T

Tor Iver Wilhelmsen

Oleg Konovalov said:
If I start playing with Java Runtime parameters, like setting it to
mx128m, it actualy decreases the heap size:
Memory: 8,904K Free: 2,630K (29%) ... completed.

The mx parameter value just sets the maximum heap size. If you want
the heap to be 128m all the time, you need to set the minimum heap as
well, e.g. -Xms128m

Just a note, two of the newsgroups you crossposted to no longer
officially exist.
 
D

Dave

Oleg Konovalov said:
Hi,

I am running applets in Java Plug-in 1.4.2 under IE6
and often receive OutOfMemory exceptions
(dealing with large file - video clips, etc.)
although according to option M, almost 50% (out of 64MB) of memory is
available.

If I start playing with Java Runtime parameters, like setting it to
mx128m, it actualy decreases the heap size:
Memory: 8,904K Free: 2,630K (29%) ... completed.

Is there a way to increase it to 128 or 256 MB ?

Have 2GB of RAM.

Thank you in advance,
Oleg.

Hey Oleg!

I think you have been looking in the wrong place...

In Windows, the applet heap size is determined by the Java Plug-in. So
you have to adjust it in the Java Plug-in Control Panel.

"On Windows: From the Windows Control Panel, double-click the Java
coffee-cup icon labeled Java Plug-in to launch the Java Plug-in Control
Panel."


shankar.unni says...

"You *can* set (the heap size) for the entire VM that's loaded in the
(web) browser, by using the 'Java Plug-In Control Panel'. Under the
'Advanced' tab, there's a box for 'Java runtime parameters'."

http://forum.java.sun.com/thread.jsp?thread=523105&forum=37&message=25046
09


"To increase the heap size to 64 megabytes, run the Java Plug-in Control
Panel application and set the "Java Run Time Parameters" to " -Xmx64m"

http://www.sportsci.com/pzt/java3d/

HTH

--Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top