fork problem

Michal Kolesar kolisko na penguin.cz
Úterý Prosinec 12 09:20:50 CET 2000


Hi all..

I have often this problem:

Dec 10 20:57:00 localhost sshd[1456]: Accepted password for dre from
::ffff:206.25.208.82 port 4535
Dec 10 20:57:00 localhost sshd[1456]: Could not reverse map address
206.25.208.82.
Dec 10 20:57:01 localhost sshd[1456]: packet_set_maxsize: setting to 4096
Dec 10 20:57:02 localhost PAM_pwdb[1456]: (sshd) session opened for user dre
by (uid=0)
Dec 10 20:57:02 localhost sshd[1456]: Disconnecting: fork failed: Resource
temporarily unavailable
Dec 10 20:57:02 localhost PAM_pwdb[1456]: (sshd) session closed for user dre
Dec 10 20:57:22 localhost sshd[1457]: Accepted password for macros from
::ffff:212.20.121.246 port 1021 ssh2
Dec 10 20:57:24 localhost PAM_pwdb[1457]: (sshd) session opened for user
macros by (uid=0)
Dec 10 20:57:24 localhost sshd[1457]: Disconnecting: fork failed: Resource
temporarily unavailable
Dec 10 20:57:24 localhost PAM_pwdb[1457]: (sshd) session closed for user
macros
Dec 10 20:57:51 localhost sshd[1458]: Accepted password for dre from
::ffff:206.25.208.82 port 4536
Dec 10 20:57:51 localhost sshd[1458]: Could not reverse map address
206.25.208.82.
Dec 10 20:57:52 localhost sshd[1458]: packet_set_maxsize: setting to 4096
Dec 10 20:57:53 localhost PAM_pwdb[1458]: (sshd) session opened for user dre
by (uid=0)
Dec 10 20:57:53 localhost sshd[1458]: Disconnecting: fork failed: Resource
temporarily unavailable
Dec 10 20:57:53 localhost PAM_pwdb[1458]: (sshd) session closed for user dre


In this time i have opened 300-400 processes...

I am using limits.conf for restriction of proceses in group 'limitusers'

my limits.conf file:
@limitusers             hard    nproc           50
@limitusers             hard    maxlogins       3
@limitusers             hard    core            0
@limitusers             hard    rss             5000
@limitusers             hard    priority        5
@limitusers             hard    memlock         5000
@limitusers             hard    cpu             5

there is set 50 processes for each user but nobody have runnig more then 20
processes
in time when I get fork error messages in my log.

I am user 'kolisko' and I am not in 'limitusers' group and I dont have
problem
with fork problem.. but every user from limitusers group does it.

How is it possible when is set limitation to 50 for each limit user and
users
have problem when they have running least than 50 processes? Next thing is
that the problem is by sshd which is running as user 'root'...

Is there a another limitations?

0 root na server proc# uname -a
Linux server 2.2.16 #4 Mon Sep 18 10:32:47 CEST 2000 i586 unknown

Thank You for help!



--
---
Michal Kolesar
kolisko na penguin.cz
http://www.egarden.cz
public server of free unix services





Další informace o konferenci Linux