wordpress - Why MySQL Restarted When Number of Processes Running Now 0 -


some background. hosted wordpress site in vps , mysql down error "error establishing database connection". i've spent time research , believe problem due when mysql restarted, not able allocate enough ram proceed.

i believe can improve situation increasing physical ram or swap. question post is, why mysql need restart itself? site pretty low traffic , doesn't seem db corrupted.

below full log issue:

  • 160103 18:39:54 mysqld_safe number of processes running now: 0
  • 160103 18:39:54 mysqld_safe mysqld restarted
  • 160103 18:39:55 [note] /usr/libexec/mysqld (mysqld 5.5.44-mariadb) starting process 22061 ...
  • 160103 18:39:55 innodb: innodb memory heap disabled
  • 160103 18:39:55 innodb: mutexes , rw_locks use gcc atomic builtins
  • 160103 18:39:55 innodb: compressed tables use zlib 1.2.7
  • 160103 18:39:55 innodb: using linux native aio
  • 160103 18:39:55 innodb: initializing buffer pool, size = 128.0m
  • innodb: mmap(137756672 bytes) failed; errno 12
  • 160103 18:39:55 innodb: completed initialization of buffer pool
  • 160103 18:39:55 innodb: fatal error: cannot allocate memory buffer pool
  • 160103 18:39:56 [error] plugin 'innodb' init function returned error.
  • 160103 18:39:56 [error] plugin 'innodb' registration storage engine failed.
  • 160103 18:39:56 [error] mysqld: out of memory (needed 128917504 bytes)
  • 160103 18:39:56 [error] mysqld: out of memory (needed 96681984 bytes)
  • 160103 18:39:56 [error] mysqld: out of memory (needed 72499200 bytes)
  • 160103 18:39:56 [note] plugin 'feedback' disabled.
  • 160103 18:39:56 [error] unknown/unsupported storage engine: innodb
  • 160103 18:39:56 [error] aborting

you have assigned low ram 128mb innodb_buffer_pool_size (which default ram). should assign approx. 80% of total ram variable if using innodb engine, mysql uses intially memory variable cache index data in innodb engine.

so update @ least 1 gb ram (should 80% of total ram innodb) innodb_buffer_pool_size in config file , restart mysql service.

update:

you have 1 gb ram: can assign 800m ram (or >=500m) innodb_buffer_pool_size.

mysql auto restart when number of running process 0: per errors shared you...this error coming @ time of mysql service start , server not able initiate mysql service such less ram.

160103 18:39:55 innodb: initializing buffer pool, size = 128.0m innodb: mmap(137756672 bytes) failed; errno 12 160103 18:39:55 innodb: completed initialization of buffer pool 160103 18:39:55 innodb: fatal error: cannot allocate memory buffer pool 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -