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




On 29 Sep 2006, at 03:02, Michael Hall wrote:


On Sep 28, 2006, at 8:50 PM, Joshua Stewart wrote:

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

You might try profiling...

time java -agentlib:hprof=cpu=times -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)
Dumping CPU usage by timing methods ... done.

Also try profiling using Shark. That will do both Java and machine instruction profiling so you can see if the time is being spent in Java or doing something complicated in native code.


Jerry

_______________________________________________
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>)
 >Re: After each boot, slow Java startup, then no problems (From: Joshua Stewart <email@hidden>)
 >Re: After each boot, slow Java startup, then no problems (From: Michael Hall <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.