<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Who is killing my processes? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112857#M733976</link>
    <description>&amp;gt;Is it possible to turn audit and determine who is killing my processes - which script either user does it?&lt;BR /&gt;&lt;BR /&gt;I'm not sure.  I've had it happen to me but never was able to track it down.  It has to do with heavy loads on the system.  Possibly over subscribing swap space?&lt;BR /&gt;I claim if the kernel is going to stab you in the back like that, it should log it in syslog.</description>
    <pubDate>Sat, 07 Jun 2008 20:02:05 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-06-07T20:02:05Z</dc:date>
    <item>
      <title>Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112854#M733973</link>
      <description>In one of the our customer production HP-UX server from time to time at midnight sometimes some processes receive -TERM signal.&lt;BR /&gt;&lt;BR /&gt;I know that customer have a lot of their customized own written scripts in a cron that check some alive status of the critical processes and I'm suspecting that it could be the reason.&lt;BR /&gt;&lt;BR /&gt;Is it possible to turn audit and determine who is killing my processes - which script either user does it?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;BR, Michael.</description>
      <pubDate>Sat, 07 Jun 2008 09:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112854#M733973</guid>
      <dc:creator>Mikhail_7</dc:creator>
      <dc:date>2008-06-07T09:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112855#M733974</link>
      <description>How do you know the processes are killed with a TERM signal? Is there a core file?</description>
      <pubDate>Sat, 07 Jun 2008 12:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112855#M733974</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-06-07T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112856#M733975</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;rename "kill" to "kill.program".&lt;BR /&gt;&lt;BR /&gt;Write a shell-script "kill", &lt;BR /&gt;that dumps some usefull Information, like &lt;BR /&gt;- echo $(date) $(time) &amp;gt;&amp;gt; /var/log/mykill.log&lt;BR /&gt;- whoami  &amp;gt;&amp;gt; /var/log/mykill.log&lt;BR /&gt;- id &amp;gt;&amp;gt; /var/log/mykill.log&lt;BR /&gt;- env  &amp;gt;&amp;gt; /var/log/mykill.log&lt;BR /&gt;and after this calls&lt;BR /&gt;kill.program $*&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Jun 2008 19:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112856#M733975</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2008-06-07T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112857#M733976</link>
      <description>&amp;gt;Is it possible to turn audit and determine who is killing my processes - which script either user does it?&lt;BR /&gt;&lt;BR /&gt;I'm not sure.  I've had it happen to me but never was able to track it down.  It has to do with heavy loads on the system.  Possibly over subscribing swap space?&lt;BR /&gt;I claim if the kernel is going to stab you in the back like that, it should log it in syslog.</description>
      <pubDate>Sat, 07 Jun 2008 20:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112857#M733976</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-07T20:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112858#M733977</link>
      <description>If you are going to use a wrapper as Volker suggested, you should add the "ps -a" and the "echo $*" to the log so that you know which process is getting killed (PID) and by whom (PPID)</description>
      <pubDate>Sun, 08 Jun 2008 13:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112858#M733977</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-06-08T13:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112859#M733978</link>
      <description>&lt;!--!*#--&gt;"man 5 audit"?&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;           process        Log all operations on processes, including&lt;BR /&gt;                          exit(2), fork(2), kill(2), mlock(2), mlockall(2),&lt;BR /&gt;                          munlock(2), munlockall(2), setcontext(2),&lt;BR /&gt;                          setrlimit64(2), sigqueue(2), ulimit64(2), and&lt;BR /&gt;                          vfork(2).&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;I know nothing, but it looks promising.</description>
      <pubDate>Mon, 09 Jun 2008 02:34:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112859#M733978</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-09T02:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112860#M733979</link>
      <description>There is also a support kernel instrumentation available only through hp support</description>
      <pubDate>Mon, 09 Jun 2008 07:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112860#M733979</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2008-06-09T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112861#M733980</link>
      <description>Thank you for the advices.&lt;BR /&gt;&lt;BR /&gt;I've written new kill script and have replaced it with the original one at /usr/bin/kill, here it is:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;export UNIX95=1&lt;BR /&gt;date &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;ps -efxH &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;echo $* &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;echo "\n" &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;/usr/bin/kill_orig $*&lt;BR /&gt;&lt;BR /&gt;Unfortunately it does not write anything to log. I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.&lt;BR /&gt;Isn't it?&lt;BR /&gt;&lt;BR /&gt;Could you tell a bit more regarding &lt;BR /&gt;kernel instrumentation feature?&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 09 Jun 2008 11:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112861#M733980</guid>
      <dc:creator>Mikhail_7</dc:creator>
      <dc:date>2008-06-09T11:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112862#M733981</link>
      <description>&amp;gt;Unfortunately it does not write anything to log.&lt;BR /&gt;&lt;BR /&gt;Some application could be calling kill(2) directly.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.&lt;BR /&gt;&lt;BR /&gt;That was my assumption for my reply.  Are you using chatr(1) or mmap(2) options to oversubscribe swapspace?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;regarding kernel instrumentation feature?&lt;BR /&gt;Why not try Steven's audit(5) suggestion first?</description>
      <pubDate>Mon, 09 Jun 2008 12:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112862#M733981</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-09T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112863#M733982</link>
      <description>&amp;gt;&amp;gt;Unfortunately it does not write anything to log.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Some application could be calling kill(2) directly.&lt;BR /&gt;&lt;BR /&gt;I've tried to use: kill -TERM xxx from console and even this is not using /usr/bin/kill&lt;BR /&gt;Take a look below:&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (211) root% mx | grep mecsla&lt;BR /&gt; F S  UID   PID  PPID  C PRI NI             ADDR   SZ           WCHAN TTY       TIME COMD&lt;BR /&gt; 1 S  401  1699  3203  0 154 20         5336f380  243         4c79d6e ?         0:00 mecslamx&lt;BR /&gt; 1 S  401  1729  3203  0 154 20         76c3f1c0  231         65678ee ?         0:00 mecslamx&lt;BR /&gt; 1 S  401  1770  3203  0 154 20         5c3dae40  231         7428dae ?         0:00 mecslamx&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (212) root% kill -TERM 1699&lt;BR /&gt;msklabss:/ (213) root% kill -9 1729&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (214) root% ll /var/tmp/killBill.log&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Jun  9 19:38 /var/tmp/killBill.log&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (215) root% !mx&lt;BR /&gt;mx | grep mecsla&lt;BR /&gt; F S  UID   PID  PPID  C PRI NI             ADDR   SZ           WCHAN TTY       TIME COMD&lt;BR /&gt; 1 S  401  1770  3203  0 154 20         5c3dae40  231         7428dae ?         0:00 mecslamx&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (216) root% ll /var/tmp/killBill.log&lt;BR /&gt;-rw-rw-rw-   1 root       sys              0 Jun  9 19:38 /var/tmp/killBill.log&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (217) root% /usr/bin/kill -TERM 1770&lt;BR /&gt;msklabss:/ (218) root% ll /var/tmp/killBill.log&lt;BR /&gt;-rw-rw-rw-   1 root       sys          76848 Jun  9 19:40 /var/tmp/killBill.log&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (219) root% which kill&lt;BR /&gt;/usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;msklabss:/ (220) root% cat /usr/bin/kill&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;export UNIX95=1&lt;BR /&gt;date &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;ps -efxH &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;echo $* &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;echo "\n" &amp;gt;&amp;gt; /var/tmp/killBill.log&lt;BR /&gt;/usr/bin/kill_orig $*&lt;BR /&gt;msklabss:/ (221) root%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;I have an assumption that kill signal is sending via the kernel and does not uses /usr/bin/kill at all.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;That was my assumption for my reply. Are you using chatr(1) or mmap(2) options to oversubscribe swapspace?&lt;BR /&gt;&lt;BR /&gt;I do not use chatr or mmap options to oversubscrive swapspace,&lt;BR /&gt;as I know that we do not have problem with system overload either heavy swap space usage as well.&lt;BR /&gt;In our case I'm suspecting that some user-written cron script sometime kills right good processes by mistake either some user is doing that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;regarding kernel instrumentation feature?&lt;BR /&gt;&amp;gt;Why not try Steven's audit(5) suggestion first?&lt;BR /&gt;&lt;BR /&gt;And here we have a problem as well, because to switch on audit feature hp-ux has request to convert to a Trusted System before proceeding and we can't do it as well.</description>
      <pubDate>Mon, 09 Jun 2008 14:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112863#M733982</guid>
      <dc:creator>Mikhail_7</dc:creator>
      <dc:date>2008-06-09T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112864#M733983</link>
      <description>&amp;gt; I've tried to use: kill -TERM xxx from&lt;BR /&gt;&amp;gt; console and even this is not using&lt;BR /&gt;&amp;gt; /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;"kill" is a shell built-in command for many&lt;BR /&gt;shells.&lt;BR /&gt;&lt;BR /&gt;"man sh".&lt;BR /&gt;"man sh-posix" (or whatever).&lt;BR /&gt;&lt;BR /&gt;And any progran can call kill().&lt;BR /&gt;&lt;BR /&gt;"man 2 kill".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; And here we have a problem as well, because&lt;BR /&gt;&amp;gt; to switch on audit feature hp-ux has&lt;BR /&gt;&amp;gt; request to convert to a Trusted System&lt;BR /&gt;&amp;gt; before proceeding and we can't do it as&lt;BR /&gt;&amp;gt; well.&lt;BR /&gt;&lt;BR /&gt;Somtimes you need to use a better operating&lt;BR /&gt;system to get your work done.</description>
      <pubDate>Mon, 09 Jun 2008 16:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112864#M733983</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-09T16:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Who is killing my processes?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112865#M733984</link>
      <description>I still did not find any suitable solution in my case.</description>
      <pubDate>Fri, 27 Jun 2008 19:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-is-killing-my-processes/m-p/5112865#M733984</guid>
      <dc:creator>Mikhail_7</dc:creator>
      <dc:date>2008-06-27T19:48:00Z</dc:date>
    </item>
  </channel>
</rss>

