Hello All,
I have solved the problem, I managed to increase the filedescriptor
from 1024
This what I have done on (Ubuntu hardy) it should work on most Ubuntu OS and Debians

I first needed to see the max that my System can support

run this command first:
cat /proc/sys/fs/file-max

it will display the maximum that you're system can currently handle

to increase that number

you need first to run this command
let's assume XXXXX is a number 46900

echo XXXX > proc/sys/fs/file-max (where the xx is the number you want to add)

you then need to add this into the file
/etc/sysctl.conf   file
fs.file-max = XXXXX  (that same number again)

After you've done this.

check again with this command

systcl -p

It's all stored in

/proc/sys/fs/file-nr   (just run this command to get the output)

To modify the limit descriptors per session
We need to add this to our limits.conf

emacs or vi /etc/security/limits.conf
and add

*                   soft   nofile                  XXXXX
*                   hard nofile                    XXXXX
Note you can use either or both of the above two lines
And you can use a specific user instead of the wildcard "*" which is at the beginning of each line, it means to all users on your system

save it and then you can check with ulimit -n
if you still get 1024 you probably need to reboot your system altogether, on mine it didn't show until I rebooted anyway.

I hope this will help someone somewhere at some point

Regards
Adam



----- Original Message ----- From: "Al - Image Hosting Services" <az...@zickswebventures.com>
To: "a...@gmail" <adbas...@googlemail.com>
Cc: <squid-users@squid-cache.org>
Sent: Monday, March 22, 2010 6:13 PM
Subject: Re: [squid-users] FileDescriptor Issues


Hi,

Did you try using ulimit?

Best Regards,
Al


On Mon, 22 Mar 2010, a...@gmail wrote:

Date: Mon, 22 Mar 2010 17:42:47 -0000
From: "a...@gmail" <adbas...@googlemail.com>
To: squid-users@squid-cache.org
Subject: [squid-users] FileDescriptor Issues

Hi All,

I have tried everything so far I definitely have increased my file descriptors on my Ubuntu OS
from 1024 to 46622
But when I start Squid 3.0 STABLE25 I doesn't seem to detect the real descriptor's size

I have checked the sysctl.conf, and I have checked the system to make sure that the correct size /etc/sysctl.confWhen I run this I more /proc/sys/fs/file-maxI get 46622But Squid3.0 seem to only detect 1024Is there anything that I am not doing please?
I don't know what else to do
Thank you
Regards
Adam

Reply via email to