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 General Discussion
  • Search

Mysql queries peaking to 1M+ occasionally

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by skurudo » Wed Jan 07, 2015 5:10 am

GreenUnicorn wrote:Image
What woud be the best way to find the reason for that?
Mystery!
May be it's ddos or shell?
Top

emardotcom
Posts: 54
Joined: Wed Dec 11, 2013 9:05 pm

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by emardotcom » Wed Jan 07, 2015 8:46 pm

There is a known issue with calculating usage that maybe the reason for this, but does your server shut down?
To see what I'm talking about please go into services and check out the usage.
Top

armyboylegend
Posts: 33
Joined: Sun Oct 05, 2014 7:53 am

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by armyboylegend » Fri Jan 23, 2015 2:59 am

Add swap ram to your machine, mysql will not crash
Top

emardotcom
Posts: 54
Joined: Wed Dec 11, 2013 9:05 pm

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by emardotcom » Mon Jan 26, 2015 11:24 pm

Next time this happens please find the issue in:

Code: Select all

#RHEL
sudo tail /var/log/mysqld.log
#Debian
sudo tail /var/log/mysql.log
sudo tail /var/log/mysql/error.log
and post what you find.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by joem » Tue Jan 27, 2015 10:53 pm

GreenUnicorn wrote:here we go

Code: Select all

150126 22:31:29 [Note] Plugin 'FEDERATED' is disabled.
150126 22:31:29 InnoDB: The InnoDB memory heap is disabled
150126 22:31:29 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150126 22:31:29 InnoDB: Compressed tables use zlib 1.2.3.4
150126 22:31:29 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
150126 22:31:29 InnoDB: Completed initialization of buffer pool
150126 22:31:29 InnoDB: Fatal error: cannot allocate memory for the buffer pool
150126 22:31:29 [ERROR] Plugin 'InnoDB' init function returned error.
150126 22:31:29 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150126 22:31:29 [ERROR] Unknown/unsupported storage engine: InnoDB
150126 22:31:29 [ERROR] Aborting

150126 22:31:29 [Note] /usr/sbin/mysqld: Shutdown complete

150126 22:31:31 [Note] Plugin 'FEDERATED' is disabled.
150126 22:31:31 InnoDB: The InnoDB memory heap is disabled
150126 22:31:31 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150126 22:31:31 InnoDB: Compressed tables use zlib 1.2.3.4
150126 22:31:31 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
150126 22:31:31 InnoDB: Completed initialization of buffer pool
150126 22:31:31 InnoDB: Fatal error: cannot allocate memory for the buffer pool
150126 22:31:31 [ERROR] Plugin 'InnoDB' init function returned error.
150126 22:31:31 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150126 22:31:31 [ERROR] Unknown/unsupported storage engine: InnoDB
150126 22:31:31 [ERROR] Aborting

150126 22:31:31 [Note] /usr/sbin/mysqld: Shutdown complete
The problem is InnoDB is unable to allocate memory as specified in innodb_buffer_pool_size variable...Please see http://codesplanet.blogspot.com/2014/04 ... tom-0.html
Top

emardotcom
Posts: 54
Joined: Wed Dec 11, 2013 9:05 pm

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by emardotcom » Wed Jan 28, 2015 8:07 pm

As Joem has suggested you need to add swap at least 512mg incase your physical memory at some point reaches it's limit. Perhaps in a future release of Vesta we can add and change the swap settings, but for now try to do it manually.
Top

emardotcom
Posts: 54
Joined: Wed Dec 11, 2013 9:05 pm

Re: Mysql queries peaking to 1M+ occasionally
  • Quote

Post by emardotcom » Fri Jan 30, 2015 3:01 am

Did that seem to due the trick?
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • 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