Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applets and memory usage



I have just converted a java app to an applet (java version 1.1) of size about 250Mb. This applet reads data from text files which can be over 1 Mb in size. (These are actually files of coordinates etc. from the human and other genome projects. The app is for serious academic use, whereas the applet is more illustrative for use in university teaching - and publicizing the app. on its web page.)

I set up a page with about 2 Mb of text files that worked ok (although taking ca. 10 sec to load) on IE5.1 on Mac OS9. When I tried it on Windows (98, XP) this failed with an out-of-memory error, although a different page with much smaller files was OK. I cut down the size of the files on the problem page (changed bacteria) and it now works on Windows.

My question is, is there any way to increase the memory allocation for an applet? I know how to do this (and with my app, which can load 40MB text files, have to do it) for a java app on the command line, but there isn't any command line for an applet. Looking on the Sun web site, all I can find of relevence is a statement regarding the (presumably Windows) plugin that "Dynamic maximum heap size is scaled down from 128 MB to 96MB to avoid unnecessary paging on the system." which sounds as if it might possibly explain the difference between OS9 and Windows. But then again, what do I know about these things...

Perhaps it would help if the data were accessed in a more sophisticated way?

David

PS I know that applets were meant to be small (and presumably the files they use too), so you could say I shouldn't be doing this. However, if it could be done...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.