mysql - 求 Magento 服务器参数设置
迷茫
迷茫 2017-04-17 11:04:21
0
2
705

求 Magento 服务器参数设置
本服务硬件参数:
CPU:8 Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
内存:8Gb
硬盘:1T

web服务安装有:
nginx 1.1
php 5.3.18
php-fpm
mysql 5.5.27

网站产品数量3万左右,PV10万左右,IP1万左右。

由于本人在服务器方面的经验不足,用top查看,内存老是不够使用。几乎只剩下100M左右的可用内存。这个问题困扰我几个星期了,所以不得不在这里请求各位大侠,帮小弟提供一些参考资料,小弟在此不胜感激!

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
巴扎黑

Linux memory has a concept of "system allocated, unused". The memory seen by top is the value allocated by the system, not the actual used value. If you want to determine how much memory is occupied by the system, you can use the free command to see the details of the memory

 # free -m
             total       used       free     shared    buffers     cached
Mem:          1997       1972         24          0        221       1309
-/+ buffers/cache:        441       1555
Swap:         1911         28       1883

In the first line, total: total memory 1997M; used: 1972M used (this is actual allocation, not actual use) free 24M (unallocated, not unused) buffers: 221M (allocated, unused, available) Recycled) cached: 1309M (allocated, unused, can be recycled)
In the second line, used: 441M (actually used) free: 1555M (actually idle)
In other words, there are several equations
The total of the first row = the first row used the first row free
total in the first line = used in the second line free in the second line
Free in the second line = buffers in the first line cached in the first line

Ty80

Good question, waiting for the expert’s reply.
It seems that the memory management strategy of Linux is different from that of Windows. It always takes up as much free memory as possible, and the remaining 100 M is normal. There is no need to panic. In addition, the zombie process in top needs to be paid attention to, not more.

iostat is also very important, but I don’t know exactly how to look at it. I’ll wait for the expert downstairs to explain it in detail.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template