jasonstar 发表于 2016-8-3 19:18:08

mysql经常自己停止,是内存不够吗?已上传错误日志

mysql经常自己停止,是内存不够吗?已上传错误日志1G的内存

jasonstar 发表于 2016-8-3 20:02:12

好像不是内存的问题。貌似innodb的事儿 。麻烦军哥看下呗,可以复现好多回

补2个错误的日志 最后

jasonstar 发表于 2016-8-3 20:06:26

160803 19:55:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
2016-08-03 19:55:58 0 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-03 19:55:58 9509 Plugin 'FEDERATED' is disabled.
2016-08-03 19:55:58 b77ea8e0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-08-03 19:55:58 9509 InnoDB: Using atomics to ref count buffer pool pages
2016-08-03 19:55:58 9509 InnoDB: The InnoDB memory heap is disabled
2016-08-03 19:55:58 9509 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-03 19:55:58 9509 InnoDB: Memory barrier is not used
2016-08-03 19:55:58 9509 InnoDB: Compressed tables use zlib 1.2.3
2016-08-03 19:55:58 9509 InnoDB: Not using CPU crc32 instructions
2016-08-03 19:55:58 9509 InnoDB: Initializing buffer pool, size = 500.0M
2016-08-03 19:55:58 9509 InnoDB: Completed initialization of buffer pool
2016-08-03 19:55:58 9509 InnoDB: Highest supported file format is Barracuda.
2016-08-03 19:55:58 9509 InnoDB: Log scan progressed past the checkpoint lsn 177476077
2016-08-03 19:55:58 9509 InnoDB: Database was not shutdown normally!
2016-08-03 19:55:58 9509 InnoDB: Starting crash recovery.
2016-08-03 19:55:58 9509 InnoDB: Reading tablespace information from the .ibd files...
2016-08-03 19:55:58 9509 InnoDB: Restoring possible half-written data pages
2016-08-03 19:55:58 9509 InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 177499552
2016-08-03 19:55:59 9509 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 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
InnoDB: Last MySQL binlog file position 0 17523, file name mysql-bin.000034
2016-08-03 19:55:59 9509 InnoDB: 128 rollback segment(s) are active.
2016-08-03 19:55:59 9509 InnoDB: Waiting for purge to start
2016-08-03 19:55:59 9509 InnoDB: 5.6.23 started; log sequence number 177499552
2016-08-03 19:55:59 9509 Recovering after a crash using mysql-bin
2016-08-03 19:55:59 9509 Starting crash recovery...
2016-08-03 19:55:59 9509 Crash recovery finished.
2016-08-03 19:55:59 9509 Server hostname (bind-address): '*'; port: 3306
2016-08-03 19:55:59 9509 IPv6 is not available.
2016-08-03 19:55:59 9509    - '0.0.0.0' resolves to '0.0.0.0';
2016-08-03 19:55:59 9509 Server socket created on IP: '0.0.0.0'.
2016-08-03 19:56:00 9509 Event Scheduler: Loaded 0 events
2016-08-03 19:56:00 9509 /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.23-log'socket: '/tmp/mysql.sock'port: 3306Source distribution
160803 19:56:34 mysqld_safe Number of processes running now: 0
160803 19:56:34 mysqld_safe mysqld restarted
2016-08-03 19:56:35 0 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-03 19:56:35 9573 Plugin 'FEDERATED' is disabled.
2016-08-03 19:56:35 b77978e0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-08-03 19:56:35 9573 InnoDB: Using atomics to ref count buffer pool pages
2016-08-03 19:56:35 9573 InnoDB: The InnoDB memory heap is disabled
2016-08-03 19:56:35 9573 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-03 19:56:35 9573 InnoDB: Memory barrier is not used
2016-08-03 19:56:35 9573 InnoDB: Compressed tables use zlib 1.2.3
2016-08-03 19:56:35 9573 InnoDB: Not using CPU crc32 instructions
2016-08-03 19:56:35 9573 InnoDB: Initializing buffer pool, size = 500.0M
2016-08-03 19:56:35 9573 InnoDB: Completed initialization of buffer pool
2016-08-03 19:56:35 9573 InnoDB: Highest supported file format is Barracuda.
2016-08-03 19:56:35 9573 InnoDB: The log sequence numbers 167747050 and 167747050 in ibdata files do not match the log sequence number 177512208 in the ib_logfiles!
2016-08-03 19:56:35 9573 InnoDB: Database was not shutdown normally!
2016-08-03 19:56:35 9573 InnoDB: Starting crash recovery.
2016-08-03 19:56:35 9573 InnoDB: Reading tablespace information from the .ibd files...
2016-08-03 19:56:35 9573 InnoDB: Restoring possible half-written data pages
2016-08-03 19:56:35 9573 InnoDB: from the doublewrite buffer...
InnoDB: Last MySQL binlog file position 0 7328, file name mysql-bin.000035
2016-08-03 19:56:36 9573 InnoDB: 128 rollback segment(s) are active.
2016-08-03 19:56:36 9573 InnoDB: Waiting for purge to start
2016-08-03 19:56:36 9573 InnoDB: 5.6.23 started; log sequence number 177512208
2016-08-03 19:56:36 9573 Recovering after a crash using mysql-bin
2016-08-03 19:56:36 9573 Starting crash recovery...
2016-08-03 19:56:36 9573 Crash recovery finished.
2016-08-03 19:56:36 9573 Server hostname (bind-address): '*'; port: 3306
2016-08-03 19:56:36 9573 IPv6 is not available.
2016-08-03 19:56:36 9573    - '0.0.0.0' resolves to '0.0.0.0';
2016-08-03 19:56:36 9573 Server socket created on IP: '0.0.0.0'.
2016-08-03 19:56:36 9573 Event Scheduler: Loaded 0 events
2016-08-03 19:56:36 9573 /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.23-log'socket: '/tmp/mysql.sock'port: 3306Source distribution
160803 19:56:54 mysqld_safe Number of processes running now: 0
160803 19:56:54 mysqld_safe mysqld restarted
2016-08-03 19:56:57 0 TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-03 19:56:57 9619 Plugin 'FEDERATED' is disabled.
2016-08-03 19:56:57 b76fd8e0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-08-03 19:56:57 9619 InnoDB: Using atomics to ref count buffer pool pages
2016-08-03 19:56:57 9619 InnoDB: The InnoDB memory heap is disabled
2016-08-03 19:56:57 9619 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-03 19:56:57 9619 InnoDB: Memory barrier is not used
2016-08-03 19:56:57 9619 InnoDB: Compressed tables use zlib 1.2.3
2016-08-03 19:56:57 9619 InnoDB: Not using CPU crc32 instructions
2016-08-03 19:56:57 9619 InnoDB: Initializing buffer pool, size = 500.0M
160803 19:56:58 mysqld_safe mysqld from pid file /usr/local/mysql/var/iZ28f5evvmgZ.pid ended

licess 发表于 2016-8-3 20:14:44

估计可能是内存不足挂了
页: [1]
查看完整版本: mysql经常自己停止,是内存不够吗?已上传错误日志