EC2 - LAMP内存问题

时间:2015-04-18 16:53:27

标签: linux amazon-ec2 lamp

我有一个最新的Amazon Linux AMI在一个4GB的Ram上运行。

LAMP服务器设置有一个Wordpress实例。我有记忆问题,我似乎无法确定我的问题。我是linux新手,不确定如何查明我们的问题。

Apache将报告:

Sat Apr 18 04:27:36 2015错误(12)无法分配内存:fork:无法分叉新进程

MYSQL将报告:

150418 4:28:24 InnoDB: The InnoDB memory heap is disabled
150418 4:28:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
Version: '5.5.42' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
150418 04:28:24 mysqld_safe Number of processes running now: 0
150418 04:28:24 mysqld_safe mysqld restarted
150418 4:28:24 Note Plugin 'FEDERATED' is disabled.
150418 4:28:24 InnoDB: The InnoDB memory heap is disabled
150418 4:28:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150418 4:28:24 InnoDB: Compressed tables use zlib 1.2.7
150418 4:28:24 InnoDB: Using Linux native AIO
150418 4:28:24 InnoDB: Initializing buffer pool, size = 64.0M
InnoDB: mmap(68681728 bytes) failed; errno 12
150418 4:28:24 InnoDB: Completed initialization of buffer pool
150418 4:28:24 InnoDB: Fatal error: cannot allocate memory for the buffer pool
150418 4:28:24 ERROR Plugin 'InnoDB' init function returned error.
150418 4:28:24 ERROR Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150418 4:28:24 ERROR Unknown/unsupported storage engine: InnoDB
150418 4:28:24 ERROR Aborting
150418 4:28:24 Note /usr/libexec/mysqld: Shutdown complete
150418 04:28:24 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

MYSQL Conf:

mysqld
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
Settings user and group are ignored when systemd is used.
If you need to run mysqld under a different user or group,
customize your systemd unit file for mysqld according to the
instructions in http://fedoraproject.org/wiki/Systemd
query_cache_size=8M
tmp_table_size=16M
max_heap_table_size=16M
thread_cache_size=4
innodb_buffer_pool_size=64M

mysqld_safe
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

HTTPD Conf :( Prefork)

prefork MPM
StartServers: number of server processes to start
MinSpareServers: minimum number of server processes which are kept spare
MaxSpareServers: maximum number of server processes which are kept spare
ServerLimit: maximum value for MaxClients for the lifetime of the server
MaxClients: maximum number of server processes allowed to start
MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 15
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 3000
</IfModule>

0 个答案:

没有答案
相关问题