Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

How to reduce RAM usage MySQL?

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
stfnsn
Posts: 2
Joined: Mon Mar 13, 2017 3:50 pm

How to reduce RAM usage MySQL?
  • Quote

Post by stfnsn » Mon Mar 13, 2017 8:51 pm

I have big memory problem, sql use too much.
Config:

Code: Select all

[client]
port=3306
socket=/var/run/mysqld/mysqld.sock

[mysqld_safe]
socket=/var/run/mysqld/mysqld.sock

[mysqld]
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
socket=/var/run/mysqld/mysqld.sock
port=3306
basedir=/usr
datadir=/var/lib/mysql
tmpdir=/tmp
lc-messages-dir=/usr/share/mysql
log_error=/var/log/mysql/error.log

symbolic-links=0

skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 32M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M

#innodb_use_native_aio = 0
innodb_file_per_table = 1

max_connections=200
max_user_connections=50
wait_timeout=10
interactive_timeout=50
long_query_time=5

query_cache_type = 1
tmp_table_size = 64M
max_heap_table_size = 64M
skip-name-resolve

!includedir /etc/mysql/conf.d/
Graphs:
Image
Image

Setup:
ubuntu 16.04
nginx+php7.0-fpm
wordpress 1.200 articles, ~2k visitors per day.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How to reduce RAM usage MySQL?
  • Quote

Post by skurudo » Mon Mar 20, 2017 2:10 pm

MySQL Config Tuner Scripts
viewtopic.php?f=14&t=14148
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password