1

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 ?

user2681176
  • 11
  • 1
  • 3

1 Answers1

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