On Tue, Mar 26, 2013 at 11:37 AM, Serge Koval <[email protected]> wrote:
> Hi,
>
>  I have sockjs-node (0.3.5) server running on top of node.js 0.8.5. It works
> like a broadcast server with redis as a data source. Server is running under
> 'forever' supervisor.
>
>  Everything is fine, except that it exits once per day. There's no stack
> trace, no error messages, etc. It appears that http server stops listening.
>
> This is all I have in the log:
>
> POST /api/624/0haf56ne/xhr_send 1ms 204
> GET /api/466/fc3v1ro_/websocket 1ms (unfinished)
> warn: Forever detected script exited with code: null
> warn: Forever restarting script for 12 time
>
>  Memory usage is constant. It is not leaking file descriptors. There's no
> process.exit() anywhere.
>
>  How can I troubleshoot this issue? Is there a way to find out why process
> exited?

code=null suggests that the process is getting killed by a signal,
e.g. SIGTERM or SIGHUP.

I don't know the first thing about forever but maybe you can
instrument it to also log the signal, it's the second argument to the
child_process 'exit' and 'close' event listeners.

It's possible that the process is aborting or segfaulting.  The easy
way to check that is by turning on core dumps (`ulimit -c unlimited`).
 If you get them, you know the process is terminating abnormally.
Inspect the core dumps in gdb to find out why.

Good luck. :-)

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to