473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Changing JVM heap size

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.

Jul 17 '05 #1
1 40518
In article <cc*********@news.sarnoff.com>,
"Oleg Konovalov" <ol*****@yahoo.com> wrote:
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...&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
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark | last post by:
I am using JVM version 1.4.1 (java.vm.version=1.4.1-1) to run my program on UNIX. I use java command line option "java" to invoke my program. How will I know what the default heap size settings...
3
by: nvjoglekar | last post by:
Hi All My program needs a lot of memory and after allocating some using NEW statement, it returns NULL for any new object created. I guess that is becuase of the heap size limitation of the...
1
by: nrhayyal | last post by:
hi all, i am working on C++ on AIX machine. i am running one of my module which is built using 10+ user built libraries. i am getting St9bad_alloc exception. i came to know that this exception...
4
by: ivan | last post by:
Hi, How can we calculate the stack and heap size requried by a C program. Is there any specific formula used? Please suggest. regards, Ivan
1
by: Exal | last post by:
Hi, could anyone help me or point me to a site where to find information about how to track the heap size and garbage collections during the execution of an application? Thanx
11
by: ganesh.kundapur | last post by:
Hi, Is there any way to get the total heap size allocated to a process in c on linux platform. Regards, Ganesh
5
by: sunny | last post by:
Hi All Is there any way to determine stack and heap size, during runtime. i.e can we predict stack overflow. etc
7
by: Raman | last post by:
Hi All, Could any one tell me, how can I determine/Change size of heap on per- process basis on Unix based systems. Thanks. Regards
2
by: Paul | last post by:
Dear all, I am writing an application which constructing a fairly big tree for some financial pricing application. How can I increase the heap size of the .NET runtime environment? I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.