Hi janusz,

Thanks for the mail, after checking the limits in /proc/PID/limits file is was found to be 1024 after adding the ulimit -n <value> to stunnel startup the same was showing the new value.

Thanks for the support

Regards
senthil



On Mon, Jul 1, 2013 at 1:55 PM, Janusz Dziemidowicz <rraptorr@nails.eu.org> wrote:
2013/6/30 Senthil Naidu <senthil.naidu@gmail.com>:
> Hi,
>
> We are using 64 bit version of centos, and the ram of this system is 1gb
> so should we increase this limit to 100000 in the limits.conf

limits.conf is used only for interactive login sessions (i.e. when you
login to your system as a stunnel user). It is _not_ used by daemons
in your system (unless CentOS does something unusual in the startup
script).
You can check limits of a running process in /proc/PID/limits file,
most probably your stunnel has still the default value (1024 usually).
You should use ulimit -n in your stunnel startup script to modify file
descriptor limit.

--
Janusz Dziemidowicz