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 / January 2007

Tip: Looking for answers? Try searching our database.

Speed up application startup with 1.6

Thread view: 
Dimitry - 02 Jan 2007 07:33 GMT
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
Andrew Thompson - 02 Jan 2007 09:44 GMT
> 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.
Chris Uppal - 02 Jan 2007 15:22 GMT
> 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


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.