Max telnet sessions Redhat AS2.1

 
Geoff Dunk_1
Occasional Advisor

Max telnet sessions Redhat AS2.1

I am having trouble with telent sessions failing at about 120 when connecting to our RH AS2.1. We are performance testing our machines and I am getting the error:
xinetd[1037]: telnet: fork failed: Cannot allocate memory (errno = 12)
I need to connect to the machine with around 2000 sessions. Can anyone out there help please?
12 REPLIES 12
Geoff Dunk_1
Occasional Advisor

Re: Max telnet sessions Redhat AS2.1

I have tried the CONFIG_UNIX98_PTY_COUNT option, but this is an invalid parameter under AS2.1.
Ivajlo Yanakiev
Respected Contributor

Re: Max telnet sessions Redhat AS2.1

Offhand what are the limits for the system? (ulimit -Ha and ulimit -Sa)

/proc/sys/fs/file-nr and inode-nr values What is swap usage ?
#free

It can be lack of indos for FD
or low memory


Ivajlo Yanakiev
Respected Contributor

Re: Max telnet sessions Redhat AS2.1

Also you cant install glance to see waht kernel parm is 100 % used.

Geoff Dunk_1
Occasional Advisor

Re: Max telnet sessions Redhat AS2.1

I have these values on my system, and at the time of error, there was no swapping going on.

inode-nr
132772 132303

file-nr
374 32 262144

core file size (blocks) 0
data seg size (kbytes) unlimited
file size (blocks) unlimited
max locked memory (kbytes) unlimited
max memory size (kbytes) unlimited
open files 1024
pipe size (512 bytes) 8
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 14335
virtual memory (kbytes) unlimited

Any good ideas?
Ivajlo Yanakiev
Respected Contributor

Re: Max telnet sessions Redhat AS2.1

what kind of kernel you use ?
#uname -a



Steven E. Protter
Exalted Contributor

Re: Max telnet sessions Redhat AS2.1

It may be other problems. You may not have the ability to create more processes or inadequate swap memory.

The fact it happens at 120 users does point to a limit in the kernel. The error message itself brings up the possibility of other issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Dunk_1
Occasional Advisor

Re: Max telnet sessions Redhat AS2.1

Steven
Any pointers the direction or area I need to look?
Ivajlo Yanakiev
Respected Contributor

Re: Max telnet sessions Redhat AS2.1

I have some idea.
do not use xinetd for fork telnet
start telnetd daemon and test again.

Pls give me your kernel version
#uname -a
Geoff Dunk_1
Occasional Advisor

Re: Max telnet sessions Redhat AS2.1

kernel version is:
2.4.9-e.12smp