Friday, September 19, 2014

Fix Owncloud High CPU Usage Ubuntu

Owncloud is the best free cloud storage software that can be installed on your server for now. But there are some bugs. The most annoying bug is owncloud client use about 50% of your cpu usage. To fix this, I just use a little tricky step, using little program named cpulimit. That program can limit cpu usage used by background program

  1. Install cpulimit
  2. apt-get install -y cpulimit
  3. Try cpulimit when owncloud use 50% of your cpu usage and make sure it can reduce owncloud cpu usage. In this tutorial I limit owncloud cpu usage to only 20%. You can change 20 to whatever you want.
  4. cpulimit -e owncloud -l 20
  5. Make a simple script to run cpulimit on boot with text editor and save as owncloudLimit. I recommended to save it in /usr/bin/
  6. #!/bin/sh cpulimit -e owncloud -l 20
  7. Make owncloudLimit executable
  8. sudo chmod +x /usr/bin/owncloudLimit
  9. Add owncloud limit to your startup program

And you get finished. Now owncloud will never eat your cpu usage again. The side effect using this startup script is longer time needed by owncloud to sync all of your file. But I think that is no problem because it not make your computer lag anymore :D

For more usage of cpulimit, visit here

0 comments:

Post a Comment