Page 1 of 1

Heavy CPU usage using Author Component Applet on Mac

Posted: Tue Mar 03, 2015 1:08 am
by david.badger
We've noticed extremely high CPU usage on Mac machines running the oXygen applet v. 16.1.

We are able to reproduce the issue on two Macs.

Machine #1:
MacBookAir5,2
OS X Yosemite 10.10.2
1.8 Ghz Intel Core i5
Java JRE 1.8.0_31
Chrome 40.0.2214.115
Safari 8.0.3

Machine #2:
MacbookAir5,1
OS X Yosemite 10.10.2
2 Ghz Intel Core i7
Java 8 (Update 31) 1.8.0_31
Chrome 40.0.2214.115
Safari 8.0.3

The issue is reproducible when using both Safari & Chrome. CPU seems to spike when I am using the applet—focusing on fields, typing text, etc. CPU usage is reported as high as 350%.

Re: Heavy CPU usage using Author Component Applet on Mac

Posted: Tue Mar 03, 2015 10:25 am
by Radu
Hi David,

We do not have MacBook Air so I tested on a MacBook Pro using the same configuration you have:

Code: Select all

OS X Yosemite
Java JRE 1.8.0_31
Chrome 40.0
When typing fast and performing different operations the applet took about 30% of the CPU. But MacBook Air has worse CPU performance so the problem might still be there.

Could you try to reproduce the issue with one of the sample applets we have on our web site?

http://www.oxygenxml.com/demo/AuthorDem ... -dita.html

We need to establish if the performance problem is caused by the applet base code or by one of your Java customizations (if you made any customizations to the applet).

Regards,
Radu

Re: Heavy CPU usage using Author Component Applet on Mac

Posted: Wed Mar 11, 2015 7:29 pm
by david.badger
Hi Radu,

They are able to replicate the same high CPU load on the default applet you sent. Is there any other information we can give you?

Thanks,

Dave

Re: Heavy CPU usage using Author Component Applet on Mac

Posted: Fri Mar 13, 2015 11:31 am
by Radu
Hi Dave,

We do not yet have an explanation for this. We profiled the applet on a MacBook pro and found no serious performance problems with it, the CPU never jumped over 30% when actively editing.
We will try to find a MacBook Air and test on it, get back if we find anything.
Could you or the end users try something? Are they editing with the spell checker turned on? Could they turn it off?
I'm interested if the automatic spell checking leads to this performance decay.
The standard test applet on our website has this option to toggle the auto spell checker on the contextual menu.

Regards,
Radu

Re: Heavy CPU usage using Author Component Applet on Mac

Posted: Tue Mar 17, 2015 5:10 pm
by Radu
Hi Dave,

I tested the sample applet on our web site:

http://www.oxygenxml.com/demo/AuthorDem ... -dita.html

with a MacBook Air (1.8 GHZ, i15) with the latest Java (probably 1.8 update 40) and latest Chrome.

I used the Activity Monitor to monitor the applet process, I tried fast text editing and using toolbar actions but could not make it jump over 50% CPU.

So I'm sorry but I cannot yet reproduce this issue. Can you reproduce this on your side? Does this affect all users who have Mac Air? Or only some of them?

Regards,
Radu

Re: Heavy CPU usage using Author Component Applet on Mac

Posted: Fri Apr 17, 2015 11:03 pm
by david.badger
Hi RAdu,

Thanks for your prompt response. I've followed up with the client and they seem to be having problems with Java 7 in particular, although it doesn't seem like the CPU utilization issue is still a problem. Once they get back with me, I'll start a new thread. If they're able to consistently reproduce the CPU issue, I'll post here.

Thanks,

Dave