My system has enough memory, is there memory limit of erlang vm?<br>(I run the server at 32bit os with pae patch, and the problem did not arise at 64bit os)<br><br><div class="gmail_quote">2012/9/5 Michael Turner <span dir="ltr"><<a href="mailto:michael.eugene.turner@gmail.com" target="_blank">michael.eugene.turner@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Sep 5, 2012 at 5:33 PM, Dan Gudmundsson <<a href="mailto:dangud@gmail.com">dangud@gmail.com</a>> wrote:<br>

> Is it a bag table, If so how unique are your keys?<br>
><br>
> Do you have an index on table, if so how unique are the secondary keys?<br>
><br>
> Insertion time in bags are linear, (and indices are bag tables).<br>
<br>
</div>Dan, that would explain a relatively smooth degradation in<br>
performance, as size goes up. What's being reported here doesn't sound<br>
like that. Quantum leaps in execution time are often caused by a level<br>
of the memory hierarchy getting maxed out, by something that's doing a<br>
comprehensive scan of data that, up to a point, fits in that level of<br>
the hierarchy. With CPU load going to (near-) zero, sounds like the<br>
level is that of virtual memory: thrashing, I/O bound through<br>
page-replacement. Even if that's the case here, the mystery is why<br>
deleting some records doesn't "fix" the problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
-michael turner<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> On Wed, Sep 5, 2012 at 8:02 AM, Solomon <<a href="mailto:solomon.wzs@gmail.com">solomon.wzs@gmail.com</a>> wrote:<br>
>> I set up a web server with erlang and use mnesia to save the session.<br>
>> I test server, at beginning, system run well and cpu load were about 90%.<br>
>> Whe session table size reached a certain value, most web requests were<br>
>> failure, and cpu were idle. I delete some records in session table, but it<br>
>> were not worked, then I used mnesia:clear_table/1 to clear session, system<br>
>> run normal again.<br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
>><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>