<div dir="ltr">Hi Kazu, <div><br></div><div style>What sort of workload was the mighty server under during those 1 or 2 days while you waited for it to become unresponsive. I.e. was this a production web server? Or were you generating requests at some frequency or leaving it mostly idle? </div>
<div style><br></div><div style>-Andi</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 6:29 PM, Andreas Voellmy <span dir="ltr">&lt;<a href="mailto:andreas.voellmy@gmail.com" target="_blank">andreas.voellmy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Kazu, thanks for noticing this! I will try to recreate it on my server as well. <div><br></div><div>-Andi</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 3, 2013 at 5:57 PM, Johan Tibell <span dir="ltr">&lt;<a href="mailto:johan.tibell@gmail.com" target="_blank">johan.tibell@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi Kazu,<div class="gmail_extra"><br><div class="gmail_quote"><div>On Tue, Sep 3, 2013 at 2:52 PM, Kazu Yamamoto <span dir="ltr">&lt;<a href="mailto:kazu@iij.ad.jp" target="_blank">kazu@iij.ad.jp</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As I said before, I started running HTTP server using Mio in the real<br>
world. Unfortunately, the daemon is not stable.<br>
<br>
After one day or so, the server cannot accept any HTTP requests.  No<br>
error messages from the server.<br>
<br>
The server is alive. To terminate the server (running in a &quot;screen&quot;<br>
terminal), single Ctrl-c is not enough. Typing Ctrl-c again terminates<br>
the server.<br></blockquote><div><br></div></div><div>Could you run an strace on the process in this state so we can get an idea what it&#39;s doing?</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




After several tests, I&#39;m getting convinced that this occurs only when<br>
+RTS -N&lt;x&gt; is specified (where &lt;x&gt; &gt;= 2). The server runs well if +RTS<br>
-N&lt;x&gt; is not specified.<br></blockquote><div><br></div></div><div>That indicates that the problem is with the threaded RTS and perhaps with the IO manager.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



My question: if the program complied with GHC needs double Ctrl-c to<br>
terminate, what is the situation of the program?<br></blockquote><div><br></div></div><div>If Ctrl+C generates an exception (does it?) there could be an overzealous exception catcher somewhere that catches all exceptions, including your Ctrl+C.</div>

<div>

<div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
P.S.<br>
<br>
It seems to me that the server also is leaking space. The server is<br>
getting fatter gradually.</blockquote><div><br></div></div><div>Could you use the profiler to see what type of objects are leaking?</div><div> </div></div></div></div>
<br></div></div>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>