Results 1 to 6 of 6
  1. #1
    Mac java and terminal and ecpilse

    Member Since
    Dec 10, 2010
    Posts
    3
    Mac java and terminal and ecpilse
    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 ..

  2. #2
    Mac java and terminal and ecpilse
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  3. #3
    Mac java and terminal and ecpilse

    Member Since
    Dec 10, 2010
    Posts
    3
    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

  4. #4
    Mac java and terminal and ecpilse
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  5. #5
    Mac java and terminal and ecpilse

    Member Since
    Dec 10, 2010
    Posts
    3
    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

  6. #6
    Mac java and terminal and ecpilse
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Java for Mac OS X 10.6 Update 17 latest java version?
    By Applet in forum OS X - Operating System
    Replies: 2
    Last Post: 09-12-2014, 02:07 AM
  2. Taking screenshot with java applet using java robot class not working
    By sagngh8 in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 07-06-2011, 08:53 AM
  3. Java Problem! Java games freezing!!
    By L33t Walrus in forum Apple Desktops
    Replies: 1
    Last Post: 02-28-2010, 02:21 PM
  4. Replies: 15
    Last Post: 01-08-2010, 05:06 AM
  5. Java From Terminal
    By jdgti in forum OS X - Development and Darwin
    Replies: 10
    Last Post: 03-26-2005, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •