由于缓冲池大小,Mysql innodb崩溃

由于缓冲池大小,Mysql innodb崩溃,mysql,crash,innodb,Mysql,Crash,Innodb,有很多解决方案/答案,但在我的情况下,什么都不起作用,Mysql不断崩溃,我试图调整,但问题仍然存在 Mysql正在AWS实例上运行,规格如下 单芯 4 GB RAM,1.5 GB交换 镀锡后,以下是my.cnf的详细信息 [mysqld] #Settings user and group are ignored when systemd is used. # If you need to run mysqld under different user or group, # customize

有很多解决方案/答案,但在我的情况下,什么都不起作用,Mysql不断崩溃,我试图调整,但问题仍然存在

Mysql正在AWS实例上运行,规格如下

单芯 4 GB RAM,1.5 GB交换

镀锡后,以下是my.cnf的详细信息

[mysqld]

#Settings user and group are ignored when systemd is used.
# If you need to run mysqld under different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
#datadir=/var/lib/mysql
datadir=/mnt/data/mysql
socket=/var/lib/mysql/mysql.sock
#Disabling symbolic-links is recommended to prevent assorted security risks
#symbolic-links=0
lower_case_table_names=2
default-storage-engine=InnoDB
#innodb_force_recovery = 4

max_connections=250
bind-address = 0.0.0.0
skip-external-locking
thread_cache_size = 4
key_buffer_size = 512M
query_cache_size = 64M
query_cache_limit = 8M
innodb_buffer_pool_size = 1500M
innodb_log_file_size = 750M
join_buffer_size = 128K
tmp_table_size = 750MB
max_heap_table_size = 290MB
sort_buffer_size = 2M
read_buffer_size = 128K
table_open_cache = 512
wait_timeout = 86400
table_cache = 2500
long_query_time=4
max_allowed_packet = 32M
innodb_use_sys_malloc =  0

#innodb_data_file_path = ibdata1:20M:autoextend

#innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M

#innodb_log_file_size = 64M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
下面的日志显示,即使我分配了1.5 gb,也无法将内存分配给缓冲池大小

140808 09:50:04 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140808 09:50:07 mysqld_safe Starting mysqld daemon with databases from /mnt/data/mysql
140808  9:50:07 [Warning] lower_case_table_names was set to 2, even though your the file system '/mnt/data/mysql/' is case sensitive.  Now setting lower_case_table_names to 0 to avoid future problems.
140808  9:50:07 [Note] Plugin 'FEDERATED' is disabled.
140808  9:50:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140808  9:50:07 InnoDB: Compressed tables use zlib 1.2.7
140808  9:50:07 InnoDB: Using Linux native AIO
140808  9:50:07 InnoDB: Initializing buffer pool, size = 1.5G
InnoDB: mmap(1609728000 bytes) failed; errno 12
140808  9:50:07 InnoDB: Completed initialization of buffer pool
**140808  9:50:07 InnoDB: Fatal error: cannot allocate memory for the buffer pool**
140808  9:50:07 [ERROR] Plugin 'InnoDB' init function returned error.
140808  9:50:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140808  9:50:07 [ERROR] Unknown/unsupported storage engine: InnoDB
140808  9:50:07 [ERROR] Aborting

140808  9:50:07 [Note] /usr/libexec/mysqld: Shutdown complete
请告知我是否应该增加物理资源并增加it缓冲池大小?
或者存在导致数据库缓冲区大小过大的任何应用程序故障

你的数据库有多大?@luke db大小是6Gb,我有升级系统,目前运行良好。