I run the python program which is a server that receive data from client; But after few minutes, the process was killed by system; How can I know the real reason ?
Asked
Active
Viewed 6,803 times
1
-
This could be useful: http://stackoverflow.com/questions/726690/who-killed-my-process-and-why?rq=1 – Alma Do Aug 15 '13 at 07:49
-
did the process terminate? or was it killed?how did you verify? – Abhishek Aug 15 '13 at 07:49
-
How do you handle requests? Do you start threads or subprocesses? – Aaron Digulla Aug 15 '13 at 07:55
-
1Is your server on linux? Have you look at `/var/log/kern.log`? – Oscerd Aug 15 '13 at 08:18
1 Answers
1
The exact log file varies dependingon distribution and configuration, but if you do
ls -ldrat /var/log/*
it will show the most recently edited logfiles at the bottom. The files messages
,dmesg
and daemon
are all likely sources of information.
Possible reasons are:
- memory exception (i.e. segfault)
- process limits breach (to many File descriptors or processes being opened) - check
/etc/security/limits.conf
and surrounding files - SElinux (if enabled) - that should have been logged to messages.

Oliver Matthews
- 7,497
- 3
- 33
- 36