Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2001 17:35:44 -0400
From:      "ISPrime Support" <support@isprime.com>
To:        <stable@FreeBSD.ORG>
Subject:   memory leak in FBSD 4.4-STABLE
Message-ID:  <000a01c142e5$5f676480$02010a0a@energy>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C142C3.D796E150
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have two servers load balanced running a large-load website (about 20 =
megabit each server)
one is running 4.4-STABLE other is 4.3-STABLE from about two months ago.
the apache binary is the same on both.
the 4.4 system over time the apache processes get HUGE until the system =
runs out of swap, and the 4.3 system stays small.
last pid: 55332;  load averages: 64.88, 25.57, 17.49  up 48+04:46:20  =
17:29:09
768 processes: 13 running, 754 sleeping, 1 zombie
CPU states: 24.0% user,  0.0% nice, 18.4% system,  8.6% interrupt, 48.9% =
idle
Mem: 574M Active, 91M Inact, 317M Wired, 20M Cache, 112M Buf, 1664K Free
Swap: 3072M Total, 128M Used, 2944M Free, 4% Inuse, 16K In, 13M Out
 =20
  PID USERNAME PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU =
COMMAND
41660 nobody     2   0  6996K  4452K select 1   0:03 10.25% 10.25% =
httpd-statu
41543 nobody     2   0  6688K  4192K select 0   0:03  9.77%  9.77% =
httpd-statu
42025 nobody     2   0  6400K  3760K accept 1   0:03  9.72%  8.84% =
httpd-statu
55332 root      24 -20  2800K   880K CPU1   1   0:02 22.13%  6.54% top
41792 nobody     2   0  7056K  4492K select 1   0:03  4.44%  4.44% =
httpd-statu
41872 nobody     2   0  5980K  3804K select 1   0:02  4.35%  4.35% =
httpd-statu
    3 root      18   0     0K     0K psleep 0  38:01  4.30%  4.30% =
vmdaemon
41553 nobody     2   0  5980K  3428K accept 0   0:03  4.72%  4.30% =
httpd-statu
41915 nobody     2   0  7648K  4912K accept 0   0:04  4.20%  4.20% =
httpd-statu
42040 nobody     2   0  5276K  3336K select 1   0:02  4.15%  4.15% =
httpd-statu
41736 nobody     2   0  6112K  3744K select 1   0:05  4.10%  4.10% =
httpd-statu
42007 nobody     2   0  5980K  3508K select 1   0:04  4.46%  4.05% =
httpd-statu
41847 nobody     2   0  4700K  2492K accept 0   0:02  2.68%  2.44% =
httpd-statu

This is after about 20 minutes of running.  given 3-4 hours they will be =
about 10 megs each.

This is the 4.3 system after 1 hour of uptime:
last pid: 23347;  load averages:  3.58,  1.88,  1.72    up 3+16:15:28  =
17:35:16
1328 processes:12 running, 1315 sleeping, 1 zombie
CPU states: 11.7% user,  0.0% nice,  8.1% system,  6.4% interrupt, 73.8% =
idle
Mem: 661M Active, 55M Inact, 237M Wired, 50M Cache, 112M Buf, 1664K Free
Swap: 1024M Total, 8960K Used, 1015M Free

  PID USERNAME PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU =
COMMAND
  182 mysql      2   0 12352K   156K poll   0   0:05  0.00%  0.00% =
mysqld
23344 root     -10 -20  3440K   940K CPU0   0   0:03  1.37%  1.37% top
  195 nobody     2   0  3308K   248K accept 0   0:00  0.00%  0.00% =
phphttpd
  196 nobody     2   0  3308K   248K accept 0   0:00  0.00%  0.00% =
phphttpd
  193 nobody     2   0  3304K   236K accept 0   0:00  0.00%  0.00% =
phphttpd
  194 nobody     2   0  3296K   232K accept 0   0:00  0.00%  0.00% =
phphttpd
  191 root       2   0  3056K   208K select 0   0:18  0.00%  0.00% =
phphttpd
23337 root       2   0  2308K  1324K select 1   0:00  0.00%  0.00% sshd
19526 root       2   0  2308K  1276K select 1   0:00  0.00%  0.00% sshd
  106 root       2   0  2224K   528K select 0   0:01  0.00%  0.00% sshd
 8049 nobody     2   0  2068K  1236K sbwait 0   0:01  0.00%  0.00% =
