Help us enhance your Sophos Community experience. Share your thoughts in our Sophos Community survey.

[9.091][BUG]Possible memory leak in http proxy when using local content database

Hi, I had been using http proxy in default configuration and it was working great. But whats the fun in running stuff with all defaults [:P] so I loaded up local database (mem option). Since that time, the httpproxy daemon consumes all the way to 1GB ram by itself [:O] Screenshots:

1. Screenshot of random memory usage spikes in the middle of the night. I double checked and no up2dates etc were being applied.
2. Memory usage with default configuration and no local db.
3.Memory usage with local db enabled (cc set http sc_local_db mem)
4. Memory usage after a day of usage
5. Memory usage a few hours after restarting the proxy.

Regards
Bill
  • An update with clarity.  This is existing and expected behavior and we are not changing it.




    This is pretty bad - why would anyone want an old copy of the database in mem thats not doing anything. How does the system determine to remove the old one?

    Did this happen in 9.006-5? I run a UTM 120 ver 5 with the MEM option and it is happy running along at around 70% ram and 5%  swap.... I don't need more crap in ram when its not needed...
  • Hi all, 

    I just wanted to clarify a few things here: 

    The local DB allocates 2 chunks of memory for hot swapping between them during an update. However since only 1 chunk of memory is actively being used at any 1 time, the other chunk should get swapped out by the OS. 

    However we are currently investigating a memory fragmentation issue, which can prevent the 2nd chunk of memory from being swapped out. This in turn causes the http proxy to use more memory than expected. This is something we are actively working on right now, and hope to provide a resolution as soon as we can in a subsequent software update. 

    Bobby