<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2363643920942057324.post781695688333580638..comments</id><updated>2009-07-08T17:24:09.278+10:00</updated><category term='apache'/><category term='mod_python'/><category term='fastcgi'/><category term='web2py'/><category term='mod_wsgi'/><category term='django'/><category term='python'/><category term='nginx'/><category term='wsgi'/><category term='pycon'/><category term='new relic'/><title type='text'>Comments on Graham Dumpleton: Load spikes and excessive memory usage in mod_pyth...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.dscpl.com.au/feeds/781695688333580638/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html'/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-4202546925228976298</id><published>2009-07-08T17:24:09.278+10:00</published><updated>2009-07-08T17:24:09.278+10:00</updated><title type='text'>@Ramdas, there is no single ideal configuration, i...</title><summary type='text'>@Ramdas, there is no single ideal configuration, it depends on your specific application and also where hosting multiple sites the amount of traffic going to specific sites and then memory used by each.&lt;br /&gt;&lt;br /&gt;If you want to have a discussion about it, use the mod_wsgi list on Google Groups to explain your problems/requirements.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/4202546925228976298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/4202546925228976298'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1247037849278#c4202546925228976298' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-5762432726354938461</id><published>2009-07-08T14:58:54.707+10:00</published><updated>2009-07-08T14:58:54.707+10:00</updated><title type='text'>Graham,
Good points made. However your para on mod...</title><summary type='text'>Graham,&lt;br /&gt;Good points made. However your para on modwsgi in daemon mode vs embedded mode wasn&amp;#39;t quite clear. &lt;br /&gt;&lt;br /&gt;My question if its a dedicated server and you are running multiple sites what should be the ideal configuration of modwsgi. Say I have 8 GB RAM. &lt;br /&gt;Is there  aplace which teaches me running modwsgi in dameon mode</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/5762432726354938461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/5762432726354938461'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1247029134707#c5762432726354938461' title=''/><author><name>Ramdas S</name><uri>http://www.blogger.com/profile/13797830818307817284</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-904205000'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-7193508796219462049</id><published>2009-05-27T19:22:03.699+10:00</published><updated>2009-05-27T19:22:03.699+10:00</updated><title type='text'>The thread stack size issue is described in:

