From 0a875c2a7dfa701b8f31dab0f4f351c26842309e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 26 May 2018 08:56:05 +0200 Subject: [PATCH] Change stack size for Monitor threads from 64K to 128K Changing some error messages into warning and info --- lib/MySQL_Monitor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index e8fdf0865..75aab9160 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -2209,11 +2209,11 @@ __monitor_run: ConsumerThread **threads= (ConsumerThread **)malloc(sizeof(ConsumerThread *)*num_threads); for (unsigned int i=0;istart(64,false); + threads[i]->start(128,false); } pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize (&attr, 64*1024); + pthread_attr_setstacksize (&attr, 128*1024); pthread_t monitor_connect_thread; pthread_create(&monitor_connect_thread, &attr, &monitor_connect_pthread,NULL); pthread_t monitor_ping_thread; @@ -2242,13 +2242,13 @@ __monitor_run: usleep(500000); int qsize=queue.size(); if (qsize>500) { - proxy_error("Monitor queue too big, try to reduce frequency of checks: %d\n", qsize); + proxy_warning("Monitor queue too big, try to reduce frequency of checks: %d\n", qsize); qsize=qsize/250; - proxy_error("Monitor is starting %d helper threads\n", qsize); + proxy_info("Monitor is starting %d helper threads\n", qsize); ConsumerThread **threads_aux= (ConsumerThread **)malloc(sizeof(ConsumerThread *)*qsize); for (int i=0; istart(64,false); + threads_aux[i]->start(128,false); } for (int i=0; ijoin();