SAP Web dispatcher does not work on Linux operating system

LINUX_www.basisguru.com

In this article we will discus how to analyze connection failure via SAP web dispatcher

Symptoms:

On Linux operating systems, connections via web dispatcher fails.
when we checked in trace log file dev_webdisp, we can see below error log:

*** ERROR => NiILocalCheck: SiSocket failed (sirc=6;24-Too many open files)
*** ERROR => NiIInitSocket: SiSocket failed (sirc=6; I4; ST; errno=24: Too many open files)

*** ERROR => NiIAccept: SiAccept failed for hdl 34/sock 13
(SI_EMFILE/24; I4; ST; own high 255; max hds 2048)
*** ERROR => IcmAcceptClient: NiAccept failed: -8

Cause:

Rc=8 means no more NI handlers are present and

24-Too many open files : means number of file handles and open file has reached the limit set by ulimit -a on operating system level.

Solution:

From command ulimit-a find the open file limits for web-dispacher.

hostname ➤ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 8
stack size              (kbytes, -s) 2036
cpu time               (seconds, -t) unlimited
max user processes              (-u) 256
virtual memory          (kbytes, -v) unlimited

Connect with the OS team to increase the open FD limit as below:

  • Step 1

Open the sysctl.conf and add this line fs.file-max = 65536

$ vi /etc/sysctl.conf

add below new line ,then save & exit

fs.file-max = 65536
  • Step 2
$ vi /etc/security/limits.conf

and add below the mentioned

* soft     nproc          65535
* hard     nproc          65535
* soft     nofile         65535
* hard     nofile         65535

save and exit
Now check max open file ulimit

# ulimit -a

....
open files                      (-n) 65535