Speed up application startup with 1.6

D

Dimitry

I am looking to speed up application start up. I have made a couple
windows that entertain user while app starting. But it still relatively
slow.
Now I am studying JVM 1.6.0 options that I can use to speed up start
up.
One of the option I am thinking about is XX:perfDataSamplingInterval to
make value big enough.
Can anybody suggest what else can be done? This is a client GUI
application.

Thank you,

Dimitry
 
A

Andrew Thompson

Dimitry said:
I am looking to speed up application start up. I have made a couple
windows that entertain user while app starting. But it still relatively
slow.

I suggest looking into the 'jar splash (image)' ability
available in 1.6+. It is claimed to use native code to
get it on-screen (hence no JVM load - no class load,
for it to show).
Now I am studying JVM 1.6.0 options that I can use to speed up start
up.

You might be better off investigating options closer
to home, there are any number of techniques that
can be used to speed an application's appearance
onto screen, or provide the user with enough feedback
for them to avoid going 'crazy in frustration'.

Andrew T.
 
C

Chris Uppal

Dimitry said:
I am looking to speed up application start up. I have made a couple
windows that entertain user while app starting. But it still relatively
slow.
Now I am studying JVM 1.6.0 options that I can use to speed up start
up.

It might be worth a quick experiment with the -Xint parameter to force the app
to run under the interpreter. It depends on what the JVM is doing during the
delay, but if it is mostly analysing and JITing bytecode, rather than actually
/executing/ that bytecode, then the interpreter should be able to get going
faster.

Of course that assumes that your app doesn't have to do lots of heavy
performance-critical stuff once it is up and running. But that would be a
fairly unusual situation.

-- chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top