<p>Hi. Ulf W.</p><p>I was facing the win2003 server memory problem whether erlang or C#. I will check your links. </p><p>Thank you for sharing.</p><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 5:53 AM, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@wiger.net">ulf@wiger.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If the erlang VM gets an OutOfMemoryException, it will terminate.<br>
<br>
If both Erlang and C# get an OOM exception at around 1.3G,<br>
perhaps you should review your settings in Windows 2003?<br>
<br>
I've not used Windows Server 2003, but it has a lot of weird<br>
stuff like application recycling etc, in order to protect itself against<br>
runaway processes.<br>
<br>
<a href="http://www.ironspeed.com/Designer/5.2.1/WebHelp/Part_II/Windows_2003_Application_Performance_Suggestions.htm" target="_blank">http://www.ironspeed.com/Designer/5.2.1/WebHelp/Part_II/Windows_2003_Application_Performance_Suggestions.htm</a><br>
<br>
Perhaps you have some system settings limiting the available<br>
memory for the application?<br>
<br>
BR,<br>
Ulf W<br>
<br>
2009/2/11 Yang Zhang <<a href="mailto:getyourcontacts@gmail.com">getyourcontacts@gmail.com</a>>:<br>
<div><div class="Wj3C7c">> After 2 weeks programming and running with erlang program, I got lots<br>
> of memory error and erl crashed more than 50 times.<br>
><br>
> I was trying to run 400 processes + mnesia on one node. The 400<br>
> processes was designed to scrape data from web then save them to<br>
> mnesia database.<br>
> At first, after about 2 or 3 hours running, I found erl crashed(not<br>
> program). Then I restart then 2 or 3 hours erl crashed again.<br>
> I found the erl process consume about 1.3G memory then it crashed, I<br>
> start to wonder if there are some things wrong with too many<br>
> processes. So I minus to 200 processes and split them to 10 nodes,<br>
> with run 20 processes and the main one running mnesia database.<br>
><br>
> Things went well untill 2 days later, I found the main erl node<br>
> crashed again. After restart it, after 1 or 2 minutes it crashed<br>
> again. Eventually I found it is the table type's problem, so I changed<br>
> data type from disc_* to disc_only. Then problem solved.<br>
><br>
> Then it keeps running for 4 days, everything goes well until I want to<br>
> check how many data I have. So I open table viewer:<br>
> tv:start().<br>
> The see there are 6M records in my table, quite happy. Then<br>
> double-click, both node crashed. Sign~~<br>
><br>
> I got clever. Now I never opened that table. I choose a small one<br>
> which only have 120K records. Open it. No crash. Safty. The search for<br>
> some words, only 2K. OK. No crash. Then search for another one, the<br>
> number is climbing, when it hits 4K. oh My god. Both nodes crash again<br>
> only show me the ugly<br>
><br>
> Crash dump was written to: erl_crash.dump<br>
> eheap_alloc: Cannot allocate 373662860 bytes of memory (of type "heap").<br>
><br>
><br>
> damm~~~<br>
><br>
> I am using C#/SqlServer to develop program. I haven't seen anytime<br>
> sqlserver open a table with 6M table will crash itself, I even tried<br>
> to open a 50M records table.<br>
> Why erl system so volunerable?<br>
><br>
> Is crash the better way than only ternimate the problem process? Don't know why.<br>
><br>
> Also I have fell in love with erlang, but its so unstable behavior<br>
> make it far away from my commerial program.<br>
><br>
> Any option?<br>
><br>
><br>
> <a href="http://harbork.com/Is-mnesia-erlang-ETP-strong-enough/Is-mnesia-erlang-ETP-strong-enough-4b4vyEV84t2fjviIJHLw.html" target="_blank">http://harbork.com/Is-mnesia-erlang-ETP-strong-enough/Is-mnesia-erlang-ETP-strong-enough-4b4vyEV84t2fjviIJHLw.html</a><br>
</div></div>> _______________________________________________<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" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
</blockquote></div><br>