Search code examples
linuxbashopensuse

SIPP: open file limit > FD_SETSIZE


actually I try to start SIPP 3.3 on opensuse 11 with a bash console with java. When I start SIPP with

proc = Runtime.getRuntime().exec("/bin/bash", null, wd);

... 

printWriter.println("./sipp -i "+Config.IP+" -sf uac.xml "+Config.IP+":5060");

the error stream gives the following output

Warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE = 1024 Resolving remote host '137.58.120.17'... Done.

What does the warning means? And is it possible that the bash terminal freezes because of this warning? How can i remove this warning?


Solution

  • This warning is supposedly related to multi-socket transport options in SIPp eg. -t un or -t tn, (though I have observed it generate these warnings even when not specifying one of these).

    SIPp includes an option that controls this warning message:

       -skip_rlimit     : Do not perform rlimit tuning of file descriptor limits.  Default: false.
    

    Though it has the desired effect for me of suppressing the warning output, on its own, it seems like a slightly dangerous option. Although I'm not certain of what will happen if you include this option and SIPp attempts to open more sockets than are available according to FD_SETSIZE, you may avoid possible problems on that front by also including the max_socket argument:

       -max_socket      : Set the max number of sockets to open simultaneously. This option is
                          significant if you use one socket per call. Once this limit is reached,
                          traffic is distributed over the sockets already opened. Default value is
                          50000