Steady Memory usage increase
-
Using Jun 1st snapshot with 4GB RAM. Packages installed are HAVP, Squid, SquidGuard, LightSquid.
I am facing a problem with steady Memory usage increase every day. Have tried various snapshots but can't find the culprit which is leaking memory. First I thought pfSense will clean up and allocate memory where required. But I saw Snort failing and restarting after 2 to 3 days. Reboots helped for the day but the increase was still steady. Tried different snort configs to rule it out. Right now I have removed Snort (as it is there is a problem with the package) and have only HAVP, Squid, SquidGuard, LightSquid running. After a clean reinstall memory was around 17 to 18% yesterday. Now is has jumped to 23% on extremely light internet activity.
Could it be Squid or SquidGuard leaking memory?
-
that is what squid does…caches content in memory.
-
And it is not only the cache im memory. If you have high disc space cache, squid needs to hold an index in RAM.
If you have TOO much disk space, that squid could run out of memory.If you are telling squid to use 1GB of RAM for caching files in memory, this means, that squid is minimum using 1GB RAM but it normally uses more RAM because of index files and the disk cache.
I told it in another thread:
I have 4 GB RAM, too.
Ich use 10GB hard disk cache
1GB memory cacheAnd my memory usage is at 75% after ~5 days.
-
I can't keep rebooting the UTM every couple of days. What is the resolution for this?
Right now I have just Squid and SquidGuard and after just a day the Memory usage has jumped from 8% to 26%, with extremely low internet activity.
How do I cap this growth?
My cache config is
Hard disk cache size: 1000 (should I lower this to 500?)
Memory cache size: 500 (should I lower this to 350?)
Maximum object size: 256 (should I lower this to 128?)I don't even like Squid but I like to run SquidGuard & LightSquid and for it Squid is a dependency.
Also, I get the below errors after every reboot. I have reinstalled all packages twice but these errors still show up. Which package is creating these errors?
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidcache of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidusers of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidauth of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidupstream of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidtraffic of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squid of squid because some include files are missing.
Jun 11 11:10:01 php: : Not calling package sync code for dependency squidnac of squid because some include files are missing.
Jun 11 11:10:00 php: : Not calling package sync code for dependency squidcache of squid because some include files are missing. -
I do not understand why it is a problem for you that squid is using your RAM. That's squid's job !
Of course, if you do not like squid caching your objects, than lower your disc cache and your memory for squid to a minimum.But again, 26% ist not much and if it does not slow down your system, why not allowing squid to use it !?
-
Coz I need RAM for Snort. Right now Snort package is screwed up so I am not able to install and start it. Snort takes about 65% of my RAM plus 25% taken by Squid. I need some head room for frequent LAN file transfers, VoIP and Internet TV.
-
You cant tell squid to loose the data after a certain amount of time?
-
You could lower the low and high watermarks of store data in RAM and/or disc. Default is 90% and 95%
Perhaps try it with 50% and 55%.