PHP Fatal Error and Server Reached MaxRequestWorkers Error owncloud 9.1.4 (stable)




We have these errors on our logs,

1) PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
2) server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

when i looked in to this error i have found that to increase memory limit in apache2.conf for point 1, and to increase MaxRequestWorkers value in /mods-enabled/mpm-prefork.

The question is To what extent we have to increase the value.

Current value is Memory Limit - 128M MaxRequestWorkers value is - 150

Currently we have 600 users in Owncloud, Please tell me, What is the value to be increased for our configuration and Users. Right now we are facing lot of connection issues.

Our Server configuration is

OS - ubuntu 16.04 LTS

RAM - 10 gb

Processor - Intel Core i5

Graphics - Intel@iron lake

Storage - 3 TB

PHP Configuration

Max_input_time = 60

Memory_limit = 128m

Max_execution_time = 30

Upload_max_filesize = 400m

Post_max_size = 400m

OwnCloud Server PHP configuration

Hi yogesh

it is not really an ownCloud issue but a configuration of Apache. maybe this link can help you to tune your Apache conf as you want


I just want to know that what is to be my php and apache configuration, if i have 600 users and 1 TB of files


I guess the only answer here is "it depends" and you should raise the limits step by step and monitor your environment.

But at least its possible to tell that a memory_limit of 128MB is the absolute minimum according to the documentation: