473,804 Members | 3,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 40541
In article <cc*********@ne ws.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
7978
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 of the JVM (default minimum heap size and maximum heap size). Is there a way to display the heap size settings and other properties of the JVM. Thanks in advance, -Mark
3
495
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 Visual Studio which stands at 1MB. I need to increase it. One option I found was to set /HEAP:memory in the Link options of project setting. Bur it didn't seem to work. I am getting same problem again. Dows anybody has a opinion about this.
1
8234
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 is thrown because the heap is exhausted. when i checked while running the program , i found that the program uses 128 MB of heap after which it waits , then it throws this exception.
4
16645
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
2587
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
17689
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
37164
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
5645
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
1191
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 tried doing it in Java before which I can set use the /mx flag in the java runtime. How to do equivalent thing in .NET or C#? Thanks a lot.
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.