<div dir="ltr"><div><font face="arial, helvetica, sans-serif">Here is the full command used to start ejabberd, as one would get from ps -ef:</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">/home/goodson/goodson/usr/local/lib/erlang/erts-5.10.1/bin/beam.smp -K true -P 250000 -A64 -sbt ps -- -root /home/goodson/goodson/usr/local/lib/erlang -progname start.sh -- -home /home/jamie -- -name <a href="mailto:ejabberd@jamie.djrd.dowjones.net">ejabberd@jamie.djrd.dowjones.net</a> -setcookie <cookie> -noshell -noinput -config /home/jamie/goodson/opt/svc.ejabberd/ejabberd/etc/ejabberd/app.config -pa /home/jamie/goodson/opt/svc.ejabberd/ejabberd/lib/ejabberd/ebin -mnesia dir "/home/jamie/goodson/var/lib/ejabberd/<a href="mailto:database@jamie.kingsbery.net">database@jamie.kingsbery.net</a>" -kernel inet_dist_listen_min 4200 inet_dist_listen_max 4210 -s lager -s sighandler -s ejabberd -s ecrn_app manual_start -sasl sasl_error_logger -smp enable -mnesia dc_dump_limit 40 dump_log_write_threshold 50000 no_table_loaders 50 extra_db_nodes ['<a href="mailto:ejabberd@jamie0.kingsbery.net">ejabberd@jamie0.kingsbery.net</a>'] -s mnesia start</font><br>
</div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">As you can see there's no -heart. Also, if you ps -ef | grep heart, there is no heart process running. But, as I mentioned earlier, the core dump shows heart port as non-null.</font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 3:24 AM, Samuel <span dir="ltr"><<a href="mailto:samuelrivas@gmail.com" target="_blank">samuelrivas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How are you running your erlang node? Heart should not start unless<br>
explicitly started, as far as I know<br>
<div><div class="h5"><br>
On 11 November 2013 17:13, James Kingsbery <<a href="mailto:06jameskingsbery@gmail.com">06jameskingsbery@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I'm relatively new to Erlang and there's a problem I don't quite understand.<br>
> I'm running ejabberd, and every so often it crashes. To figure out why it<br>
> crashed, I know to look in the erl_crash.dump. The problem is, there doesn't<br>
> seem to be any erl_crash.dump file. There is a core dump file though.<br>
> Loading it into gdb and running "bt full," here are the top two frames:<br>
><br>
> (gdb) bt full<br>
> #0 0x000000000054df83 in prepare_crash_dump (secs=<optimized out>) at<br>
> sys/unix/sys.c:735<br>
> max = <optimized out><br>
> env = "\005", '\000' <repeats 15 times>"\200, \373!ڴ"<br>
> heart_port = 0x7fb46f31eab0<br>
> hp = 0x7fb4d6efb938<br>
> heart_fd = {865035, -1}<br>
> has_heart = 0<br>
> i = <optimized out><br>
> envsz = <optimized out><br>
> heap = {4460060, 140412855877120, 1}<br>
> list = 18446744073709551611<br>
> #1 erts_sys_prepare_crash_dump (secs=<optimized out>) at sys/unix/sys.c:780<br>
><br>
> So, it appears that it crashed while it was trying to write the crash dump,<br>
> but didn't get all the way. I did some research, and it sounds a lot like a<br>
> problem that had been posted earlier<br>
> (<a href="https://groups.google.com/forum/#!msg/erlang-programming/XH2Uly6hsLY/aeR2Yx2UkZMJ" target="_blank">https://groups.google.com/forum/#!msg/erlang-programming/XH2Uly6hsLY/aeR2Yx2UkZMJ</a>).<br>
> Heart was not enabled on the command line, which means this shouldn't be the<br>
> problem, but... in the core dump, heart_port is set to something non-null.<br>
> This should mean that heart is lurking somewhere, shouldn't it? If so, is<br>
> there a way to tell heart to *really* not run?<br>
><br>
> Any help anyone has to offer would be greatly appreciated.<br>
><br>
> Best,<br>
> Jamie<br>
><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://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Samuel<br>
</font></span></blockquote></div><br></div>