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 Database Server
  • Search

Mysql crash after some hours even i have 8gb Ram

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
36 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
SCelik

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by SCelik » Sun Nov 08, 2015 7:53 pm

Just start with creating a swap file... 4GB min ~ 8GB max...
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tomer628 » Sun Nov 08, 2015 7:59 pm

SCelik wrote:Just start with creating a swap file... 4GB min ~ 8GB max...
OK.
i created 8GB swap file..
Top

SCelik

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by SCelik » Mon Nov 09, 2015 12:26 am

What is the output of

Code: Select all

free -m
?
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tomer628 » Mon Nov 09, 2015 4:27 am

SCelik wrote:What is the output of

Code: Select all

free -m
?

Code: Select all

# free -m
             total       used       free     shared    buffers     cached
Mem:          7680       3634       4046          2        278       1367
-/+ buffers/cache:       1988       5692
Swap:         8191          0       8191
Top

SCelik

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by SCelik » Mon Nov 09, 2015 1:48 pm

Is there any crash after you activated swap?
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tomer628 » Mon Nov 09, 2015 2:31 pm

At that meantime no.
But I need to test it between 3-7 days.
If it past, so I (you) fix that..
I will update..

For now this #free - m

Code: Select all

# free -m
             total       used       free     shared    buffers     cached
Mem:          7680       5159       2521          3        329       2707
-/+ buffers/cache:       2122       5557
Swap:         8191          0       8191
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tjebbeke » Mon Nov 09, 2015 3:22 pm

Adding swap helps most of the time such mysql problems. Probably your swap doesn't need that size.
Top

SCelik

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by SCelik » Mon Nov 09, 2015 7:27 pm

This is first step for tuning your server. Swap is needed for extreme traffic. (For a moment mostly.) At normal usage, there is nothing to do with swap. You have to tune your mysql for your needs.
Top

tomer628
Posts: 36
Joined: Fri Dec 26, 2014 2:17 pm

Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tomer628 » Mon Nov 09, 2015 8:18 pm

SCelik wrote:This is first step for tuning your server. Swap is needed for extreme traffic. (For a moment mostly.) At normal usage, there is nothing to do with swap. You have to tune your mysql for your needs.
OK...
how can i do that ?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Mysql crash after some hours even i have 8gb Ram
  • Quote

Post by tjebbeke » Mon Nov 09, 2015 8:58 pm

tomer628 wrote:
SCelik wrote:This is first step for tuning your server. Swap is needed for extreme traffic. (For a moment mostly.) At normal usage, there is nothing to do with swap. You have to tune your mysql for your needs.
OK...
how can i do that ?
mysqltuner.com is an very useful tool to tune your MySQL server.
Top


Post Reply
  • Print view

36 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Database 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