Page MenuHomePhabricator

Webservice being shut down abruptly
Closed, ResolvedPublic

Description

Hello, the webservice of my tool "fengtools" is stopped abruptly from time to time. My error.log includes this which is not very helpful:
2014-11-16 20:37:31: (server.c.1512) server stopped by UID = 0 PID =
13434
How can I know why it was shut down, and who did it (an automatic program I assume)?


Version: unspecified
Severity: major

Details

Reference
bz73502

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:48 AM
bzimport added a project: Toolforge.
bzimport set Reference to bz73502.

Its probably OOMing (Out of memory). The limit is normally 4GB and doing nothing they tend to consume about 2GB

Betacommand is probably correct, that message hints that the service was killed by gridengine, and (unless you deleted the job yourself) it normally only does that when the process grows beyond the memory limit. You may want to keep an eye on your code, and ensure that it doesn't leak memory.

Thanks for the quick response. Will ceetainly do some optimizations. Since the program is a bit resource-intensive, how can I increase the memory limit? I see /use/bin/webservice reads a system file for the limit, so I assume I'll have to use my own copy of the script to start the server?

zhaofengli subscribed.

Okay, I think I've figured it out. While the best way to avoid this problem is to optimise the program, it's possible to increase the memory limit by creating a copy of /usr/bin/webservice and editing it.