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.
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?
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.
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):
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.