<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[nginx fastcgi_cache共享内存空间设置过大导致错误：nginx: [alert] mmap(MAP_ANONMAP_SHARED, 536870912) failed (12: Cannot allocate memory)]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 06 May 2015 08:36:44 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：整了一把hhvm，发现其对wordpress支持还不错，对bo-blog也还成，但是bo-blog里的验证码好像就不行了，对owncloud直接就歇菜了出现内部服务器错误。那就还回常规的php吧，出现：<br/>[root@jackxiang vhost]# service nginx start<br/>Starting nginx... Enter PEM pass phrase:<br/>Enter PEM pass phrase:<br/>Enter PEM pass phrase:<br/>nginx: [alert] mmap(MAP_ANON&#124;MAP_SHARED, 134217728) failed (12: Cannot allocate memory)<br/><br/><br/>——————————————————————————————————————————————————<br/>按照以往的设置，直接设定fastcgi_cache：<br/>fastcgi_cache_path /data/nginx/fastcgi_cache levels=1:2 keys_zone=ngx_fcgi_cache:150m inactive=1d max_size=40g;<br/><br/>但是，出现错误：<br/>nginx: [alert] mmap(MAP_ANON&#124;MAP_SHARED, 536870912) failed (12: Cannot allocate memory)<br/><br/>原因是共享内存空间设置过大，系统已没有足够的内存分配，导致无法启动nginx，可以将上面的keys_zone=ngx_fcgi_cache:150m，设置小一些，例如keys_zone=ngx_fcgi_cache:50m，即可。<br/><br/>最后，<br/>为何没有足够的内存分配？是因为我在虚拟机里面又装了一个virtual box，里面装了一个windows 2003，它里面装了一个Rtx Server，于是没啥内存了。<br/><br/>后记，<br/>有兄弟建议：HHVM对GD支持OK么，现在研究hhvm。。不如耐心等10月phpng。<br/>我的回复是：不清楚呢，我也是昨天才安成功了hhvm，用的群里兄弟贴的链接地址。<br/>提前体验一下，这块我觉得这块是智能化还是傻瓜化：<br/>我发现这个hhvm某个链接访问后，一段时间再访问好像又重新编译了。<br/>但如果访问频率很快呢，就会发现性能的确还不错...这块新版PHP得规避。
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] nginx fastcgi_cache共享内存空间设置过大导致错误：nginx: [alert] mmap(MAP_ANONMAP_SHARED, 536870912) failed (12: Cannot allocate memory)]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>