Home  >  Article  >  Backend Development  >  8GB RAM CENTOS6.2 服务器,memcached分配多少合理?

8GB RAM CENTOS6.2 服务器,memcached分配多少合理?

WBOY
WBOYOriginal
2016-06-23 14:15:38898browse

有一个服务器,8GB RAM 安装CENTOS6.2系统,
top一下内存信息,
mysql支持全文搜索,占掉大概1.5GB左右,
每个root(php)进程16-18MB,
每个apache(httpd)进程18-60MB(大部分在45MB)

每秒有17个cron程序需要运行,
同时通过google analytics观察,每秒峰值最高时可达20page流量。(日4.3W PG量)

现在服务器速度下降,想安装memcached。
求教前辈们,像我的这种情况,可以分配多少GB内存给memcached?
此外,本服务器最主要的任务都是通过mysql全文搜索(实时信息),memcached缓存时间设置多少合理?

谢谢。



回复讨论(解决方案)

引入缓存,对于实时信息毫无意义

引入缓存,对于实时信息毫无意义
那时事信息如何优化速度?nginx?


引入缓存,对于实时信息毫无意义
那时事信息如何优化速度?nginx?

多个服务器 CDN

多个服务器 CDN
我只有一个服务器,近期不打算扩容。等到日PG 10W+时再考虑。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn