• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I set JVM memory size when running applets?

 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have downloaded an applet that renders images and I have

a problem with Java memory. I remember that default maximum

size that applet can use is 70MB, and the problem is 70MB is

not enough when rendering big images. It is OK when I add

"-Xmx -Xms" parameters in the Java Control but I cannot tell

everyone who wants to see my images to go control panel, add

parameters etc..

So my question is...

Is it possible add "-Xmx -Xms" parameters inside the applet file

so that these parameters run automatically when executing applet?

Thanks in advance for your reply!

Hyung
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the applet and its tag have no control over those settings. That could be used for denial-of-service attacks: imagine the page setting the JVM to take as much memory as the system has, and then using it all up.
 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any other way to solve this memory issue?
 
Ashok Mor
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sang-Wook Kim ,

You can do it while splitting an image into number of spices and take each spices in diff diff Canvas, and finally put them over an Applet.


Ashok Mor.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic