diff --git a/clamd.conf b/clamd.conf index ebdb4bd..017402c 100644 --- a/clamd.conf +++ b/clamd.conf @@ -123,7 +123,7 @@ StreamMaxLength 10M # Maximum number of threads running at the same time. # Default: 10 -MaxThreads 5 +MaxThreads 2 # Waiting for data from a client socket will timeout after this time (seconds). # Default: 120 diff --git a/my.cnf.d/server.cnf b/my.cnf.d/server.cnf index aaffe5d..d24d3cf 100644 --- a/my.cnf.d/server.cnf +++ b/my.cnf.d/server.cnf @@ -8,6 +8,10 @@ # this is read by the standalone daemon and embedded servers [server] +max_connections = 25 + +table_definition_cache = 512 + # this is only for the mysqld standalone daemon [mysqld] diff --git a/sysctl.conf b/sysctl.conf index c7dc34e..3a53001 100644 --- a/sysctl.conf +++ b/sysctl.conf @@ -106,7 +106,7 @@ net.ipv4.ip_local_port_range = 1024 65023 fs.file-max = 2097152 # do less swapping -vm.swappiness = 10 +vm.swappiness = 25 vm.dirty_background_ratio = 1 vm.dirty_ratio = 1 vm.dirty_background_bytes = 5