PDA

View Full Version : Memory LEAK???


Cold Steel
Mon 19th Jun '00, 6:39pm
Just got this from my host...

I was checking your
error_log file and noticed that you have been receiving numerous 'Out of
memory!' errors. Many of your scripts are failing for this reason.
One of your scripts may have memory leak. Here is a listing from TOP.
Notice that you currently have 137Megs of active memory.


last pid: 9403; load averages: 0.15, 0.19,
0.17 up 17+13:50:17 03:25:10
87 processes: 1 running, 85 sleeping, 1 zombie
CPU states: 0.4% user, 0.0% nice, 0.8% system, 0.4% interrupt, 98.4%
idle
Mem: 137M Active, 67M Inact, 26M Wired, 11M Cache, 8347K Buf, 5596K Free


Swap: 400M Total, 30M Used, 370M Free, 7% Inuse, 16K In


PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND


43463 msql 2 0 4236K 560K select 19:07 0.00% 0.00% msql2d
241 root 2 0 1026M 584K select 6:24 0.00% 0.00%
rmserver
231 root 10 0 500K 144K wait 5:55 0.00% 0.00% sh
243 root 18 0 1616K 280K pause 4:49 0.00% 0.00% httpsd
214 root 2 0 1428K 372K select 2:45 0.00% 0.00% sshd1
86 root 2 0 820K 304K select 1:15 0.00% 0.00% syslogd


19856 root 2 0 2460K 928K select 1:03 0.00% 0.00% httpd
141 root 2 0 892K 140K select 0:25 0.00% 0.00% inetd
144 root 10 0 1000K 460K nanslp 0:23 0.00% 0.00% cron
205 mysql 2 0 16312K 7188K poll 644:30 0.00% 0.00% mysqld


Can anyone help me make sense of that?

wandrer
Mon 19th Jun '00, 9:49pm
One of your scripts may have memory leak.

It is almost unheard of for a PHP or mysql program to have a memory leak. I believe both contain software to contain a memory leak if there is one.

What you might be experiencing is 'not enough memory'. What are the stats of your webserver and how many visitors per day to your forum do you get ? What version of vBulletin are you running ?

http://www.vbulletin.com/forum/showthread.php?threadid=770

http://www.vbulletin.com/forum/showthread.php?threadid=469

werehere
Tue 20th Jun '00, 12:10am
It does not appear that the info listed is showing anything that should lead you to out of memory errors, or anything out of the ordinary.

So it would be nice to see the server specs, and how many people are on that server. :)

shri
Tue 20th Jun '00, 2:10am
werehere,

Just curious... have you had any experience with changing the pconnect's to connect and its effects on memory?

Shri

Cold Steel
Tue 20th Jun '00, 2:10am
AMD K6-2 450 MHZ
256 MB RAM

It's a dedicated server.

I'm not sure how many people per day are on my forum. It's located at http://aforums.com, if you can take a look for me.

Thanks!

wandrer
Tue 20th Jun '00, 2:25am
I'm not sure how many people per day are on my forum.

Do you have access to your log files ?

Cold Steel
Tue 20th Jun '00, 3:18pm
Yes, I do.

wandrer
Tue 20th Jun '00, 8:17pm
Could you run your log files through analog / webalizer / weblog or any other log-file-analyzer to get a rough estimate as to the traffic your board is experiencing ?

There might be a problem is you have 50 people/day visiting your forum. If you have 10,000 people/day visiting your forum, then I'd say your server hardware would need upgrading or more memory.