[elephant-devel] BDB hanging with many stalled threads

Red Daly reddaly at gmail.com
Thu Dec 11 06:35:38 UTC 2008


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.

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.

Best,
Red Daly

On Thu, Oct 23, 2008 at 1:10 AM, Red Daly <reddaly at gmail.com> wrote:

> 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:
>
>
> 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.
>
> Red
>
>
> On Sat, Oct 18, 2008 at 1:27 AM, Leslie P. Polzer <sky at viridian-project.de
> > wrote:
>
>>
>> > Unfortunately the standalone deadlock utility provided by BDB does not
>> seem
>> > to resolve this.  I just tried running it with all these hung threads
>> and
>> > somehow the result was a database that needs recovery.  db_stat also
>> > indicates the number of deadlocks is 0.
>> >
>> > This seems to indicate that the problem is not caused by deadlocks.
>>  What do
>> > you think?
>>
>> Let's make sure. After opening the store controller run
>>
>>  (db-bdb::db-env-set-lock-detect
>>    (elephant::controller-environment *store-controller*)
>>    db-bdb::DB_LOCK_DEFAULT)
>>
>> and check whether this still occurs.
>>
>>  Leslie
>>
>>
>> _______________________________________________
>> elephant-devel site list
>> elephant-devel at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/elephant-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20081210/00473f88/attachment.html>


More information about the elephant-devel mailing list