aspose file tools*
The moose likes Applets and the fly likes Increase Applet Memory - IE issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Increase Applet Memory - IE issue" Watch "Increase Applet Memory - IE issue" New topic
Author

Increase Applet Memory - IE issue

Mohammad Farhat
Ranch Hand

Joined: Nov 17, 2005
Posts: 51
Hey guys,
long time not posted here
i have an applet which handles displaying images, now these images are sometimes large in size. i have been increasing the maximum heap size for the applet (setting -Xmx260m) to handle up to this amount of memory, this works fine under firefox. In firefox case, i can go up to 650MB without any problems. Under IE, the problem i am facing is when i try to increase the size beyond 300MB (for my 1GB machine), and under other machines, even above 150MB would cause problems (the problem being jre not being able to load). I understand this is caused by IE-java issue not allowing large amounts of contiguous memory to be assigned to jvm.
Any suggestions to solve this issue? opening multiple jvms for example? i do need to support large amounts of memory (why should i have a limitation in IE case which is much smaller than firefox) ..
Thanks a lot guys
Best,
Mohammad
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
Using multiple JVMs is not possible (and would probably make the problem worse, not better). I think the JVM options like min/max heap size can be set in the Java Plugin control panel (assuming you're using the Sun JVM, and not the obsolete Microsoft JVM).


Ping & DNS - my free Android networking tools app
Mohammad Farhat
Ranch Hand

Joined: Nov 17, 2005
Posts: 51
Ulf,
thanks for your reply
i am definitely using java virtual machine, not microsoft's virtual machine.
the only thing that occurred to me to having multiple virtual machines, is that each one of them would be able to take up to a certain limit of memory, and i can therefore spread the load across them.
i am trying to improve the memory performance of my applet, but it is minimal so far, and i really need to get over this barrier of IE-JVM interaction (which is not existing under firefox-JVM)
it would be wondeful if someone comes up with some solution for this
waiting your suggestions guys
Best,
Mohammad
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
I can't make out from your post whether you have actually tried changing the heap size?
Mohammad Farhat
Ranch Hand

Joined: Nov 17, 2005
Posts: 51
Yeah
definitely...my main problem is with this parameter (-Xmx), when setting to values larger than 300m on my pc (1GB RAM), IE would not start, and i get a jre runtime error. This does not occur with firefox
in other cases (pcs with 512 MB RAM), this problem occurs with -Xmx260m, and even with less values sometimes
Thanks,
Mohammad
Mohammad Farhat
Ranch Hand

Joined: Nov 17, 2005
Posts: 51
Yeah
definitely...my main problem is with this parameter (-Xmx), when setting to values larger than 300m on my pc (1GB RAM), IE would not start, and i get a jre runtime error. This does not occur with firefox unless i set really high values (higher than 650m)
in other cases (pcs with 512 MB RAM), this problem occurs with -Xmx260m, and even with less values sometimes
Thanks,
Mohammad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Increase Applet Memory - IE issue