<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>custom Nginx module memleaks problem</title>
<description>Hi all,


Recently I write a simple Nginx module ,but when I deploy it on the product environment it will make the Nginx service crash as it takes too many memory.The main handler code is here 

http://codepad.org/2H9We02C 


I've checked the code from time to time but still cannot solve the problem.And I hope someone offer me some suggestions about it.

regards

Tonny</description><link>http://forum.nginx.org/read.php?2,227746,227746#msg-227746</link><lastBuildDate>Thu, 23 May 2013 06:11:24 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?2,227746,227968#msg-227968</guid>
<title>Re: custom Nginx module memleaks problem</title><link>http://forum.nginx.org/read.php?2,227746,227968#msg-227968</link><description><![CDATA[agentzh Wrote:<br />-------------------------------------------------------<br />&gt; Hello!<br />&gt;<br />&gt; On Mon, Jun 25, 2012 at 8:36 AM, tonny.young<br />&gt; &lt;nginx-forum@nginx.us&gt; wrote:<br />&gt; &gt; Thanks for the suggestions.Can you explain me<br />&gt;  how my module &quot;blocks&quot;?<br />&gt; &gt;<br />&gt;<br />&gt; All your memcached related calls from within your<br />&gt; content handler will<br />&gt; block your nginx worker processes from serving<br />&gt; other concurrent<br />&gt; requests, which essentially turns your nginx<br />&gt; server into something<br />&gt; like Apache's prefork mpm.<br />&gt;<br />&gt; Regards,<br />&gt; -agentzh<br />&gt;<br />&gt; _______________________________________________<br />&gt; nginx mailing list<br />&gt; nginx@nginx.org<br />&gt; http://mailman.nginx.org/mailman/listinfo/nginx<br /><br />Thanks for the explain.]]></description>
<dc:creator>tonny.young</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Tue, 26 Jun 2012 23:59:35 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,227746,227837#msg-227837</guid>
<title>Re: custom Nginx module memleaks problem</title><link>http://forum.nginx.org/read.php?2,227746,227837#msg-227837</link><description><![CDATA[Hello!<br /><br />On Mon, Jun 25, 2012 at 8:36 AM, tonny.young &lt;nginx-forum@nginx.us&gt; wrote:<br />&gt; Thanks for the suggestions.Can you explain me  how my module &quot;blocks&quot;?<br />&gt;<br /><br />All your memcached related calls from within your content handler will<br />block your nginx worker processes from serving other concurrent<br />requests, which essentially turns your nginx server into something<br />like Apache's prefork mpm.<br /><br />Regards,<br />-agentzh<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>agentzh</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sun, 24 Jun 2012 23:28:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,227746,227834#msg-227834</guid>
<title>Re: custom Nginx module memleaks problem</title><link>http://forum.nginx.org/read.php?2,227746,227834#msg-227834</link><description><![CDATA[Thanks for the suggestions.Can you explain me how my module &quot;blocks&quot;?]]></description>
<dc:creator>tonny.young</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sun, 24 Jun 2012 20:36:51 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,227746,227747#msg-227747</guid>
<title>Re: custom Nginx module memleaks problem</title><link>http://forum.nginx.org/read.php?2,227746,227747#msg-227747</link><description><![CDATA[Hi,<br /><br />On Thu, Jun 21, 2012 at 9:34 AM, tonny.young &lt;nginx-forum@nginx.us&gt; wrote:<br /><br />&gt; Hi all,<br />&gt;<br />&gt;<br />&gt; Recently I write a simple Nginx module ,but when I deploy it on the<br />&gt; product environment it will make the Nginx service crash as it takes too<br />&gt; many memory.The main handler code is here<br />&gt;<br />&gt; http://codepad.org/2H9We02C<br />&gt;<br />&gt;<br />&gt; I've checked the code from time to time but still cannot solve the<br />&gt; problem.And I hope someone offer me some suggestions about it.<br />&gt;<br /><br />Why not use the standard memcache module or agentzh's memc module?<br />They will not block as your module does and I believe there will be no<br />memory leak either.<br /><br />Regards,<br /><br />--<br />Joshua Zhu<br />Senior Software Engineer<br />Server Platforms Team at Taobao<br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Joshua Zhu</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 20 Jun 2012 22:56:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,227746,227746#msg-227746</guid>
<title>custom Nginx module memleaks problem</title><link>http://forum.nginx.org/read.php?2,227746,227746#msg-227746</link><description><![CDATA[Hi all,<br /><br /><br />Recently I write a simple Nginx module ,but when I deploy it on the product environment it will make the Nginx service crash as it takes too many memory.The main handler code is here<br /><br />http://codepad.org/2H9We02C<br /><br /><br />I've checked the code from time to time but still cannot solve the problem.And I hope someone offer me some suggestions about it.<br /><br />regards<br /><br />Tonny]]></description>
<dc:creator>tonny.young</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 20 Jun 2012 21:34:49 -0400</pubDate></item>
</channel>
</rss>