From 1027c3135910c6f0021be6d57157bdfd0322914c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 16 Oct 2016 04:43:29 +0000 Subject: [PATCH] Limit the number of Monitor threads to 16 --- lib/MySQL_Monitor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() {