cancel
Showing results for 
Search instead for 
Did you mean: 

.soffice.bin/soffice.bin is using 100% CPU

billydekid
Star Contributor
Star Contributor
Hi,

I'm sure it's an old topic, but it's still happened to me at Alfresco 5.0.a - Ubuntu 14.04.
At the same time I could fix the problem and know exactly what process made the CPU spike near 100%.

There are 2 solutions to solve this problem:
1. As explained on [1] by add stop-start script on rc.local file. This is only affects when the system (OS) restarted or start up.
2. By restarting libreoffice service while Alfresco runs. We run command: ./alfresco.sh restart libreoffice

By performing 2 commands above the CPU will not high consumes.

The problem was when we restart Alfresco completely, (./alfresco.sh restart) the CPU will spike near 100%.
I monitoring what is actually script or process made this CPU spike.

I found when CPU is normal, there is only 1 (one) soffice process, as shown below:

root      2739     1  0 11:00 pts/0    00:00:00 /kmapp/alfresco/libreoffice/program/.soffice.bin –nofirststartwizard –nologo –headless –accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager


Then, the CPU will raise higher when there is a second soffice after the first process (above):

root      6117  5977 54 12:58 pts/0    00:00:04 /kmapp/alfresco/libreoffice/program/.soffice.bin –accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///kmapp/alfresco/alf_data/oouser –headless –nocrashreport –nofirststartwizard –nologo –norestore



Does anybody know who or what script triggered that second soffice execution?
Or maybe someone has information about this issue (bugs?).

Thank you,
[bayu]


[1] http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrad...
2 REPLIES 2

mnbrecher
Champ on-the-rise
Champ on-the-rise
Hey, I'm not sure if you still have this issue but I found a workaround, and posted it to in this thread:
https://forums.alfresco.com/comment/146438#comment-146438

mnbrecher
Champ on-the-rise
Champ on-the-rise
I never got a response as to why this happens, but it occurs in other Libreoffice instances, outside of Alfresco.

A solution for you would be to have a AlfrescoRestart script that runs the two consecutively. Something like:

./alfresco.sh restart
./alfresco.sh restart libreoffice


I have a fully scripted, daily, tar backup, and I call both every-time.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.