Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: ScreenMenuBar Dead (!!!) Slow



I have done some more tests:

1) I have run the app on MAC OS 10.1. - No problem there!

2) I have used the CPU Monitor which tells me quite clearly that, while the
GUI of my app is not hidden, almost 100% of the CPU capacity is taken
(although the app is not really doing anything). When I hide it, everything
is back to normal again (i.e. about 10% of the CPU capacity taken). When I
cover the window of my app partly with that of any other app (e.g. the
terminal) - which is not the same as hiding it? - things get better, but not
normal. Running the CPU monitor under MAC OS 10.1. (on a machine with no
more than 128 MB RAM, btw) tells me that my app only takes about 15% of the
CPU capacity, even when its GUI covers the complete screen and I click
around in menus (shameless me!).

3) I have used "ps aux" from the terminal. Among other things, it tells me:

PID: 165
%CPU: 91.9
...
COMMAND: /System/Library/CoreServices/WindowServer -daemon

An amateurish summary of these tests would be: there is something different
in 10.2. from 10.1. It couldn't be the JVM because, as far as I know, that
hasn't changed. However, it must be something to do with JAVA, because I
don't get this behaviour for non-Java applications.

I have also tried profiling my app with the -Xprof option. It gives me heaps
of output - what exactly would I be looking for?



> That's irrelevant. There are zillions of 100% Pure Java ways to bring any
> machine to a crawl.

--> I don't agree that it's irrelevant. I know it is naive to believe in
"Write once, run anywhere", but it is working quite fine for me - except
for the MAC.

> But if you are simply going to assert
> that your app is blameless and non-contributory, you're never
> going to find a solution, much less a cause.

--> I wasn't intending to do anything like it. The problem is simply that I
am not an OS expert for the Macintosh (or for any other OS), but a JAVA
programmer, and I simply can't find a solution or a cause for my problem in
JAVA terms.

Thanks for your help and kind regards,

Thomas

---------------------------------------
Thomas Schmidt
SFB 538 'Mehrsprachigkeit' Teilprojekt Z
Tel: ++ 49 (040) 42838-6425
Fax: ++ 49 (040) 42838-6116
http://www.rrz.uni-hamburg.de/exmaralda
http://www.rrz.uni-hamburg.de/SFB538/
---------------------------------------
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: ScreenMenuBar Dead (!!!) Slow (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.