diff options
author | Monty <monty@mariadb.org> | 2016-03-22 23:42:13 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-03-22 23:44:52 +0200 |
commit | fa3edbf40d6b9f6b56feaceb0ec90753f1072ac9 (patch) | |
tree | 15a7261c4e79e0871901321bd2e78e588c7a0394 /sql/sql_const.h | |
parent | 260dd476b057b759af7973550b560dc2f56e18fd (diff) | |
download | mariadb-git-fa3edbf40d6b9f6b56feaceb0ec90753f1072ac9.tar.gz |
Increase value of thread_cache_size to 32
Added 5 minute timeout before automaticlally removing threads from thread
cache.
This solves a problem with jemalloc, which is slow with a small
thread cache and also makes thread_cache big enough that most users
doesn't have to touch it
Diffstat (limited to 'sql/sql_const.h')
-rw-r--r-- | sql/sql_const.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_const.h b/sql/sql_const.h index 76e47bd278b..31ee4603dc9 100644 --- a/sql/sql_const.h +++ b/sql/sql_const.h @@ -235,6 +235,8 @@ that does not respond to "initial server greeting" timely */ #define CONNECT_TIMEOUT 10 + /* Wait 5 minutes before removing thread from thread cache */ +#define THREAD_CACHE_TIMEOUT 5*60 /* The following can also be changed from the command line */ #define DEFAULT_CONCURRENCY 10 |