Squid memory leaks in -stable using libc malloc

From: Anders Nordby (anders_at_fix.no)
Date: 09/06/03

  • Next message: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
    Date: Sat, 6 Sep 2003 16:11:08 +0200
    To: stable@FreeBSD.org
    
    

    Hi,

    Using Squid with libc's malloc, I'm seeing a big difference between what
    top reports as memory used for the squid process (SIZE) and what Squid's
    cache manager reports that Squid has allocated (total KB allocated in
    the memory utilization page). Squid is using around twice as much memory
    as expected, and seems to grow without bounds (I run out of memory every
    now and then). I've tried configuring malloc.conf with H (as suggested
    by tjr), but it didn't help.

    Using Squid with dlmalloc however (--enable-dlmalloc), seems to stop the
    memory leaks. For my own purposes, I'll be using dlmalloc from now
    unless someone has other suggestions.

    For the record, I'm using 4.8-RELEASE and Squid 2.5.STABLE3 (recently
    installed from ports with all the patches there). I have Squid servers
    with 4 GB RAM, and cache_mem is set to 2 GB currently.

    Cheers,

    -- 
    Anders.
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"

    Relevant Pages

    • Re: FreeBSD data size tuning
      ... It seems there is a memory issue in 4.9 where they adapted 5.x things ... RAM and using 2500MB of swap on ide disk, ... With 1GB of RAM you should be able to run squid without any ...
      (freebsd-performance)
    • Re: Squid memory leaks in -stable using libc malloc
      ... Squid uses more memory than you assign to cache_mem, ... documented in the Squid FAQ, ...
      (freebsd-stable)
    • Re: how to get a silent harddisk?
      ... >>Sorry, for me squid is spinning up the disk all the time, even when not in use. ... > cache in memory, and any other program you're running that's not under ... > all the tempfs data and whatever you have the squid cache memory set to, ...
      (Debian-User)
    • Re: Squid memory leaks in -stable using libc malloc
      ... > documented in the Squid FAQ, ... it's normal for squid to use a lot more memory than ... now, top says Squid uses 1235 MB of memory, while cache manager reports ...
      (freebsd-stable)
    • Re: OT:FOAK - Proxy log scanning software
      ... At the moment I grab a copy of each days squid log, ... produce all the reports the MD wanted, ie porn list, dating sites ... preferably have a builtin set of reports covering porn etc. ... for a situation like this you will have to enable user logon onto the the proxy for full traceability. ...
      (uk.rec.motorcycles)