http...</title><summary type='text'>The thread stack size issue is described in:&lt;br /&gt;&lt;br /&gt;http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Memory_Constrained_VPS_Systems</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7193508796219462049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7193508796219462049'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1243416123699#c7193508796219462049' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-2217331159224335210</id><published>2009-05-27T18:55:10.437+10:00</published><updated>2009-05-27T18:55:10.437+10:00</updated><title type='text'>Very important on at least an openVZ VPS is to red...</title><summary type='text'>Very important on at least an openVZ VPS is to reduce the per thread stack size. It is 8MB by default on linux. There is ThreadStackSize directive for apache, but I use ulimit -s 256 in the apache startup script. If you use mod_wsgi in daemon mode, it has a stack-size option you can use.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2217331159224335210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2217331159224335210'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1243414510437#c2217331159224335210' title=''/><author><name>pantoffel</name><uri>http://www.blogger.com/profile/01938257544635358542</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1843127064'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-9124266881794927370</id><published>2009-03-27T02:27:00.000+11:00</published><updated>2009-03-27T02:27:00.000+11:00</updated><title type='text'>Graham, thanks for taking the time to write this u...</title><summary type='text'>Graham, thanks for taking the time to write this up. It was very useful.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/9124266881794927370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/9124266881794927370'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1238081220000#c9124266881794927370' title=''/><author><name>Brian</name><uri>http://www.blogger.com/profile/15592614944196918535</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-638588868'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-934119483830297271</id><published>2009-03-20T22:19:00.000+11:00</published><updated>2009-03-20T22:19:00.000+11:00</updated><title type='text'>@Graham Thanks a bunch!&lt;br&gt;&lt;br&gt;I find it quite unf...</title><summary type='text'>@Graham Thanks a bunch!&lt;BR/&gt;&lt;BR/&gt;I find it quite unfortunate that this 'little detail' (I mean the python webapp deployment model) is so muddy in the Python world and I think you are doing an excellent job clarifying most of its aspects.&lt;BR/&gt;&lt;BR/&gt;I am preparing a blog post myself summarizing my findings (which will most probably link heavily to your posts :-)) and I hope you'll not mind if I'll </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/934119483830297271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/934119483830297271'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1237547940000#c934119483830297271' title=''/><author><name>Alex Popescu</name><uri>http://www.blogger.com/profile/01207348386503181170</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1584152246'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-1386095029556112321</id><published>2009-03-20T16:38:00.000+11:00</published><updated>2009-03-20T16:38:00.000+11:00</updated><title type='text'>@alex&lt;br&gt;&lt;br&gt;If the number of processes you config...</title><summary type='text'>@alex&lt;BR/&gt;&lt;BR/&gt;If the number of processes you configure fastcgi or mod_wsgi daemon mode to use for a specific application is the same as the maximum number of Apache child server processes, whether using worker or prefork MPM, then yes you would expect overall memory usage to thus be roughly the same for fat Python web applications.&lt;BR/&gt;&lt;BR/&gt;For a very small Python web application, then obviously</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/1386095029556112321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/1386095029556112321'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1237527480000#c1386095029556112321' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-3512355887796511868</id><published>2009-03-20T16:11:00.000+11:00</published><updated>2009-03-20T16:11:00.000+11:00</updated><title type='text'>I've been documenting myself about the various alt...</title><summary type='text'>I've been documenting myself about the various alternatives available for deploying python webapps for quite a while and I have found your post very helpful in confirming my thoughts (I'm not a very experienced Pythonist, but spent most of the last decade on the Java platform).&lt;BR/&gt;&lt;BR/&gt;There is still one thing that I'm not 100% sure I do understand. Leaving aside the main difference between </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/3512355887796511868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/3512355887796511868'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1237525860000#c3512355887796511868' title=''/><author><name>Alex Popescu</name><uri>http://www.blogger.com/profile/01207348386503181170</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1584152246'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-2730433311976515532</id><published>2009-03-14T16:35:00.000+11:00</published><updated>2009-03-14T16:35:00.000+11:00</updated><title type='text'>@kmike&lt;br&gt;&lt;br&gt;You don't say what options you are u...</title><summary type='text'>@kmike&lt;BR/&gt;&lt;BR/&gt;You don't say what options you are using to ab/siege in respect to number of concurrent connections. Not obvious if you have eliminated preloading overheads or have ensure that aren't counting into your results. So, hard to comment. Maybe the mod_wsgi list would be a better place to discuss this as am interested in this so can try and develop some sort of rule of thumb that can be</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2730433311976515532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2730433311976515532'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1237008900000#c2730433311976515532' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-8239771406862611054</id><published>2009-03-14T11:36:00.000+11:00</published><updated>2009-03-14T11:36:00.000+11:00</updated><title type='text'>With no sql queries the results are basically the ...</title><summary type='text'>With no sql queries the results are basically the same.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/8239771406862611054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/8239771406862611054'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236990960000#c8239771406862611054' title=''/><author><name>kmike</name><uri>http://www.blogger.com/profile/03931103648429594820</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-814422032'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-7969472563666661043</id><published>2009-03-14T10:32:00.000+11:00</published><updated>2009-03-14T10:32:00.000+11:00</updated><title type='text'>I see, I was wrong about GIL and 3d party extensio...</title><summary type='text'>I see, I was wrong about GIL and 3d party extensions issuses.&lt;BR/&gt;&lt;BR/&gt;I've done some apache+mod_wsgi (daemon mode) benchmarks with "ab" and "siege" utilities and the results seems confusing to me.&lt;BR/&gt;&lt;BR/&gt;The test page was django powered and have to execute ~15 SQL queries (mysql) to render.&lt;BR/&gt;&lt;BR/&gt;The configs was:&lt;BR/&gt;&lt;BR/&gt;1) WSGIDaemonProcess site-1 user=user-1 group=user-1 threads=25&lt;BR/&gt;&lt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7969472563666661043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7969472563666661043'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236987120000#c7969472563666661043' title=''/><author><name>kmike</name><uri>http://www.blogger.com/profile/03931103648429594820</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-814422032'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-7756378969821591972</id><published>2009-03-14T07:43:00.000+11:00</published><updated>2009-03-14T07:43:00.000+11:00</updated><title type='text'>Obviously, instead of 'So, once things have starte...</title><summary type='text'>Obviously, instead of 'So, once things have started up, you would be affected.', meant to say 'So, once things have started up, you would NOT be affected.'</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7756378969821591972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7756378969821591972'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236976980000#c7756378969821591972' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-2892834484996483867</id><published>2009-03-14T07:41:00.000+11:00</published><updated>2009-03-14T07:41:00.000+11:00</updated><title type='text'>@kmike&lt;br&gt;&lt;br&gt;If a database adapter or other third...</title><summary type='text'>@kmike&lt;BR/&gt;&lt;BR/&gt;If a database adapter or other third party C extension module doesn't unlock the GIL before going into a blocking operation then that module is fundamentally flawed and it should be reported as a bug in that module. None of the major database adapters available have this problem as far as I am aware, so please be more specific about which extension modules you believe are broken.&lt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2892834484996483867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2892834484996483867'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236976860000#c2892834484996483867' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-6988573416466504715</id><published>2009-03-14T00:06:00.000+11:00</published><updated>2009-03-14T00:06:00.000+11:00</updated><title type='text'>I'm sorry to disagree with some points from your p...</title><summary type='text'>I'm sorry to disagree with some points from your post.&lt;BR/&gt;&lt;BR/&gt;Prefork is much better for Python because of GIL (when your scripts use database). Database access (and some other Python modules) causes threads to lock so only 1 thread in process is active. This causes major performance penalty - all threads in process are waiting while SQL query is executing. If you use prefork mpm GIL won't </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/6988573416466504715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/6988573416466504715'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236949560000#c6988573416466504715' title=''/><author><name>kmike</name><uri>http://www.blogger.com/profile/03931103648429594820</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-814422032'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-7032454348324650142</id><published>2009-03-13T13:48:00.000+11:00</published><updated>2009-03-13T13:48:00.000+11:00</updated><title type='text'>@aarone&lt;br&gt;&lt;br&gt;In respect of stability of worker M...</title><summary type='text'>@aarone&lt;BR/&gt;&lt;BR/&gt;In respect of stability of worker MPM, are you talking about the worker MPM implementation itself within Apache, or the ability of mod_python and/or a specific Python web application to work properly in a multithreaded environment?&lt;BR/&gt;&lt;BR/&gt;Personally I have never heard of anyone having an issue with stability of Apache worker MPM itself. Also know of no multithreading issues in </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7032454348324650142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/7032454348324650142'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236912480000#c7032454348324650142' title=''/><author><name>Graham Dumpleton</name><uri>http://www.blogger.com/profile/13609779138164842374</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06276936539328058414'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19731307'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-2573608751330727052</id><published>2009-03-13T12:09:00.000+11:00</published><updated>2009-03-13T12:09:00.000+11:00</updated><title type='text'>If mod_php is able to share libraries between proc...</title><summary type='text'>If mod_php is able to share libraries between processes with prefork, why can't mod_python?  &lt;BR/&gt;&lt;BR/&gt;Is there a problem with PHP's model of pre-loading and sharing libraries (e.g. security)?&lt;BR/&gt;&lt;BR/&gt;If mod_php chose a "stupid" solution that seems to work well with shared nothing, how is the mod_python solution any better?&lt;BR/&gt;&lt;BR/&gt;My guess is that mod_python didn't do it that way out of any </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2573608751330727052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/2573608751330727052'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236906540000#c2573608751330727052' title=''/><author><name>aarone</name><uri>http://www.blogger.com/profile/16778156590700212643</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_s_nE6CzXo60/SasdI53g4KI/AAAAAAAAAM0/2TSChi6WU_8/S220/laughing.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1880631333'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-884693698863434433</id><published>2009-03-10T17:51:00.000+11:00</published><updated>2009-03-10T17:51:00.000+11:00</updated><title type='text'>This is excellent post.  Thanks.&lt;br&gt;&lt;br&gt;Regards,&lt;b...</title><summary type='text'>This is excellent post.  Thanks.&lt;BR/&gt;&lt;BR/&gt;Regards,&lt;BR/&gt;&lt;A HREF="http://www.sblsoftware.com/web-distributed.aspx" REL="nofollow"&gt;Distributed Enterprise Application&lt;/A&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/884693698863434433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/884693698863434433'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236667860000#c884693698863434433' title=''/><author><name>SBL</name><uri>http://www.blogger.com/profile/03033902293074133165</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_iURmmyixbUY/SZFEDKoVeYI/AAAAAAAAAAs/6FF_fE-6vIg/S220/logo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2057652597'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-6547710263509897479</id><published>2009-03-10T05:33:00.000+11:00</published><updated>2009-03-10T05:33:00.000+11:00</updated><title type='text'>mod_wsgi is light years better than mod_fcgi.</title><summary type='text'>mod_wsgi is light years better than mod_fcgi.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/6547710263509897479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/6547710263509897479'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236623580000#c6547710263509897479' title=''/><author><name>Doug Napoleone</name><uri>http://www.blogger.com/profile/07331585381804299154</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1311138156'/></entry><entry><id>tag:blogger.com,1999:blog-2363643920942057324.post-231583681177053042</id><published>2009-03-10T00:13:00.000+11:00</published><updated>2009-03-10T00:13:00.000+11:00</updated><title type='text'>You can also use mod_fcgi. At this point it might ...</title><summary type='text'>You can also use mod_fcgi. At this point it might make sense to stop using Apache and use something like lighttpd or nginx.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/231583681177053042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2363643920942057324/781695688333580638/comments/default/231583681177053042'/><link rel='alternate' type='text/html' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html?showComment=1236604380000#c231583681177053042' title=''/><author><name>Harish Mallipeddi</name><uri>http://www.blogger.com/profile/14232074951731924906</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos9.flickr.com/buddyicons/41059471@N00.jpg?1114567053'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html' ref='tag:blogger.com,1999:blog-2363643920942057324.post-781695688333580638' source='http://www.blogger.com/feeds/2363643920942057324/posts/default/781695688333580638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-233782838'/></entry></feed>
