MariaDB Memory_used不断增加

时间:2015-12-17 09:01:10

标签: mysql memory mariadb

我最近在更新到最新版本(Mariadb 10.1.9)后重新启动了我的MariaDB(Mysql)服务器。但是从那时起,我的nagios报告了一个恒定的内存使用增加,我无法弄清楚它来自何处。

使用的内存已被Nagios记录为150.000,目前它不断增加。今早的请求显示620.000:

QUERY WARNING:'SELECT ROUND(VARIABLE_VALUE / 1024/1024)FROM information_schema.GLOBAL_STATUS WHERE VARIABLE_NAME =“Memory_used”'返回620.000000

问题是否可能来自更新+重启,或自包更新以来的其他配置文件还是其他什么?

感谢您的帮助

更新

show variables like "%cache%"
Variable_name
Value
aria_pagecache_age_threshold
300
aria_pagecache_buffer_size
134217728
aria_pagecache_division_limit
100
aria_pagecache_file_hash_size
512
binlog_cache_size
32768
binlog_stmt_cache_size
32768
have_query_cache
YES
host_cache_size
279
innodb_disable_sort_file_cache
OFF
innodb_ft_cache_size
8000000
innodb_ft_result_cache_limit
2000000000
innodb_ft_total_cache_size
640000000
join_cache_level
2
key_cache_age_threshold
300
key_cache_block_size
1024
key_cache_division_limit
100
key_cache_file_hash_size
512
key_cache_segments
0
max_binlog_cache_size
18446744073709547520
max_binlog_stmt_cache_size
18446744073709547520
metadata_locks_cache_size
1024
query_cache_limit
1048576
query_cache_min_res_unit
4096
query_cache_size
1048576
query_cache_strip_comments
OFF
query_cache_type
OFF
query_cache_wlock_invalidate
OFF
stored_program_cache
256
table_definition_cache
400
table_open_cache
64
thread_cache_size
16


show variables like "%buffer%"
Variable_name
Value
aria_pagecache_buffer_size
134217728
aria_sort_buffer_size
268434432
bulk_insert_buffer_size
8388608
innodb_buffer_pool_dump_at_shutdown
OFF
innodb_buffer_pool_dump_now
OFF
innodb_buffer_pool_filename
ib_buffer_pool
innodb_buffer_pool_instances
8
innodb_buffer_pool_load_abort
OFF
innodb_buffer_pool_load_at_startup
OFF
innodb_buffer_pool_load_now
OFF
innodb_buffer_pool_populate
OFF
innodb_buffer_pool_size
134217728
innodb_change_buffer_max_size
25
innodb_change_buffering
all
innodb_log_buffer_size
16777216
innodb_sort_buffer_size
1048576
join_buffer_size
262144
join_buffer_space_limit
2097152
key_buffer_size
16777216
mrr_buffer_size
262144
myisam_sort_buffer_size
8388608
net_buffer_length
8192
preload_buffer_size
32768
read_buffer_size
262144
read_rnd_buffer_size
524288
sort_buffer_size
524288
sql_buffer_result
OFF

show variables like "%max_connections%"
Variable_name
Value
extra_max_connections
1
max_connections
151

1 个答案:

答案 0 :(得分:0)

精确计算缺少3个参数: tmp_table_size, thread_stack, innodb_additional_mem_pool_size

但是您提供的配置正常消耗620MB的内存。 我假设升级还修改了MariaDB的配置文件。