Solved

Initial JVM load time on windows platform

Posted on 2006-11-30
6
265 Views
Last Modified: 2012-05-05
Hi,

if I run a java application or an applet into a web browser for the firt time (after the PC is booted) there are many seconds to wait until the JVM library code is being cached by windows. I have noticed that this time is very variable, depending on the computer hardware and software. How can this time be reduced? Is there a way to cache JVM library when windows start without starting a java application?
0
Comment
Question by:test75
  • 2
6 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 63 total points
ID: 18043760
Which version are you using? They say Java 1.6 has reduced the plugin's startup time but I haven't tried it yet.

One thing you can do is to use jar indexing (http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/jar_indexing.html) if you are using multiple jars in your applet. The second thing you can do is a small trick. Have a "invisible" applet in the first page that will force the jvm to start when you load the page. Then subsequent calsl to the jvm will be much faster.
0
 
LVL 1

Author Comment

by:test75
ID: 18043812
> Which version are you using?
I'm using version 1.5.0 (build 1.5.0_09-b03)
0
 
LVL 35

Expert Comment

by:girionis
ID: 18043835
Not sure what else you could do except from what I suggested in my first message. Mayeb soem other epxerts might be able to help you more.
0
 
LVL 23

Assisted Solution

by:Ajay-Singh
Ajay-Singh earned 62 total points
ID: 18056323
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mapAB Challlenge 35 123
topping3 challenge 14 68
JDeveloper 12c for 32 bit 4 67
more than one jdk and one jre 1 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now