Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After each boot, slow Java startup, then no problems



Joshua Stewart wrote:

>I'm using a MacBook Pro (Intel Core Duo) for my Java development work.
>I've noticed that each time I boot the laptop and then want to run a
>Java app, Java takes a long time to startup.  For example, if I boot the
>laptop, then open a command line and type 'java -version', it takes over
>30 seconds.  On subsequent runs, everything is fast.  So, the second
>time I type 'java -version', it takes less than 1 second.  Similar
>behavior is exhibited when starting up Eclipse, applets, etc for the
>first time after a reboot.  What's going on?

How much RAM does the machine have?

Which java version is reported?

What does Activity Monitor show for disk activity, CPU, and memory usage?
To see all 3 at once:
  1) View menu > Dock Icon > Show Disk Activity
  2) Window menu > CPU History
  3) In the main Activity Monitor window, click the System Memory tab.

In the System Memory display, pay particular attention to the Page ins/outs
numbers.

Is it really taking 30 seconds ('time java -version'), or does it just feel
like that long?  I ask because a friend once complained that the first
launch of a bundled Java Swing app I gave him "took 45 seconds."  When we
measured it, it was 12-15 secs.  Subsequent launches were faster, a few
seconds max.

Even on a Core Solo Mac Mini with an unspectacular hard drive and paltry
512MB of RAM, the first launch of 'java' doesn't take 30 secs.  More like
2-3.  This is for 1.4 or 1.5 Java versions.  1.3 takes much longer because
it's being emulated under Rosetta.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.