Php5-fpm 100% cpu load

Hi!

I have problem with my nginx setup.
I get 100% cpu load after I edit (delete ONE word from paragraph) and save my page. While this cpu work I see nothing changes on index page.

How can I debug this issue, I want to know why its takes so much time to execute such tiny editing?

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8119 www-data 20 0 318528 36584 17928 R 99.7 0.9 1:50.46 php5-fpm

● php5-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
Active: active (running) since Fri 2017-07-07 21:23:14 UTC; 48s ago
Process: 9102 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
Main PID: 9109 (php5-fpm)
Status: “Processes active: 4, idle: 6, Requests: 8, slow: 0, Traffic: 0req/sec”
CGroup: /system.slice/php5-fpm.service
├─9109 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
├─9112 php-fpm: pool www
├─9113 php-fpm: pool www
├─9114 php-fpm: pool www
├─9115 php-fpm: pool www
├─9116 php-fpm: pool www
├─9117 php-fpm: pool www
├─9118 php-fpm: pool www
├─9119 php-fpm: pool www
├─9120 php-fpm: pool www
└─9121 php-fpm: pool www

BTW on apache everything works fine :grin:

This is not true.
I tried my site on another apache+php hosting and get same results.

It was true when I tested my site on local PC (macbook pro).

So guys how I can fix it? May it be because of my Website layout complexity?

Hi,
Could be. If there are any dirs or files in site root dir you don’t need sitecake to handle (eg. another cms like wordpress or some framework dir or php library your site use…) exclude those dirs/files via .scignore file in site root. This should speed up things

Hi, thanks!

I create .scignore file with my folders css/ and additional files like 404.html and example.php.
But I still able to see this files (404, example) in page manager, is it normal? Or .scignore don’t work?

And my site cant save at all now, I have this msgs:

#1 An attempt to save content modifications failed. Retrying...
Internal Server Error

Hi, .scignore is to tell sitecake not to handle content inside specified file. If you want to exclude specific page from pagemanager, you should use .scpages file in site root and put ! before file name.
So if you want to exclude 404.html from page manager create .scpages file in site root and put

!404.html

inside it.