Results 1 to 13 of 13
Thread: Heap memory
- 09-08-2009, 08:15 AM #1
Member
- Join Date
- Aug 2009
- Posts
- 9
- Rep Power
- 0
- 09-08-2009, 08:31 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Java Control Panel
See the part labeled "Java Applet Runtime Settings", and pay attention to the subpart labeled "Java Runtime Parameters" and then see java - the Java application launcher to determine what parameters to set
Java Deployment Guide
Edit: Which means, of course, that the developer has no control over it. The only thing you can do is to provide instructions to the user, but the client must change their settings, the Applet, itself, has no control over it.Last edited by masijade; 09-08-2009 at 08:33 AM.
- 09-08-2009, 03:49 PM #3
This won't help for an applet thats embedded in a web page, but if you happen to be using an applet (or any java app) locally, you can increase the heap size at launch time in the command line like this:
which will increase the minimum JVM memory to 128MB and the max to 256MB. If you are using an applet as a quick and dirty gui shell for a program, this will work just fine.Java Code:java -Xms128m -Xmx256m MyJavaClassFile
- 09-08-2009, 03:53 PM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 09-08-2009, 04:09 PM #5
Did you READ my post? You can run applets without ever touch a webpage.
Where does the OP say the applet is running embedded in a web page? At my last university there was a class taught that used applets for everything because it reduces the complexity of drawing images to the screen, yet none were executed from a web page-- all run locally. Java classes can extend Applet and still run as local java applications.do any one know how to increase the JVM memory space for applet?
please help me.I'm getting Heap memory exception.
- 09-08-2009, 04:12 PM #6
Edit -- sorry masijade , I think I mis-read your post, sorry for sounding snotty.
I was simply saying that you can set your mem sizes at launch time for specific applets as needed, rather than letting java eat tons of ram all the time. I leave my JVM at the default settings and only increases as needed, specific to each app.
- 09-08-2009, 04:18 PM #7
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
- 09-08-2009, 04:39 PM #8
Yes, gui related apps-- it was a concepts object oriented design class that was designed to show the relationships between objects -- usually shapes, etc.. That doesn't really matter.
But, by extending Applet, you can use it's methods for things -- often an application will use the Applet's sound loading/playback functionality for a quick and dirty sound effects, or in the days before ImageIO you could use Applet's canvas and image loading capability.
- 09-08-2009, 04:49 PM #9
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
[QUOTE=quad64bit;81543]...
But, by extending Applet, you can use it's methods for things -- often an application will use the Applet's sound loading/playback functionality for a quick and dirty sound effects, or in the days before ImageIO you could use Applet's canvas and image loading capability.[/QUOTE
Which sound loading/playback functionality? The one I think you are talking about has nothing to do with Applets and is just a static method which can be called from any type of application. But you could be talking about something else so I'll let you confirm that.
You also haven't specified how loading images in Applets is (or was) easier than in normal Swing applications.
- 09-08-2009, 04:56 PM #10
I don't know why you're grilling me man; We're getting way off topic here. I'm sorry I demonstrated how to increase memory at launch time, If its helpful, I could go back and delete my posts.
- 09-08-2009, 07:01 PM #11
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Grilling? You stated that applets "reduces the complexity of drawing images to the screen".
So I asked you to explain what you meant by that.
Why would you want to delete your post? Was it wrong?
- 09-09-2009, 11:40 PM #12
Member
- Join Date
- Aug 2009
- Posts
- 76
- Rep Power
- 0
I think he was saying he could delete the posts if it was confusing the OP. And yes, it does sound like you're grilling him.
OP: Just ignore everything but the first few posts.
- 09-10-2009, 08:45 AM #13
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
JVm Heap memory settings
By nagesh in forum Advanced JavaReplies: 2Last Post: 09-17-2009, 05:47 PM -
[SOLVED] JVM: Heap out of memory
By jwilley44 in forum EclipseReplies: 7Last Post: 02-01-2009, 04:13 PM -
how do I increase memory allocated to code cache (Non Heap Memory)
By manibhat in forum Advanced JavaReplies: 2Last Post: 08-21-2008, 07:33 PM -
JVM Heap memory settings
By nagesh in forum New To JavaReplies: 1Last Post: 08-11-2007, 10:17 PM -
Java Heap Out of Memory Error
By stonkers in forum New To JavaReplies: 3Last Post: 07-17-2007, 04:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks