diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index f57b771e0..5fa6ba543 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -298,6 +298,9 @@ MySQL_Monitor::MySQL_Monitor() { num_threads=GloMTH->num_threads*2; } } + if (num_threads>16) { + num_threads=16; // limit to 16 + } }; MySQL_Monitor::~MySQL_Monitor() {