<div dir="ltr">I have recently run into "Cannot allocate memory" problems with elephant on a production server. Unfortunately when one transaction is too large, it seems to blow the database until a manual recover is done.<br>
<br>The occasional failure is slightly worrisome but it the whole database requiring a manual recover from one extra-large transaction is a scary thought for a live application with thousands of users.<br><br>Why does the memory allocation failure sour the whole database instead of aborting a single transaction? I think that elephant should try to encapsulate this failure, recovering the database or whatever is necessary to make the store usable for the next transaction.<br>
<br>Best,<br>Red Daly<br><br><br><div class="gmail_quote">On Sat, Jan 5, 2008 at 5:02 PM, Victor Kryukov <span dir="ltr"><<a href="mailto:victor.kryukov@gmail.com">victor.kryukov@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;">
<div class="Ih2E3d">On Jan 4, 2008 2:54 AM, Ian Eslick <<a href="mailto:eslick@csail.mit.edu">eslick@csail.mit.edu</a>> wrote:<br>
> Hi Victor,<br>
><br>
> Sounds like your transaction is blowing out the shared memory<br>
> allocated by Berkeley DB to store dirty pages. This is caused by<br>
> transactions that are too large; putting an entire file of data could<br>
> well accomplish this. (We really should change the error message to<br>
> be more informative in these cases).<br>
><br>
> Try pushing with-transaction into the loop in import-movie as follows:<br>
<br>
</div>Thanks for your suggestion, Ian - the problem was solved once I've<br>
moved with-transaction inside the collect-rating-info.<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
elephant-devel site list<br>
<a href="mailto:elephant-devel@common-lisp.net">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>