soffice.bin using 100% of CPU [SOLVED]

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
mnbrecher
Active Member

soffice.bin using 100% of CPU [SOLVED]

My Libre office service is running at 100% constantly.

I found however, that if I stop, and restart the Libre office service, using the alfresco script: /alfresco-4.2.e/libreoffice/scripts/libreoffice_ctl.sh
The Libreoffice service resumes, using almost none of the CPU time.

But, if I then restart all alfresco services using: service alfresco start/restart, the soffice.bin process returns to 100%. Which would indicate that something is going wront with the way the alfresco.sh script is starting the Libre office service. This is bizarre, since the alfresco.sh script seems to point the exact same /alfresco-4.2.e/libreoffice/scripts/libreoffice_ctl.sh script to start soffice.bin anyway! Perhaps it has to do with the way/order that alfresco starts the service.

This was mentioned previously in this thread, but the answer there didn't help me. http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/soffi...

Notes:
1. I used the alfresco bundle installer.
2. Running Ubuntu 12.04 server.
3. In setup I set alfresco to run as a service.
4 Replies
eswbitto
Active Member

Re: soffice.bin using 100% of CPU [SOLVED]

When you start Alfresco does it stay at 100%? I use Centos and I know that when I restart or start the service it does take Alfresco a while to load, but once loaded its lightning fast. How much RAM have you thrown at your alfresco install?
mnbrecher
Active Member

Re: soffice.bin using 100% of CPU [SOLVED]

Yes. As I said. When I restart the machine, or simply restart Alfresco, it immediately goes to 100%, and stays pegged there permanently.
I have 4Gigs of RAM in the unit. The amount allocated to Alfresco is default.

I have a script now, that just restarts the LibreOffice service, two minutes after the machine reboots.
I run it using rc.local.
So far it seems like the problem is solved.

jpbuttet
Member II

Re: soffice.bin using 100% of CPU [SOLVED]

Hello mnbrecher,

I've been using Afresco C 4-2.d and have been experiencing the same issue (soffice using 100% cpu resource).

Looks like your work around works.

Thank you for sharing this trick.

Best regards.



mnbrecher
Active Member

Re: soffice.bin using 100% of CPU [SOLVED]

I'm so glad. Just in case there are any people out there who know less than I do (which I doubt) I'll add the lines that I used.

The contents of my bash script, (I'm sure I could have put the lines directly into rc.local, but I just found this neater):

<c>
#!/bin/bash

sudo sh /opt/alfresco-4.2.e/libreoffice/scripts/libreoffice_ctl.sh stop
sudo sh /opt/alfresco-4.2.e/libreoffice/scripts/libreoffice_ctl.sh start
</c>

My entry into rc.local
Note: This DID NOT WORK until I added the sleep command here. (I am sure this will be system specific)
<c>
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sleep 120
/home/alf/mattscripts/LibreOfficeStopStart.sh

exit 0
</c>