httpd-status
 7622 nobody     2   0  2064K  1268K select 0   0:01  0.00%  0.00% =
httpd-status
 8251 nobody     2   0  2056K  1224K sbwait 0   0:01  0.00%  0.00% =
httpd-status
 7260 nobody     2   0  2056K  1224K sbwait 0   0:01  0.00%  0.00% =
httpd-status
 7780 nobody     2   0  2056K  1224K select 1   0:01  0.00%  0.00% =
httpd-status
 7898 nobody     2   0  2056K  1204K select 0   0:01  0.00%  0.00% =
httpd-status


Any ideas?


------=_NextPart_000_0007_01C142C3.D796E150
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have two servers load balanced =
running a=20
large-load website (about 20 megabit each server)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>one is running 4.4-STABLE other is =
4.3-STABLE from=20
about two months ago.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the apache binary is the same on =
both.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the 4.4 system over time the apache =
processes get=20
HUGE until the system runs out of swap, and the 4.3 system stays=20
small.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>last pid: 55332;&nbsp; load averages: =
64.88, 25.57,=20
17.49&nbsp; up 48+04:46:20&nbsp; 17:29:09<BR>768 processes: 13 running, =
754=20
sleeping, 1 zombie<BR>CPU states: 24.0% user,&nbsp; 0.0% nice, 18.4%=20
system,&nbsp; 8.6% interrupt, 48.9% idle<BR>Mem: 574M Active, 91M Inact, =
317M=20
Wired, 20M Cache, 112M Buf, 1664K Free<BR>Swap: 3072M Total, 128M Used, =
2944M=20
Free, 4% Inuse, 16K In, 13M Out<BR>&nbsp; <BR>&nbsp; PID USERNAME PRI =
NICE&nbsp;=20
SIZE&nbsp;&nbsp;&nbsp; RES STATE&nbsp; C&nbsp;&nbsp; TIME&nbsp;&nbsp;=20
WCPU&nbsp;&nbsp;&nbsp; CPU COMMAND<BR>41660 =
nobody&nbsp;&nbsp;&nbsp;&nbsp;=20
2&nbsp;&nbsp; 0&nbsp; 6996K&nbsp; 4452K select 1&nbsp;&nbsp; 0:03 10.25% =
10.25%=20
httpd-statu<BR>41543 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
6688K&nbsp; 4192K select 0&nbsp;&nbsp; 0:03&nbsp; 9.77%&nbsp; 9.77%=20
httpd-statu<BR>42025 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
6400K&nbsp; 3760K accept 1&nbsp;&nbsp; 0:03&nbsp; 9.72%&nbsp; 8.84%=20
httpd-statu<BR>55332 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 24 -20&nbsp;=20
2800K&nbsp;&nbsp; 880K CPU1&nbsp;&nbsp; 1&nbsp;&nbsp; 0:02 22.13%&nbsp; =
6.54%=20
top<BR>41792 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; =
7056K&nbsp;=20
4492K select 1&nbsp;&nbsp; 0:03&nbsp; 4.44%&nbsp; 4.44% =
httpd-statu<BR>41872=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 5980K&nbsp; 3804K =
select=20
1&nbsp;&nbsp; 0:02&nbsp; 4.35%&nbsp; 4.35% =
httpd-statu<BR>&nbsp;&nbsp;&nbsp; 3=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;=20
0K&nbsp;&nbsp;&nbsp;&nbsp; 0K psleep 0&nbsp; 38:01&nbsp; 4.30%&nbsp; =
4.30%=20
vmdaemon<BR>41553 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp;=20
5980K&nbsp; 3428K accept 0&nbsp;&nbsp; 0:03&nbsp; 4.72%&nbsp; 4.30%=20
httpd-statu<BR>41915 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
7648K&nbsp; 4912K accept 0&nbsp;&nbsp; 0:04&nbsp; 4.20%&nbsp; 4.20%=20
httpd-statu<BR>42040 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
5276K&nbsp; 3336K select 1&nbsp;&nbsp; 0:02&nbsp; 4.15%&nbsp; 4.15%=20
httpd-statu<BR>41736 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
6112K&nbsp; 3744K select 1&nbsp;&nbsp; 0:05&nbsp; 4.10%&nbsp; 4.10%=20
httpd-statu<BR>42007 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
5980K&nbsp; 3508K select 1&nbsp;&nbsp; 0:04&nbsp; 4.46%&nbsp; 4.05%=20
httpd-statu<BR>41847 nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; =
0&nbsp;=20
4700K&nbsp; 2492K accept 0&nbsp;&nbsp; 0:02&nbsp; 2.68%&nbsp; 2.44%=20
httpd-statu</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is after about 20 minutes of =
running.&nbsp;=20
given 3-4 hours they will be about 10 megs each.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is the 4.3 system after&nbsp;1 =
hour&nbsp;of=20
uptime:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>last pid: 23347;&nbsp; load =
averages:&nbsp;=20
3.58,&nbsp; 1.88,&nbsp; 1.72&nbsp;&nbsp;&nbsp; up 3+16:15:28&nbsp;=20
17:35:16<BR>1328 processes:12 running, 1315 sleeping, 1 zombie<BR>CPU =
states:=20
11.7% user,&nbsp; 0.0% nice,&nbsp; 8.1% system,&nbsp; 6.4% interrupt, =
73.8%=20
idle<BR>Mem: 661M Active, 55M Inact, 237M Wired, 50M Cache, 112M Buf, =
1664K=20
Free<BR>Swap: 1024M Total, 8960K Used, 1015M Free</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; PID USERNAME PRI NICE&nbsp;=20
SIZE&nbsp;&nbsp;&nbsp; RES STATE&nbsp; C&nbsp;&nbsp; TIME&nbsp;&nbsp;=20
WCPU&nbsp;&nbsp;&nbsp; CPU COMMAND<BR>&nbsp; 182=20
mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0 12352K&nbsp;&nbsp; =
156K=20
poll&nbsp;&nbsp; 0&nbsp;&nbsp; 0:05&nbsp; 0.00%&nbsp; 0.00% =
mysqld<BR>23344=20
root&nbsp;&nbsp;&nbsp;&nbsp; -10 -20&nbsp; 3440K&nbsp;&nbsp; 940K=20
CPU0&nbsp;&nbsp; 0&nbsp;&nbsp; 0:03&nbsp; 1.37%&nbsp; 1.37% =
top<BR>&nbsp; 195=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 3308K&nbsp;&nbsp; =
248K=20
accept 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% phphttpd<BR>&nbsp; 196 =

nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 3308K&nbsp;&nbsp; =
248K=20
accept 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% phphttpd<BR>&nbsp; 193 =

nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 3304K&nbsp;&nbsp; =
236K=20
accept 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% phphttpd<BR>&nbsp; 194 =

nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 3296K&nbsp;&nbsp; =
232K=20
accept 0&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% phphttpd<BR>&nbsp; 191 =

root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; =
3056K&nbsp;&nbsp;=20
208K select 0&nbsp;&nbsp; 0:18&nbsp; 0.00%&nbsp; 0.00% phphttpd<BR>23337 =

root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; =
2308K&nbsp; 1324K=20
select 1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% sshd<BR>19526=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; =
2308K&nbsp; 1276K=20
select 1&nbsp;&nbsp; 0:00&nbsp; 0.00%&nbsp; 0.00% sshd<BR>&nbsp; 106=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; =
2224K&nbsp;&nbsp;=20
528K select 0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% =
sshd<BR>&nbsp;8049=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2068K&nbsp; 1236K =
sbwait=20
0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status<BR>&nbsp;7622=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2064K&nbsp; 1268K =
select=20
0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status<BR>&nbsp;8251=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2056K&nbsp; 1224K =
sbwait=20
0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status<BR>&nbsp;7260=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2056K&nbsp; 1224K =
sbwait=20
0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status<BR>&nbsp;7780=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2056K&nbsp; 1224K =
select=20
1&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status<BR>&nbsp;7898=20
nobody&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 0&nbsp; 2056K&nbsp; 1204K =
select=20
0&nbsp;&nbsp; 0:01&nbsp; 0.00%&nbsp; 0.00% httpd-status</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0007_01C142C3.D796E150--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01c142e5$5f676480$02010a0a>