<?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: sshd takes high cpu in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067752#M602074</link>
    <description>Do you have the "lsof" command installed (a very good tool available from the Porting Archive)?&lt;BR /&gt;You could use "lsof -p 23066" and "lsof -p 15051" to see what files and/or network sockets these processes are accessing.&lt;BR /&gt;&lt;BR /&gt;Note that the problem processes are children of the main sshd process. Sshd forks a child process when it's receiving a connection. If the "privilege separation" mechanism is in use, it will actually fork two processes. &lt;BR /&gt;See the description here:&lt;BR /&gt;&lt;A href="http://www.citi.umich.edu/u/provos/ssh/privsep.html" target="_blank"&gt;http://www.citi.umich.edu/u/provos/ssh/privsep.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As these problem processes are still running as root, it suggests that whatever has caused them to be stuck in their current state has happened almost immediately after the fork.&lt;BR /&gt;&lt;BR /&gt;Does your IPfilter set-up block TCP Reset or ICMP destination-unreachable packets? Blocking off these might cause sshd to be unaware that the client-side has lost the connection. Some versions of SSH seem to get stuck at that point, eating CPU.&lt;BR /&gt;&lt;BR /&gt;(I think I've seen this or very similar behaviour before, but I don't remember enough details. In that case, there was a very strictly-configured firewall between the client and the server.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Mon, 10 Sep 2007 04:18:51 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2007-09-10T04:18:51Z</dc:date>
    <item>
      <title>sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067751#M602073</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;On Hpux 11.11 I found that the sshd is taking up high cpu. Its not the actual daemon /opt/ssh/sbin/sshd but the cpu consuming process is shown up as '/opt/ssh/sbin/sshd -R'.&lt;BR /&gt;&lt;BR /&gt;The recent changes to my system is that I installed IP filter.&lt;BR /&gt;&lt;BR /&gt;Below is the output from ps.&lt;BR /&gt;&lt;BR /&gt;    root 23066  6190 255 10:15:21 ?        852:44 /opt/ssh/sbin/sshd -R&lt;BR /&gt;    root  6190     1  0  Sep  6  ?         0:04 /opt/ssh/sbin/sshd&lt;BR /&gt;    root 15051  6190 255  Sep  8  ?        2122:24 /opt/ssh/sbin/sshd -R&lt;BR /&gt;&lt;BR /&gt;It can be seen that both processes 15051 and 24066 have taken up lot of cpu time.&lt;BR /&gt;Any help on this is highly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay.&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Sep 2007 23:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067751#M602073</guid>
      <dc:creator>Vijay Chakravarthy</dc:creator>
      <dc:date>2007-09-09T23:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067752#M602074</link>
      <description>Do you have the "lsof" command installed (a very good tool available from the Porting Archive)?&lt;BR /&gt;You could use "lsof -p 23066" and "lsof -p 15051" to see what files and/or network sockets these processes are accessing.&lt;BR /&gt;&lt;BR /&gt;Note that the problem processes are children of the main sshd process. Sshd forks a child process when it's receiving a connection. If the "privilege separation" mechanism is in use, it will actually fork two processes. &lt;BR /&gt;See the description here:&lt;BR /&gt;&lt;A href="http://www.citi.umich.edu/u/provos/ssh/privsep.html" target="_blank"&gt;http://www.citi.umich.edu/u/provos/ssh/privsep.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As these problem processes are still running as root, it suggests that whatever has caused them to be stuck in their current state has happened almost immediately after the fork.&lt;BR /&gt;&lt;BR /&gt;Does your IPfilter set-up block TCP Reset or ICMP destination-unreachable packets? Blocking off these might cause sshd to be unaware that the client-side has lost the connection. Some versions of SSH seem to get stuck at that point, eating CPU.&lt;BR /&gt;&lt;BR /&gt;(I think I've seen this or very similar behaviour before, but I don't remember enough details. In that case, there was a very strictly-configured firewall between the client and the server.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 10 Sep 2007 04:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067752#M602074</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-09-10T04:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067753#M602075</link>
      <description>First step would be to fire-up Glance and see in which state (User, System etc) the processes are consuming CPU cycles.  If user, then you might try profiling with Prospect:  &lt;A href="http://www.hp.com/go/prospect" target="_blank"&gt;http://www.hp.com/go/prospect&lt;/A&gt;  If kernel, you might take a tusc trace to see which system calls it is making, or use the suitable screen in Glance.  You might also get some interesting stuff from Prospect in that case as well.</description>
      <pubDate>Tue, 11 Sep 2007 11:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067753#M602075</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2007-09-11T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067754#M602076</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Curious...I'm having exactly the same problem:&lt;BR /&gt;&lt;BR /&gt;System: porsx013                                      Tue Oct  9 10:21:14 2007&lt;BR /&gt;Load averages: 1.74, 1.91, 1.83&lt;BR /&gt;374 processes: 298 sleeping, 52 running, 24 zombies&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0    1.71   5.4%  89.6%   5.0%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 1    1.77  20.1%  42.1%  37.6%   0.2%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 2    1.77   2.2%  93.8%   4.0%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 3    1.72   1.4%  97.4%   1.0%   0.2%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 4    1.55  14.1%  71.2%  14.7%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 5    1.75   2.0%  96.0%   2.0%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 6    1.79   2.6%  93.2%   4.2%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 7    1.82   5.4%  88.9%   5.8%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;---   ----  -----  -----  -----  -----  -----  -----  -----  -----&lt;BR /&gt;avg   1.74   6.6%  84.3%   9.2%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;Memory: 4717528K (4114612K) real, 8630196K (7659064K) virtual, 175272K free  Page# 1/9&lt;BR /&gt;&lt;BR /&gt;CPU TTY  PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND&lt;BR /&gt; 1   ? 22406 root     241 20  5416K    60K run    965:54 78.91 78.77 sshd&lt;BR /&gt; 5   ? 21327 ebs_jm   245 22  7008K  3412K run      0:26 64.76 59.17 map&lt;BR /&gt;&lt;BR /&gt;root@porsx013:/usr/bin# lsof -p 22406&lt;BR /&gt;COMMAND   PID USER   FD   TYPE     DEVICE SIZE/OFF      NODE NAME&lt;BR /&gt;sshd    22406 root  cwd    DIR     64,0x3     8192         2 /&lt;BR /&gt;sshd    22406 root  txt    REG     64,0x6  1351680     40769 /opt (/dev/vg00/lvol6)&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7    36864      5164 /usr/lib/libpam.1&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   749568      9152 /usr/lib/libnsl.1&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x6   135168     18091 /opt/star-ncf-prod/ep_patch/usr/lib/libxti.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7    28672      5504 /usr/lib/libxnet.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   282624     28483 /usr/lib/libm.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   155648     27764 /usr/lib/libsec.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   253952     28715 /usr (/dev/vg00/lvol7)&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   163840      7263 /usr/lib/libk5crypto.sl&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7    20480      7261 /usr/lib/libcom_err.sl&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7  1110016     28716 /usr/lib/libkrb5.sl&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   159744       139 /usr/lib/libpthread.1&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7    24576     45450 /usr/lib/libdld.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7  1826816     45150 /usr/lib/libc.2&lt;BR /&gt;sshd    22406 root  mem    REG     64,0x7   270336     45448 /usr/lib/dld.sl&lt;BR /&gt;sshd    22406 root    0u  IPv4 0x52972580      0t0       TCP porsx013:22-&amp;gt;porsx013:62164 (ESTABLISHED)&lt;BR /&gt;sshd    22406 root    1u  IPv4 0x52972580      0t0       TCP porsx013:22-&amp;gt;porsx013:62164 (ESTABLISHED)&lt;BR /&gt;sshd    22406 root    2u   CHR      3,0x2      0t0        66 /dev/null&lt;BR /&gt;sshd    22406 root    3u  unix 0x4d59c4c0      0t2&lt;BR /&gt;sshd    22406 root    4w  FIFO 0x8c14db08      0t0 653373571&lt;BR /&gt;sshd    22406 root    5u  unix 0x50efe7c0      0t0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2007 04:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/4067754#M602076</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2007-10-09T04:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/7044321#M602077</link>
      <description>&lt;P&gt;Hi I also have the same issue. If any one come across the solution, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load averages: 3.49, 2.23, 2.82&lt;BR /&gt;396 processes: 369 sleeping, 26 running, 1 zombie&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS&lt;BR /&gt;0 3.62 30.5% 0.0% 63.9% 5.6% 0.0% 0.0% 0.0% 0.0%&lt;BR /&gt;1 3.36 48.0% 3.0% 16.7% 32.3% 0.0% 0.0% 0.0% 0.0%&lt;BR /&gt;--- ---- ----- ----- ----- ----- ----- ----- ----- -----&lt;BR /&gt;avg 3.49 39.2% 1.4% 40.4% 18.9% 0.0% 0.0% 0.0% 0.0%&lt;/P&gt;&lt;P&gt;Memory: 2259096K (1111892K) real, 3413572K (1903632K) virtual, 219020K free Pag&lt;BR /&gt;e# 1/36&lt;/P&gt;&lt;P&gt;CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND&lt;BR /&gt;0 ? 2409 root 241 20 5416K 428K run 5135:23 62.49 62.38 sshd&lt;BR /&gt;1 ? 4697 root -16 20 43392K 6448K run 39231:00 4.36 4.35 midaemon&lt;BR /&gt;1 ? 10982 ctmagent 154 20 5816K 1028K sleep 0:00 4.15 2.46 ssh&lt;BR /&gt;0 ? 26320 ctmagent 158 20 3160K 1352K sleep 3:32 1.01 1.01 sh&lt;BR /&gt;1 ? 4715 root 127 20 82932K 34844K sleep 2008:13 0.55 0.55 scopeux&lt;BR /&gt;1 ? 11066 ctmagent 154 20 5372K 524K sleep 0:00 5.64 0.54 ssh&lt;BR /&gt;1 ? 16400 ctmagent 152 20 272M 53344K run 550:37 0.46 0.46 java&lt;BR /&gt;1 ? 37 root 152 20 8032K 8032K run 1128:02 0.41 0.41 vxfsd&lt;BR /&gt;1 ? 4758 root 152 20 312M 81092K run 678:38 0.37 0.37 java&lt;BR /&gt;root@hapinfp3:/&amp;gt;# lsof -p 2409&lt;BR /&gt;COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;sshd 2409 root cwd DIR 64,0x3 8192 2 /&lt;BR /&gt;sshd 2409 root txt REG 64,0x4 1351680 217 /opt/ssh/PA-RISC2.0/sbin/sshd&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 36864 6301 /usr/lib/libpam.1&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 753664 14589 /usr/lib/libnsl.1&lt;BR /&gt;sshd 2409 root mem REG 64,0x4 135168 43658 /opt/star-ncf-prod/ep_patch/usr/lib/libxti.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 28672 6665 /usr/lib/libxnet.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 282624 54 /usr/lib/libm.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 155648 58 /usr/lib/libsec.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 253952 9480 /usr/lib/gss/libgssapi_krb5.sl&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 163840 9483 /usr/lib/libk5crypto.sl&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 20480 9481 /usr/lib/libcom_err.sl&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 1105920 9484 /usr/lib/libkrb5.sl&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 159744 56 /usr/lib/libpthread.1&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 24576 6068 /usr/lib/libdld.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 1826816 6339 /usr/lib/libc.2&lt;BR /&gt;sshd 2409 root mem REG 64,0x6 274432 65 /usr/lib/dld.sl&lt;BR /&gt;sshd 2409 root 0u STSO 21,0x80000e 0t0 86 /dev/tcp-&amp;gt;tcpm-&amp;gt;ip&lt;BR /&gt;sshd 2409 root 1u STSO 21,0x80000e 0t0 86 /dev/tcp-&amp;gt;tcpm-&amp;gt;ip&lt;BR /&gt;sshd 2409 root 2u CHR 3,0x2 0t0 68 /dev/null&lt;BR /&gt;sshd 2409 root 3u unix 0x6d7f7580 0t2&lt;BR /&gt;sshd 2409 root 4w FIFO 0x527cdc88 0t0 1720162046&lt;BR /&gt;sshd 2409 root 5u unix 0x6cf13880 0t0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 02:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/7044321#M602077</guid>
      <dc:creator>RaviKumarB</dc:creator>
      <dc:date>2019-04-30T02:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: sshd takes high cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/7056140#M602078</link>
      <description>&lt;P&gt;Sounds like this:&amp;nbsp;&lt;A title="HP-UX - What Are the sshd &amp;quot;-R&amp;quot; and &amp;quot;-r&amp;quot; Options?" href="https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c01365438" target="_self"&gt;HP-UX - What Are the sshd "-R" and "-r" Options?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 08:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-takes-high-cpu/m-p/7056140#M602078</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2019-07-23T08:32:19Z</dc:date>
    </item>
  </channel>
</rss>

