<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: hanging on by a thread</title>
	<atom:link href="http://dossy.org/2004/09/hanging-on-by-a-thread/feed/" rel="self" type="application/rss+xml" />
	<link>http://dossy.org/2004/09/hanging-on-by-a-thread/</link>
	<description>Everything that comes out of Dossy, from the strange to the banal.</description>
	<lastBuildDate>Fri, 27 Jan 2012 14:30:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-56</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Tue, 21 Dec 2004 04:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-56</guid>
		<description>I use tcl8.4.0 instead of tcl8.4.7, it&#039;s ok, haha......</description>
		<content:encoded><![CDATA[<p>I use tcl8.4.0 instead of tcl8.4.7, it&#8217;s ok, haha&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-55</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Mon, 13 Dec 2004 10:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-55</guid>
		<description>I am not running OpenACS. Only I use &quot;ab -n300 -c300 http://server/index.html&quot;, my server get a growing memory resident and after some spare time, nsd&#039;s resident memory did not resume yet. I use aolserver3.5.11 and tcl8.4.7, only request static html pages, the result is the same. What is the matter with aolserver or tcl??</description>
		<content:encoded><![CDATA[<p>I am not running OpenACS. Only I use &#8220;ab -n300 -c300 <a href="http://server/index.html" rel="nofollow">http://server/index.html</a>&#8220;, my server get a growing memory resident and after some spare time, nsd&#8217;s resident memory did not resume yet. I use aolserver3.5.11 and tcl8.4.7, only request static html pages, the result is the same. What is the matter with aolserver or tcl??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-54</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Tue, 07 Dec 2004 14:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-54</guid>
		<description>Definitely sounds like you have a memory leak somewhere.  Are you running OpenACS or is everything code you wrote?</description>
		<content:encoded><![CDATA[<p>Definitely sounds like you have a memory leak somewhere.  Are you running OpenACS or is everything code you wrote?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-53</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Tue, 07 Dec 2004 11:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-53</guid>
		<description>My aolserver has a core file everyday. Gdb&#039;s result is:
(gdb) where
#0  0x4017b801 in __kill () from /lib/i686/libc.so.6
#1  0x4011e61b in raise (sig=6) at signals.c:65
#2  0x4017cd82 in abort () at ../sysdeps/generic/abort.c:88
#3  0x400d3651 in Tcl_PanicVA () at eval.c:41
#4  0x400d3674 in Tcl_Panic () at eval.c:41
#5  0x40064e28 in NsThreadFatal () at eval.c:41
#6  0x40066e90 in NsCreateThread () at eval.c:41
#7  0x40065c3a in Ns_ThreadCreate () at eval.c:41
#8  0x4003e791 in SchedThread () at eval.c:41
#9  0x40065cd5 in NsThreadMain () at eval.c:41
#10 0x40067264 in ThreadMain () at eval.c:41
#11 0x4011bbfd in pthread_start_thread (arg=0x404cac00) at manager.c:262

There are 5 million requests to this aolserver 3.5.11 downloaded from sourceforge. Before create the core file, nsd use memory grow to 2G. The top result like this:

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
20668 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:04 nsd
20669 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:07 nsd
20670 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:05 nsd
20671 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:04 nsd

I think whether my so file has some memory leak or tcl thread library has. If a thread cleanuped, wether memory it used is all released??

Or this server pressure is too big, so cause this problem??</description>
		<content:encoded><![CDATA[<p>My aolserver has a core file everyday. Gdb&#8217;s result is:<br />
(gdb) where<br />
#0  0x4017b801 in __kill () from /lib/i686/libc.so.6<br />
#1  0x4011e61b in raise (sig=6) at signals.c:65<br />
#2  0x4017cd82 in abort () at ../sysdeps/generic/abort.c:88<br />
#3  0x400d3651 in Tcl_PanicVA () at eval.c:41<br />
#4  0x400d3674 in Tcl_Panic () at eval.c:41<br />
#5  0x40064e28 in NsThreadFatal () at eval.c:41<br />
#6  0x40066e90 in NsCreateThread () at eval.c:41<br />
#7  0x40065c3a in Ns_ThreadCreate () at eval.c:41<br />
#8  0x4003e791 in SchedThread () at eval.c:41<br />
#9  0x40065cd5 in NsThreadMain () at eval.c:41<br />
#10 0&#215;40067264 in ThreadMain () at eval.c:41<br />
#11 0x4011bbfd in pthread_start_thread (arg=0x404cac00) at manager.c:262</p>
<p>There are 5 million requests to this aolserver 3.5.11 downloaded from sourceforge. Before create the core file, nsd use memory grow to 2G. The top result like this:</p>
<p>  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND<br />
20668 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:04 nsd<br />
20669 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:07 nsd<br />
20670 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:05 nsd<br />
20671 xmail      9   0 1292M 1.3G  2524 S     0.0 34.6   0:04 nsd</p>
<p>I think whether my so file has some memory leak or tcl thread library has. If a thread cleanuped, wether memory it used is all released??</p>
<p>Or this server pressure is too big, so cause this problem??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-52</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Wed, 01 Dec 2004 14:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-52</guid>
		<description>If you&#039;re using a modern kernel (I&#039;m using a 2.6 kernel on Debian Linux) you can set Linux&#039;s maxthreads:

&lt;blockquote&gt;
    # sysctl kernel.threads-max&lt;br /&gt;
    kernel.threads-max = 16383
&lt;/blockquote&gt;

AOLserver&#039;s maxthreads ought to be limited by the OS&#039;s thread max limit, sure.  But, if you can raise the OS limit, AOLserver should be able to grow with it.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using a modern kernel (I&#8217;m using a 2.6 kernel on Debian Linux) you can set Linux&#8217;s maxthreads:</p>
<blockquote><p>
    # sysctl kernel.threads-max<br />
    kernel.threads-max = 16383
</p></blockquote>
<p>AOLserver&#8217;s maxthreads ought to be limited by the OS&#8217;s thread max limit, sure.  But, if you can raise the OS limit, AOLserver should be able to grow with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-51</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Wed, 01 Dec 2004 10:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-51</guid>
		<description>I want to ask you a question: is the maxthread of aolserver limited by linux&#039;s maxthread 256 limit? Can I set maxthread to 800?Thanks.</description>
		<content:encoded><![CDATA[<p>I want to ask you a question: is the maxthread of aolserver limited by linux&#8217;s maxthread 256 limit? Can I set maxthread to 800?Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-50</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Mon, 15 Nov 2004 02:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-50</guid>
		<description>On RedHatlinux7.1 and kernel2.4.23, though I try so much method, there is no core file yet when aolserver down if it has started up using /etc/inittab. Then, I try it on RedHat Fedora core 2 and kernel2.6.5, it&#039;s ok, haha......
I think the core files have something related to platform and kernel version.</description>
		<content:encoded><![CDATA[<p>On RedHatlinux7.1 and kernel2.4.23, though I try so much method, there is no core file yet when aolserver down if it has started up using /etc/inittab. Then, I try it on RedHat Fedora core 2 and kernel2.6.5, it&#8217;s ok, haha&#8230;&#8230;<br />
I think the core files have something related to platform and kernel version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-49</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Fri, 12 Nov 2004 14:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-49</guid>
		<description>You might want to try something like this in your /etc/inittab:

&lt;blockquote&gt;wm:235:respawn:/bin/sh -c &quot;ulimit -c unlimited; /usr/local/aolserver/bin/nsd -it /usr/local/aolserver/sample-config.tcl -u xmail -g xmail&quot;&lt;/blockquote&gt;

If this doesn&#039;t work, then your problem may be something else: the &quot;xmail&quot; user may not have permission to write the corefile -- make sure directory permissions are correct under /usr/local/aolserver so that the &quot;xmail&quot; user can write its corefile there.</description>
		<content:encoded><![CDATA[<p>You might want to try something like this in your /etc/inittab:</p>
<blockquote><p>wm:235:respawn:/bin/sh -c &#8220;ulimit -c unlimited; /usr/local/aolserver/bin/nsd -it /usr/local/aolserver/sample-config.tcl -u xmail -g xmail&#8221;</p></blockquote>
<p>If this doesn&#8217;t work, then your problem may be something else: the &#8220;xmail&#8221; user may not have permission to write the corefile &#8212; make sure directory permissions are correct under /usr/local/aolserver so that the &#8220;xmail&#8221; user can write its corefile there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weiqiong</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-48</link>
		<dc:creator>weiqiong</dc:creator>
		<pubDate>Fri, 12 Nov 2004 09:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-48</guid>
		<description>Today, I start aolserver(added prctl call) through putting &quot;./bin/nsd -t ./sample-config.tcl -u xmail&quot; on console, I can get core file when it down, how kind you are. But, if I start aolserver through adding line &quot;wm:235:respawn:/usr/local/aolserver/bin/nsd -it /usr/local/aolserver/sample-config.tcl -u xmail -g xmail&quot; in file /etc/inittab, I find no core file when it down. How can I get core file in this auto start-up mode?
It runs on Redhatlinux7.1 and kernel2.4.23.</description>
		<content:encoded><![CDATA[<p>Today, I start aolserver(added prctl call) through putting &#8220;./bin/nsd -t ./sample-config.tcl -u xmail&#8221; on console, I can get core file when it down, how kind you are. But, if I start aolserver through adding line &#8220;wm:235:respawn:/usr/local/aolserver/bin/nsd -it /usr/local/aolserver/sample-config.tcl -u xmail -g xmail&#8221; in file /etc/inittab, I find no core file when it down. How can I get core file in this auto start-up mode?<br />
It runs on Redhatlinux7.1 and kernel2.4.23.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2004/09/hanging-on-by-a-thread/comment-page-1/#comment-47</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Thu, 11 Nov 2004 14:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000060.html#comment-47</guid>
		<description>Line 398 in nsd/nsmain.c rev 1.59.</description>
		<content:encoded><![CDATA[<p>Line 398 in nsd/nsmain.c rev 1.59.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 1/14 queries in 0.030 seconds using apc
Object Caching 383/387 objects using apc

Served from: dossy.org @ 2012-02-08 21:31:04 -->
