<div><font face="georgia">From the crash dump viewer, I have noticed that the stack+heap size and message queue lenght are high for some processes.</font></div>
<div><font face="georgia"></font> </div>
<div>
<table cellpadding="4" border="4">
<tbody>
<tr>
<th><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=pid"><font face="georgia" size="2">Pid</font></a></th>
<th><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=name_func"><font face="georgia" size="2">Name/Spawned as</font></a></th>
<th><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=state"><font face="georgia" color="#810081" size="2">State</font></a></th>
<th><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=reds"><font face="georgia" color="#810081" size="2">Reductions</font></a></th>
<th><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=mem"><font face="georgia" color="#810081" size="2">Stack+heap</font></a></th>
<th><font size="+1"><em><a href="http://localhost:8888/cdv_erl/crashdump_viewer/sort_procs?sort=msg_q_len"><font face="georgia" color="#810081" size="2">MsgQ Length</font></a></em><font face="georgia"> </font></font></th>
</tr>
<tr>
<td><a href="http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=<0.128.0>"><font face="verdana"><0.128.0></font></a></td>
<td><font face="georgia">controling_process</font></td>
<td><font face="georgia">Waiting</font></td>
<td align="right"><font face="verdana">162446666</font></td>
<td align="right"><font face="verdana">10946</font></td>
<td align="right"><font face="verdana">380465</font></td></tr>
<tr>
<td><a href="http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=<0.60.0>"><font face="verdana" color="#810081"><0.60.0></font></a></td>
<td><font face="georgia">logwriter</font></td>
<td><font face="georgia">Garbing (limited info)</font></td>
<td align="right"><font face="verdana">12549099</font></td>
<td align="right"><font face="verdana">93416095</font></td>
<td align="right"><font face="verdana">272345</font></td></tr></tbody></table></div>
<div><br><font face="georgia">Here, the <em>logwriter</em> uses ODBC connectivity and write the log to MS SQL DB.</font></div>
<div><font face="georgia">All the other process in this application uses <em>logwriter </em>process to write log.</font><br> </div>
<div><span class="gmail_quote">On 10/26/06, <b class="gmail_sendername">Raimo Niskanen</b> <<a href="mailto:raimo+erlang-questions@erix.ericsson.se">raimo+erlang-questions@erix.ericsson.se</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">It seems your application has a process that is growing continously,<br>and after 15 hours its attemt to allocate a 356 MByte heap failed
<br>due to insufficient memory.<br><br>Your total allocated memory is 1060 MByte of which roughly 356 MByte<br>should be the old heap of the offendng process, leaving 704 MByte<br>for the rest of the beam emulator. That is also a large emulator.
<br>Is your application deliberately using lots of memory?<br><br>You can use the crashdump_viewer to inspect the crashdump and find out<br>more about the offending process. You can also use 'top' from another<br>OS shell while your application runs to verify that the beam
<br>emulator is growing continously and slowly, that being a fatal problem.<br><br>The beam emulator's OS process ID can be found with os:getpid().<br><br>On Thu, Oct 26, 2006 at 11:39:13AM +0530, Surindar Sivanesan wrote:
<br>> Dear all,<br>><br>> I'm using erlang emulator version 5.4.3 for running an application that has<br>> to be run round the clock.<br>> The application has ran perfectly for more than 15 hours.<br>> Then the erlang shell is terminated abnormally.
<br>> The general information of the crash report is<br>><br>>  Slogan eheap_alloc: Cannot allocate 373664380 bytes of memory (of type<br>> "heap"). Node name 'nonode@nohost' Crashdump created on Thu Oct 26 08:48:46
<br>> 2006 System version Erlang (BEAM) emulator version 5.4.3 [threads:0]<br>> Compiled<br>> Wed Dec 15 12:59:41 2004 Memory allocated 1111921780 bytes Atoms 5644<br>> Processes<br>> 716 ETS tables 76 Funs 370
<br>><br>> Whether any latest erlang version can solve this problem?<br>> Is there any settings available to solve this problem?<br>> I'm running erlang using werl.exe; Whether running erlang using erl.exe will
<br>> show any difference?<br>> Please clarify...<br>> Thanks in advance.<br>><br>> --<br>> with regards,<br>> S.Surindar<br><br>> _______________________________________________<br>> erlang-questions mailing list
<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
<br><br>--<br><br>/ Raimo Niskanen, Erlang/OTP, Ericsson AB<br></blockquote></div><br><br clear="all"><br>-- <br>with regards,<br>S.Surindar