Modsecurity generates a lot of disk io operations, and the file www-data-ip.pag
is read and written continuously.
Is there any solution that can effectively reduce this? Could it be moved to RAM in some way?
Modsecurity generates a lot of disk io operations, and the file www-data-ip.pag
is read and written continuously.
Is there any solution that can effectively reduce this? Could it be moved to RAM in some way?
You can use the https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-%28v2.x%29#secdatadir directive, pointing to a previously created directory in ram:
And
(check permissions in that directory, that apache user can create files, etc) And remember to doing it permanent in /etc/fstab:
The weird part is the "note" in the
SecDataDir
directive:Additional information (how to read the file, and some additional concurrency problems) can be seen in https://github.com/SpiderLabs/ModSecurity/issues/2240.