LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid excessive memory consuming on Fedora 12 (http://www.linuxquestions.org/questions/linux-server-73/squid-excessive-memory-consuming-on-fedora-12-a-861168/)

dracuss 02-07-2011 07:53 AM

Squid excessive memory consuming on Fedora 12
 
There is squid 3.1.8 on a Fedora 12 server with 2 GB of RAM. It is used for sharing the Internet for approximatively 80 PC's. The problem is that it is really a memory hog, when enabling delay pools.
I am using the following configuration for the memory pools:
Code:

delay_pools 1
delay_class 1 2
delay_access 1 allow drumuri
delay_access 1 deny all
#delay_parameters 1 10485760/10485760 #mmare 512 kbs
#delay_parameters 1 131072/131072        #1024 kbs
delay_parameters 1 524288/524288  32768/32768        #Total 4 mb, per utilizator 256 kbs

There are moments when the squid process uses approximatively all the RAM and goes into swapping. After that I restart it, it goes well for a while and again eats up all the memory.
On the Internet it says that Squid uses a lot of memory, but should it use 2 GB of memory, even if all 80 people are online at the same time?
Also, please tell me how could I minimise the memory usage. I googled for it, but found nothing regarding delay pools.

unSpawn 02-08-2011 02:35 AM

Moved: This thread is deemed more suitable in the Server forum and has been moved accordingly to help your thread/question get the exposure it deserves.

dracuss 02-09-2011 01:48 AM

I guess that the problem is solved, now squid uses much less memory at the expense of some additional CPU activity:
I compiled squid with the --enable-dlmalloc switch, by using the SRPM from http://download.fedora.redhat.com/pu...1.fc15.src.rpm.

vinit.contact 06-23-2012 06:24 AM

This is working
 
Thanks a lot dear for this solutions.
I use this in RHEL 6.


All times are GMT -5. The time now is 09:37 PM.