beragadt processzek segítsetek…

Kezdőlap Fórumok Debiannal kapcsolatos kérdések beragadt processzek segítsetek…

7 bejegyzés megtekintése - 1-7 / 7
  • Szerző
    Bejegyzés
  • #2005416
    Bbt
    Felhasználó

      egyes processek beragadnak, pl. az sshd
      [align=right][snapback]121854[/snapback][/align]

      Az sshd szerintem démon.
      konkrétan mi is a bajod?

      #2005417
      khayll
      Felhasználó

        Az sshd szerintem démon.
        konkrétan mi is a bajod?
        [align=right][snapback]121874[/snapback][/align]

        igen, daemon, nade forkol mindig egy ujat magából, ha jön egy user, és ezek ottmaradnak így:

        00:29:36 up 7:14, 2 users, load average: 0.04, 0.02, 0.00
        USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
        khayll pts/0 3e44b061.adsl.en 17:17 6:55m 0.05s 0.00s sshd: khayll [priv]
        khayll pts/2 3e44b061.adsl.en 00:29 0.00s 0.01s 0.00s w

        na itt az elsõ sorbanbenntragadt szerintem az sshd, nem? az már rég timeout-al megszakadt, mégis ott van…

        ps-el igy néz ki:

        607 ? Ss 0:00 /usr/sbin/sshd
        692 ? Ss 0:00 _ sshd: khayll [priv]
        695 ? S 0:00 | _ sshd: khayll@pts/0
        696 pts/0 Ss 0:00 | _ -bash
        701 pts/0 S+ 0:00 | _ bash
        1227 ? Ss 0:00 _ sshd: khayll [priv]
        1230 ? S 0:00 _ sshd: khayll@pts/2
        1231 pts/2 Rs 0:00 _ -bash
        1243 pts/2 R+ 0:00 _ ps -ax -f

        ez nem normális, vagy tévedek?

        #2005418
        Bbt
        Felhasználó

          igen, daemon, nade forkol mindig egy ujat magából, ha jön egy user, és ezek ottmaradnak így:

          607 ?        Ss    0:00 /usr/sbin/sshd
            692 ?        Ss    0:00  _ sshd: khayll [priv]
            695 ?        S      0:00  |  _ sshd: khayll@pts/0
            696 pts/0    Ss    0:00  |      _ -bash
            701 pts/0    S+    0:00  |          _ bash
          1227 ?        Ss    0:00  _ sshd: khayll [priv]
          1230 ?        S      0:00      _ sshd: khayll@pts/2
          1231 pts/2    Rs    0:00          _ -bash
          1243 pts/2    R+    0:00              _ ps -ax -f
          ez nem normális, vagy tévedek?
          [align=right][snapback]121894[/snapback][/align]

          hm.
          egy sshd akkor is van, amikor semmilyen ssh nem fut. Valószínüleg ez az elsõ sor.

          viszont a röbbinek valóban illene eltûnnie, ha becsukod az ssht.
          Ami nekem még furcsa (vagy inkább tõlem különbözõ), hogy a nyitott ssh nálam nem sshd processzként jelenik meg:

          Code:
          2446 ?        Ss     0:00      0   275  3128  1488  0.2 /usr/sbin/sshd
          9620 pts/2    S+     0:00      0    69  3058   516  0.1          _ grep -F ssh
          9550 pts/1    S+     0:00      0   215  3080  1672  0.3          _ ssh eszter

          lehet ezen érdemes elindulni, de nem tudom.
          ssh configban nins erre utaló nyom?
          magával a jelenségge találkoztam már, de igazából soha nem foglalkoztatott…

          #2005419
          khayll
          Felhasználó

            azok a processzek, amik sshd-sek szerintem azért úgy jelennek meg, mert azokból su-ztam, de mostmár van egykét bash-es is…
            és nem tünnek el…

            Code:
            16:03:51 up 14:27,  6 users,  load average: 0.00, 0.00, 0.00
            USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
            khayll   pts/1    3e44b061.adsl.en 09:40    5:45m  0.16s  0.00s sshd: khayll [priv]
            khayll   pts/2    3e44b061.adsl.en 10:46    4:17m  0.24s  0.00s sshd: khayll [priv]
            khayll   pts/3    3e44b061.adsl.en 11:31    4:09m  0.05s  0.00s sshd: khayll [priv]
            khayll   pts/4    3e44b061.adsl.en 12:31    3:10m  0.01s  0.01s -bash
            khayll   pts/5    3e44b061.adsl.en 13:14    2:47m  0.02s  0.02s -bash
            khayll   pts/6    3e44b061.adsl.en 16:03    0.00s  0.01s  0.00s w

            és ps-el így néz ki:

            Code:
             607 ?        Ss     0:00 /usr/sbin/sshd
            1457 ?        Ss     0:00  _ sshd: khayll [priv]
            1460 ?        S      0:00  |   _ sshd: khayll@pts/1
            1461 pts/1    Ss     0:00  |       _ -bash
            1477 pts/1    S+     0:00  |           _ bash
            8969 ?        Ss     0:00  _ sshd: khayll [priv]
            8972 ?        S      0:00  |   _ sshd: khayll@pts/2
            8973 pts/2    Ss     0:00  |       _ -bash
            8977 pts/2    S+     0:00  |           _ bash
            22621 ?        Ss     0:00  _ sshd: khayll [priv]
            22625 ?        S      0:00  |   _ sshd: khayll@pts/3
            22626 pts/3    Ss     0:00  |       _ -bash
            22630 pts/3    S+     0:00  |           _ bash
            4949 ?        Ss     0:00  _ sshd: khayll [priv]
            4952 ?        S      0:00  |   _ sshd: khayll@pts/4
            4953 pts/4    Ss+    0:00  |       _ -bash
            16358 ?        Ss     0:00  _ sshd: khayll [priv]
            16361 ?        S      0:00  |   _ sshd: khayll@pts/5
            16362 pts/5    Ss+    0:00  |       _ -bash
            16547 ?        Ss     0:00  _ sshd: khayll [priv]
            16550 ?        S      0:00      _ sshd: khayll@pts/6
            16551 pts/6    Rs     0:00          _ -bash
            16556 pts/6    R+     0:00              _ ps -ax -f

            nem értem…

            #2005420
            khayll
            Felhasználó

              megvan a megoldás…

              a KeepAlive no -ra volt állítva, mostmár csak azt nem tudom miért…

              TCPKeepAlive
              Specifies whether the system should send TCP keepalive messages to the other side. If they are sent, death of the connec-
              tion or crash of one of the machines will be properly noticed. However, this means that connections will die if the route
              is down temporarily, and some people find it annoying. On the other hand, if TCP keepalives are not sent, sessions may hang
              indefinitely on the server, leaving „ghost” users and consuming server resources.

              The default is „yes” (to send TCP keepalive messages), and the server will notice if the network goes down or the client
              host crashes. This avoids infinitely hanging sessions.

              To disable TCP keepalive messages, the value should be set to „no”
              [code]
              TCPKeepAlive
              Specifies whether the system should send TCP keepalive messages to the other side. If they are sent, death of the connec-
              tion or crash of one of the machines will be properly noticed. However, this means that connections will die if the route
              is down temporarily, and some people find it annoying. On the other hand, if TCP keepalives are not sent, sessions may hang
              indefinitely on the server, leaving „ghost” users and consuming server resources.

              The default is „yes” (to send TCP keepalive messages), and the server will notice if the network goes down or the client
              host crashes. This avoids infinitely hanging sessions.

              To disable TCP keepalive messages, the value should be set to „no”

              #2005421
              Bbt
              Felhasználó

                megvan a megoldás…
                a KeepAlive no -ra volt állítva, mostmár csak azt nem tudom miért…
                [align=right][snapback]122273[/snapback][/align]

                A megoldást te magad írtad le:

                The default is „yes” (to send TCP keepalive messages), and the server will notice if the network goes down or the client host crashes.  This avoids infinitely hanging sessions.
                to disable TCP keepalive messages, the value should be set to „no”
                [align=right][snapback]122273[/snapback][/align]

                #1878719
                csaba
                Felhasználó

                  Hello!

                  Az a problámám, hogy beragadnak a processek, forditottam még régebben egy 2.6.5 kernelt, és most vettem elõ a gépet, és felfigyeltem rá, hogy egyes processek beragadnak, pl. az sshd, abban az esetben, ha otthagyom a terminált, és timeout-ol.

                  és sehogy sem tudom megoldani a dolgot, találkozott már valaki ilyennel?

                  help help

                  üdv,
                  Khayll

                7 bejegyzés megtekintése - 1-7 / 7
                • Be kell jelentkezni a hozzászóláshoz.