Mac java and terminal and ecpilse

Joined
Dec 10, 2010
Messages
3
Reaction score
0
Points
1
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..

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..
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 ..
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
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?
 
OP
H
Joined
Dec 10, 2010
Messages
3
Reaction score
0
Points
1
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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
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
 
OP
H
Joined
Dec 10, 2010
Messages
3
Reaction score
0
Points
1
time sudo dmesg
real 0m11.198s
user 0m0.011s
sys 0m0.038s

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

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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top