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



Here's the results of 'time java -version' on my MacBook Pro. I've also included the info about my system.

lola:~ jstewart$ time java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

real    0m59.110s
user    0m0.101s
sys     0m0.152s



 Machine Name:    MacBook Pro 15"
 Machine Model:    MacBookPro1,1
 CPU Type:    Intel Core Duo
 Number Of Cores:    2
 CPU Speed:    1.83 GHz
 L2 Cache (shared):    2 MB
 Memory:    2 GB
 Bus Speed:    667 MHz
 Boot ROM Version:    MBP11.0044.B02
 SMC Version:    1.2f10
 Sudden Motion Sensor:
 State:    Enabled

Any help is greatly appreciated.


Greg Guerin wrote:
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
_______________________________________________
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
References: 
 >Re: After each boot, slow Java startup, then no problems (From: Greg Guerin <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.