Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet reload issue

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
We have a web page that uses several applets, one that is quite large and takes a lot of time to load. When switching to another page, then switching back, the applets all reload. Does anyone have any suggestions as to somehow having these applets stay in the JVM memory or elsewhere, so that the page reload time is shortened?
 
You can turn caching of applets on using the Java Plug-In Control Panel.

On a Windoze box, this can be launched from the Control Panel, and the caching it on a tab called 'Cache' (funnily enough [smile]).

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Thanks Tim, we do inform our users to turn on caching, and since this is enabled by default, it's not an issue. The page still takes a long time to reload. Could be code that is trying to download each time, but it doesn't look like it. Large project, seveeral programmers, so it could be...
 
I'd check with an sniffer what it's really taking so long.

Maybe it's not the download time but the memory allocating, initialization of the applet and execution itself.

AFAIK, every time you refresh the page, the applet is initialized again, there's no "JVM cache".

Cheers,

Dian
 
Dian said:
AFAIK .... there's no 'JVM Cache'

The Java Plug-In provides caching of applets.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Ahh ... yes I see what you're saying now Dian. I would say you're correct, only the Applet code is cached, not the state.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Thanks for the feedback. I think the issue is probably the init time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top