title: MariaDB Memory_used keep increasing
body: <p>I recently restarted my MariaDB (Mysql) server after updating to the last version (Mariadb 10.1.9). But since then, my nagios report a constant memory used increase and I can't figure out where it comes from.</p>
  
  <p>The memory used was already recorded by Nagios as 150.000 and currently it increase constantly. The request of this morning show 620.000 :</p>
  
  <p>QUERY WARNING: 'SELECT ROUND(VARIABLE_VALUE/1024/1024) FROM information_schema.GLOBAL_STATUS WHERE VARIABLE_NAME = "Memory_used"' returned 620.000000</p>
  
  <p>Is it possible that the problem come from the update + restart, or a different configuration file since package update or simply something else?</p>
  
  <p>Thanks for your help</p>
  
  <p>UPDATE</p>
  
  <pre><code>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
  </code></pre>