Solved

Initial JVM load time on windows platform

Posted on 2006-11-30
6
255 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
count8 challlenge 13 86
array11 challenge 16 52
What is JNDI datasource in spring 1 38
backtracking recursion  code 19 40
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

759 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

17 Experts available now in Live!

Get 1:1 Help Now