Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

accelerate multiple identical applets?

Thread view: 
Clemens H. - 23 Mar 2008 20:48 GMT
Hi!
I read that if a webpage contains several java applets, for each of
the applets an individual JVM is launched.

I have eight (or even more to come) identical applets in one page that
display some status information. This information is updated with the
help of tcp/ip sockets.

Especially the startup process is very slow. Is there any chance to
modify the java applets or the webpage to accelerate the startup, for
example by forcing all applets to run in one single JVM?

Clemens
Roedy Green - 24 Mar 2008 13:15 GMT
On Sun, 23 Mar 2008 12:48:28 -0700 (PDT), "Clemens H."
<h_clemens@yahoo.com> wrote, quoted or indirectly quoted someone who
said :

>I read that if a webpage contains several java applets, for each of
>the applets an individual JVM is launched.

That is definitely not correct. my CurrCon Applet could not work at
all if that were so.

Not only to they share a JVM, they share a single thread.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 24 Mar 2008 13:19 GMT
On Sun, 23 Mar 2008 12:48:28 -0700 (PDT), "Clemens H."
<h_clemens@yahoo.com> wrote, quoted or indirectly quoted someone who
said :

>Especially the startup process is very slow.

That delay is the singleton copy of the JVM loading. Sun has not been
very interested in fast JVM load.  They are in the server business
where nobody cares if it takes 10 minutes for the system to come up,
if it stays up for months at a time.

I have posted a number of ideas on my projects page for fast program
load. see http://mindprod.com/project/projects.html however, they all
require modifying the JVM.

If you want fast program load, the best possible is Beta Jet, but that
is not compatible with Applets.
see http://mindprod.com/jgloss/jet.html
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Arne Vajhøj - 25 Mar 2008 01:53 GMT
> On Sun, 23 Mar 2008 12:48:28 -0700 (PDT), "Clemens H."
> <h_clemens@yahoo.com> wrote, quoted or indirectly quoted someone who
[quoted text clipped - 5 lines]
> where nobody cares if it takes 10 minutes for the system to come up,
> if it stays up for months at a time.

IBM, Oracle, BEA, JBoss, Apache etc. are almost exclusively focused
on server side.

SUN do have some interest in client stuff. And new client stuff do get
added to each Java version.

They have also done a few things in the last versions to speedup
startup.

You can always argue that it is not enough. But I think that SUN
as one of the very few big companies in the Java world at least has
client on the list of priorities.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.