As it turns out, this solution has also turned out to be inadequate.  For the past few months I have been experiencing the same sort of issues I originally described.  Every few days I find SBCL taking up 100% of the CPU and a hundred Hunchentoot threads stalled in the web server.  When a thread is killed in lisp, the database demands recovery.  the BDB error file does not display anything unusual, and I have a db_deadlock and db_checkpoint command executing every minute to resolve deadlocks and checkpoint the database.<br>
<br>Once again this is with the release version of elephant and BDB 4.5.  I suppose the most helpful thing would be a program that replicates this behavior, which I will try to get to at some point.<br><br>Best,<br>Red Daly<br>
<br><div class="gmail_quote">On Thu, Oct 23, 2008 at 1:10 AM, Red Daly <span dir="ltr"><<a href="mailto:reddaly@gmail.com">reddaly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This appears to have resolved the problem.  The server has been running for the past several days with no database crashes.  The only unusual behavior is an occasional condition being raised that looks like this:<br><br><br>
Thanks for the fix.  This remaining issue does not seem to happen too much so I can live with it.  It simply belongs in the documentary record.<br><font color="#888888">
<br>Red</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Sat, Oct 18, 2008 at 1:27 AM, Leslie P. Polzer <span dir="ltr"><<a href="mailto:sky@viridian-project.de" target="_blank">sky@viridian-project.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
> Unfortunately the standalone deadlock utility provided by BDB does not seem<br>
> to resolve this.  I just tried running it with all these hung threads and<br>
> somehow the result was a database that needs recovery.  db_stat also<br>
> indicates the number of deadlocks is 0.<br>
><br>
> This seems to indicate that the problem is not caused by deadlocks.  What do<br>
> you think?<br>
<br>
</div>Let's make sure. After opening the store controller run<br>
<br>
  (db-bdb::db-env-set-lock-detect<br>
    (elephant::controller-environment *store-controller*)<br>
    db-bdb::DB_LOCK_DEFAULT)<br>
<br>
and check whether this still occurs.<br>
<div><div></div><div><br>
  Leslie<br>
<br>
<br>
_______________________________________________<br>
elephant-devel site list<br>
<a href="mailto:elephant-devel@common-lisp.net" target="_blank">elephant-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/elephant-devel" target="_blank">http://common-lisp.net/mailman/listinfo/elephant-devel</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>