innodb - Mysql everyday crash -


mysql eats ram , disconnects. works 1 day. @ 7 goes down. pointers how resolve issue appreciated.

mysql error.log file:

170912  7:52:56 [note] plugin 'federated' disabled. 170912  7:52:56 innodb: innodb memory heap disabled 170912  7:52:56 innodb: mutexes , rw_locks use gcc atomic builtins 170912  7:52:56 innodb: compressed tables use zlib 1.2.8 170912  7:52:56 innodb: using linux native aio 170912  7:52:56 innodb: initializing buffer pool, size = 300.0m 170912  7:52:56 innodb: completed initialization of buffer pool 170912  7:52:56 innodb: highest supported file format barracuda. innodb: log scan progressed past checkpoint lsn 4603050230 170912  7:52:56  innodb: database not shut down normally! innodb: starting crash recovery. innodb: reading tablespace information .ibd files... innodb: restoring possible half-written data pages doublewrite innodb: buffer... innodb: doing recovery: scanned log sequence number 4603057481 170912  7:52:57  innodb: starting apply batch of log records database... innodb: progress in percents: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99  innodb: apply batch completed 170912  7:52:57  innodb: waiting background threads start 170912  7:52:58 innodb: 5.5.55 started; log sequence number 4603057481 170912  7:52:58 [note] server hostname (bind-address): '127.0.0.1'; port: 3306 170912  7:52:58 [note]   - '127.0.0.1' resolves '127.0.0.1'; 170912  7:52:58 [note] server socket created on ip: '127.0.0.1'. 170912  7:52:58 [note] event scheduler: loaded 0 events 170912  7:52:58 [note] /usr/sbin/mysqld: ready connections. version: '5.5.55-0+deb8u1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (debian) 170912  7:53:06 [note] plugin 'federated' disabled. 170912  7:53:06 innodb: innodb memory heap disabled 170912  7:53:06 innodb: mutexes , rw_locks use gcc atomic builtins 170912  7:53:06 innodb: compressed tables use zlib 1.2.8 170912  7:53:06 innodb: using linux native aio 170912  7:53:06 innodb: initializing buffer pool, size = 300.0m innodb: mmap(321945600 bytes) failed; errno 12 170912  7:53:06 innodb: completed initialization of buffer pool 170912  7:53:06 innodb: fatal error: cannot allocate memory buffer pool 170912  7:53:06 [error] plugin 'innodb' init function returned error. 170912  7:53:06 [error] plugin 'innodb' registration storage engine failed. 170912  7:53:06 [error] unknown/unsupported storage engine: innodb 170912  7:53:06 [error] aborting  170912  7:53:06 [note] /usr/sbin/mysqld: shutdown complete 

if increase buffer pool size, server goes down sooner.

this error: 170912 7:53:06 innodb: fatal error: cannot allocate memory bufferpool

tells you have insufficient buffer pool size start innodb.

edit /etc/mysql/my.cnf if not dir, find / -name my.cnf

search innodb_buffer_pool_size =

decrease value have less 50% of ram.

innodb_buffer_pool_size = 20m

alternatively, start mysql skipping innodb.

sudo -u mysql mysqld --skip-innodb --default-storage-engine=myisam


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -