I have an apache web server(v2.4) + ckan (v2.7.2) running in a docker container.

In our scenario, CKAN is being hit with large number of requests at certain intervals (like 10 requests/sec). Then after a certain period of time, the memory consumption tends to increase towards it's threshold value.

After a certain interval/time, if we access the home page of ckan at https://url-address/abc with large number of request(Using Jmeter), the memory usage of the Apache process keeps on increasing and ultimately the process crashes and does not work properly. (NOTE: ckan is mounted on /abc root path )

As a quick remedy for this, restarting the docker container reduces the memory usage.

My concern is that, are there any set of conditions/parameters in CKAN or Apache Webserver that needs to be taken care of, to prevent this behavior? What is the threshold values to process these requests? Do I have to limit the no. of requests to Ckan below its threshold value so that it does not crashes? Or is there any way to limit the memory consumption of Apache web server?

Some of the values set in apache2.conf are:

Timeout                   300
KeepAlive On
MaxKeepAliveRequests      100
KeepAliveTimeout          5  

Also /apache2/mods-enabled/mpm_event.conf consists of the following parameters and values:

StartServers              2
MinSpareThreads           25
MaxSpareThreads           75
ThreadLimit               64
ThreadsPerChild           25
MaxRequestWorkers         150
MaxConnectionsPerChild    0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.