Mysql crash after some hours even i have 8gb Ram
Re: Mysql crash after some hours even i have 8gb Ram
Just start with creating a swap file... 4GB min ~ 8GB max...
Re: Mysql crash after some hours even i have 8gb Ram
OK.SCelik wrote:Just start with creating a swap file... 4GB min ~ 8GB max...
i created 8GB swap file..
Re: Mysql crash after some hours even i have 8gb Ram
What is the output of ?
Code: Select all
free -m
Re: Mysql crash after some hours even i have 8gb Ram
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
Re: Mysql crash after some hours even i have 8gb Ram
Is there any crash after you activated swap?
Re: Mysql crash after some hours even i have 8gb Ram
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
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
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Mysql crash after some hours even i have 8gb Ram
Adding swap helps most of the time such mysql problems. Probably your swap doesn't need that size.
Re: Mysql crash after some hours even i have 8gb Ram
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.
Re: Mysql crash after some hours even i have 8gb Ram
OK...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.
how can i do that ?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Mysql crash after some hours even i have 8gb Ram
mysqltuner.com is an very useful tool to tune your MySQL server.tomer628 wrote:OK...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.
how can i do that ?