Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 18:43:01 +0100
From:      "Jorn Argelo" <jorn@wcborstel.nl>
To:        "dpk" <dpk@dpk.net>
Cc:        questions@freebsd.org
Subject:   Re: Memory leak on 5.1-RELEASE?
Message-ID:  <012701c3e8ea$d6436c40$050110ac@computerjorn>
References:  <Pine.BSF.4.58.0401301550310.98773@shared10.hosting.flyingcroc.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Are you sure that there isn't anything else running? Why don't  you give us
an ps -ax output? I don't think there's a memory leak in 5.1, since I've
seen running 5.1 just fine on a PE2650 with 2 GB RAM. You shouldn't
rely on top too much acually. Vmstat is a better program when looking
at memory.

Cheers,

Jorn
----- Original Message -----
From: "dpk" <dpk@dpk.net>
To: <questions@freebsd.org>
Sent: Saturday, January 31, 2004 1:10 AM
Subject: Memory leak on 5.1-RELEASE?


> (I'm not a member of the list; please Cc me on any replies.)
>
> We're running Apache 1.3.28 on a 5.1-RELEASE machine. It's a Dell PE 2650
> w/ 2GB RAM. The site contains a lot of large files (multi-megabyte) -
> otherwise there's nothing unusual running.
>
> The Active memory use, according to top, seems rather high:
>
> last pid: 21487;  load averages:  0.19,  0.33,  0.32    up 2+16:45:20
15:52:21
> 76 processes:  1 running, 75 sleeping
> CPU states:  0.5% user,  0.0% nice,  4.0% system,  1.4% interrupt, 94.2%
idle
> Mem: 1413M Active, 187M Inact, 299M Wired, 93M Cache, 112M Buf, 2632K Free
> Swap: 1024M Total, 21M Used, 1003M Free, 2% Inuse
>
> We can't seem to get the Active number down much, even after stopping
> Apache it still stays around 1100M. There's no shared memory in use, and
> nothing in vmstat -m seems to indicate where the "missing" memory is. top,
> sorting by "size", does not indicate anything unusual either.
>
> sysctl vm.vmtotal says:
>
> vm.vmtotal:
> System wide totals computed every five seconds: (values in kilobytes)
> ===============================================
> Processes:              (RUNQ: 1 Disk Wait: 0 Page Wait: 0 Sleep: 76)
> Virtual Memory:         (Total: 8172K, Active 636472K)
> Real Memory:            (Total: 2051312K Active 389176K)
> Shared Virtual Memory:  (Total: 16436K Active: 11760K)
> Shared Real Memory:     (Total: 6004K Active: 4436K)
> Free Memory Pages:      79228K
>
> whereas on other servers, the Real Memory "Active" number seems to match
> the one found in top, on this one it is about 1GB lower.
>
> A similar machine running Apache on 5.1-R, generally serving smaller
> files, has the same problem in a smaller scale (about 640M even when
> Apache is stopped).
>
> Are there any other data that I should send to help diagnose this problem,
> or any programs I can run to try and track this stray memory use down?
>
> - dpk
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012701c3e8ea$d6436c40$050110ac>