[Solved] Lighttpd web server super slow

Ask questions about Arch Linux ARM. Please search before making a new topic.

[Solved] Lighttpd web server super slow

Postby CommanderCool » Sun Jul 31, 2016 7:43 pm

I installed owncloud on my Raspberry Pi B. For the most part, I followed this (dated) guide:
http://eiosifidis.blogspot.de/2014/06/install-owncloud-on-raspberry-pi-arch.html?m=1
(using lighttpd fcgi php-cgi php-sqlite openssl)
Installation went without problems - the only differences were openssl (no longer an extension) and fail2ban (which I added as advised in the arch wiki).

Having finished, I noticed that the server is incredibly slow. Opening the web interface takes multiple minutes. This is not just slow but unusable. Connections from the Android app or the linux client time out. While trying to connect (via web/Android/linux) /usr/bin/php-cgi takes up 100% CPU load.

There are no errors in the lighttpd or owncloud logs.

Could anyone point me in the direction in which to look for the reason for this behaviour?
Last edited by CommanderCool on Wed Aug 03, 2016 8:30 pm, edited 1 time in total.
CommanderCool
 
Posts: 3
Joined: Sun Jul 31, 2016 6:51 pm

Re: Lighttpd web server super slow with high CPU load by php

Postby CommanderCool » Wed Aug 03, 2016 11:14 am

Maybe this is not the right section/forum for this kind of question?

I don't even know what additional information could be useful. Does anyone have a clue where to look?
CommanderCool
 
Posts: 3
Joined: Sun Jul 31, 2016 6:51 pm

Re: Lighttpd web server super slow with high CPU load by php

Postby moonman » Wed Aug 03, 2016 7:18 pm

Well, 1. RPI is slow. 2. owncloud is pretty heavy. Posiibly Owncloud has gotten heavier since the article was written. My suggestion to you would be to optimize your installation. Add php cache. Replace php-cgi with php-fpm.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Lighttpd web server super slow with high CPU load by php

Postby CommanderCool » Wed Aug 03, 2016 8:28 pm

It seems I made an error configuring the CPU frequency settings in /boot/config.txt.
After resetting to defaults the performance is slow but acceptable. I will try the optimization methods you mentioned. Thanks for your help.
CommanderCool
 
Posts: 3
Joined: Sun Jul 31, 2016 6:51 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 10 guests