New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Mac java and terminal and ecpilse


Post Reply New Thread Subscribe

 
Thread Tools
heist

 
Member Since: Dec 10, 2010
Posts: 3
heist is on a distinguished road

heist is offline
everything java is just low on my mac...it take 45 second to run code with one line... take abt 2min to compile...is there anyway to fix this?

i tired it all short of reinstalling the os..repair premissions...sudo periodic daily weekly monthly.....

mac version 10.6.5 2gh intel core 2 dou with 4 g of ram..

Quote:
time java Test
Hello world

real 0m45.535s
user 0m0.322s
sys 0m0.216s
esicples is the same way

even java - version take 45 to do something..
Quote:
time java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

real 0m45.221s
user 0m0.095s
sys 0m0.175s
is there anyway to fix this without reinstalling the whole OS...im new to mac ..
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
There is something wrong with your java install. My results:
Code:
~ :: time java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

real	0m0.963s
user	0m0.129s
sys	0m0.170s
Have you tried reinstalling Java or reinstalling the combo update? Is Java the only slow app?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
heist

 
Member Since: Dec 10, 2010
Posts: 3
heist is on a distinguished road

heist is offline
I was wondering what are the exact step for reinstalling java...do u need the OS install cd ? and everything else seem to run smooth. Is there another app i can check in terminal so i can get the time.

also all updates are installed...except for safari and itunes
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
You can try any other command that won't be machine specific (timing to see how long it takes find to find something won't work as a comparison for example given that I/we have different HD sizes and a different number of files). You're more than welcome to test something out and I'll compare it to my results (I have a fairly similarly spec'd machine).

Java update: Java for Mac OS X 10.6 Update 3

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
heist

 
Member Since: Dec 10, 2010
Posts: 3
heist is on a distinguished road

heist is offline
time sudo dmesg
real 0m11.198s
user 0m0.011s
sys 0m0.038s

ifconfig
real 0m0.227s
user 0m0.001s
sys 0m0.005s

Quote:
time gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~105/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)

real 0m0.007s
user 0m0.001s
sys 0m0.004s
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,775
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Your dmesg time is oddly long. Why it is taking 11 secs is beyond me. This is what I got:
Code:
real	0m0.019s
user	0m0.005s
sys	0m0.011s
Even the ifconfig results, which aren't terrible, are considerably slow. Here's mine:
Code:
real	0m0.012s
user	0m0.001s
sys	0m0.003s
Right now, I can't honestly say why it's taking so long. I'm going to have to get back to you on this one.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« How to switch this button front "Add Bookmark" back to "Backwards arrow"..? | OS X Leopard (no snow) available for real? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 11:26 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?