WARNING! Your cache is running out of filedescriptors
WARNING! Your cache is running out of filedescriptors
I am getting this few times and my squid then stop working until I restart it.
my system:
squid 2.5 stable 14
RHEL 4
How do I know the current or default limit and where to increase it.
my system:
squid 2.5 stable 14
RHEL 4
How do I know the current or default limit and where to increase it.
Azfar Hashmi
Email : azfarhashmi@hotmail.com
Email : azfarhashmi@hotmail.com
Re: WARNING! Your cache is running out of filedescriptors
define ulimitazfar wrote:I am getting this few times and my squid then stop working until I restart it.
my system:
squid 2.5 stable 14
RHEL 4
How do I know the current or default limit and where to increase it.
hmm did it but strange thing happen to me whenever i made changes in any following thing it revert after reboot.
/proc/sys/net/ipv4/ip_conntrack_max
/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
/proc/sys/net/ipv4/ip_local_port_range
ulimit -HSn
whats the problem ?
/proc/sys/net/ipv4/ip_conntrack_max
/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
/proc/sys/net/ipv4/ip_local_port_range
ulimit -HSn
whats the problem ?
Azfar Hashmi
Email : azfarhashmi@hotmail.com
Email : azfarhashmi@hotmail.com
you need to put the relevant entries in /etc/sysctl.conf:azfar wrote:hmm did it but strange thing happen to me whenever i made changes in any following thing it revert after reboot.
/proc/sys/net/ipv4/ip_conntrack_max
/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
Code: Select all
net.ipv4.ip_conntrack_max = whatever
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = whatever
thanks for pointing it but what should I do to ulimit -HSn it also revert back after reboot.
Azfar Hashmi
Email : azfarhashmi@hotmail.com
Email : azfarhashmi@hotmail.com
ok, i searched around this, and found what you need. if your system is recent enough, it'll have a file named /etc/limits.conf or /etc/security/limits.conf. you can raise the fd limit in there (it's called "nofile").
i'd dealt with it in the past, but forgotten all about it.
i'd dealt with it in the past, but forgotten all about it.
Last edited by lambda on Tue Feb 13, 2007 2:24 pm, edited 1 time in total.
Theres also one more thing that squid checks maximum open files limit at compile time and saves it permanently n never checks at its startup.
So if you have tuned this limits u must recompile squid.
The RPM based squid has default 1024 limit ,built in it , IMHO.
you can confirm that what squid has picked up by checking its cache.log.
Regards
So if you have tuned this limits u must recompile squid.
The RPM based squid has default 1024 limit ,built in it , IMHO.
you can confirm that what squid has picked up by checking its cache.log.
Regards
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Farrukh Ahmed
/proc/sys/fs/inode-nr
/proc/sys/fs/inode-state
do i need to change these files a swell
/proc/sys/fs/inode-state
do i need to change these files a swell
Azfar Hashmi
Email : azfarhashmi@hotmail.com
Email : azfarhashmi@hotmail.com
nothing but i found following line in another article
echo 128000 > /proc/sys/fs/inode-max
but I dont have it.
echo 128000 > /proc/sys/fs/inode-max
but I dont have it.
Azfar Hashmi
Email : azfarhashmi@hotmail.com
Email : azfarhashmi@hotmail.com
Re: WARNING! Your cache is running out of filedescriptors
AOAazfar wrote:I am getting this few times and my squid then stop working until I restart it.
my system:
squid 2.5 stable 14
RHEL 4
How do I know the current or default limit and where to increase it.
Modifying the SSH daemon to remove privilege separation for root user
or
apply ulimit from the machine not using ssh daemon
Asif Bakali !
Feel free to contact me (flames about my english and the useless of this driver will be redirected to /dev/null, oh no, it's full...).
Feel free to contact me (flames about my english and the useless of this driver will be redirected to /dev/null, oh no, it's full...).