Fatal error - HELP!
Hi all,My web application encountered the following error last nite:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 17760 bytes) in /var/www/html/InfoSoccer/game/game.php on line 339
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in Unknown on line 0
During this problem happen, i have done this check:
[root@ServerD root]# w
8:06pm up 12:02, 3 users, load average: 0.44, 0.23, 0.19
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 isdn-brf-87-63.t 8:00pm 0.00s 0.03s 0.01s w
root pts/1 isdn-brf-87-63.t 7:29pm 45.00s 0.03s 0.03s -bash
root pts/2 isdn-brf-87-63.t 7:39pm 9:32 0.98s 0.96s psql -d EuroSoccer
[root@ServerD root]# vmstat
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 0 0 823712 76120 167900 0 0 3 27 570 257 6 1 93
[root@ServerD root]# top
8:09pm up 12:05, 3 users, load average: 0.13, 0.22, 0.18
150 processes: 146 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 6.7% user, 2.7% system, 0.0% nice, 90.4% idle
Mem: 1289556K av, 464936K used, 824620K free, 0K shrd, 76192K buff
Swap: 2096440K av, 0K used, 2096440K free 168240K cached
563 ? S 0:00 klogd -x
580 ? S 0:00 portmap
633 ? S 0:00 /usr/sbin/sshd
647 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
659 ? S 0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
691 ? S 0:12 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedi
706 ? S 0:00 sendmail: accepting connections
716 ? S 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqu
726 ? S 0:01 gpm -t imps2 -m /dev/mouse
780 ? S 0:02 /usr/bin/postmaster
782 ? S 0:00 postgres: stats buffer process
783 ? S 0:00 postgres: stats collector process
814 ? S 0:00 crond
827 ? S 0:00 squid -D
830 ? S 0:01 (squid) -D
831 ? S 0:00 (unlinkd)
867 ? S 0:00 xfs -droppriv -daemon
885 ? S 0:00 /usr/sbin/atd
892 tty1 S 0:00 /sbin/mingetty tty1
893 tty2 S 0:00 /sbin/mingetty tty2
894 tty3 S 0:00 /sbin/mingetty tty3
895 tty4 S 0:00 /sbin/mingetty tty4
896 tty5 S 0:00 /sbin/mingetty tty5
897 tty6 S 0:00 /sbin/mingetty tty6
8460 ? S 0:00 /usr/sbin/httpd
8463 ? S 0:09 /usr/sbin/httpd
8464 ? S 0:09 /usr/sbin/httpd
8465 ? S 0:09 /usr/sbin/httpd
8466 ? S 0:09 /usr/sbin/httpd
8467 ? S 0:09 /usr/sbin/httpd
8468 ? S 0:09 /usr/sbin/httpd
8469 ? S 0:09 /usr/sbin/httpd
8470 ? S 0:09 /usr/sbin/httpd
8471 ? S 0:09 /usr/sbin/httpd
8472 ? S 0:09 /usr/sbin/httpd
8473 ? S 0:09 /usr/sbin/httpd
8474 ? S 0:09 /usr/sbin/httpd
8475 ? S 0:09 /usr/sbin/httpd
8476 ? S 0:09 /usr/sbin/httpd
8477 ? S 0:09 /usr/sbin/httpd
8478 ? S 0:09 /usr/sbin/httpd
8479 ? S 0:09 /usr/sbin/httpd
8480 ? S 0:09 /usr/sbin/httpd
8481 ? S 0:09 /usr/sbin/httpd
8482 ? S 0:09 /usr/sbin/httpd
8484 ? S 0:10 /usr/sbin/httpd
8489 ? S 0:09 /usr/sbin/httpd
8490 ? S 0:09 /usr/sbin/httpd
8492 ? S 0:09 /usr/sbin/httpd
8493 ? S 0:09 /usr/sbin/httpd
8494 ? S 0:09 /usr/sbin/httpd
8495 ? S 0:10 /usr/sbin/httpd
8498 ? S 0:09 /usr/sbin/httpd
8499 ? S 0:09 /usr/sbin/httpd
8500 ? S 0:09 /usr/sbin/httpd
8501 ? S 0:09 /usr/sbin/httpd
8502 ? S 0:09 /usr/sbin/httpd
8503 ? S 0:09 /usr/sbin/httpd
8504 ? S 0:09 /usr/sbin/httpd
8505 ? S 0:09 /usr/sbin/httpd
8507 ? S 0:09 /usr/sbin/httpd
8508 ? S 0:09 /usr/sbin/httpd
8509 ? S 0:09 /usr/sbin/httpd
8510 ? S 0:09 /usr/sbin/httpd
8511 ? S 0:09 /usr/sbin/httpd
8512 ? S 0:09 /usr/sbin/httpd
8513 ? S 0:09 /usr/sbin/httpd
8514 ? S 0:09 /usr/sbin/httpd
8515 ? S 0:09 /usr/sbin/httpd
8516 ? S 0:09 /usr/sbin/httpd
8517 ? S 0:09 /usr/sbin/httpd
8518 ? S 0:09 /usr/sbin/httpd
8519 ? S 0:09 /usr/sbin/httpd
8520 ? S 0:09 /usr/sbin/httpd
8521 ? S 0:10 /usr/sbin/httpd
8522 ? S 0:09 /usr/sbin/httpd
8524 ? S 0:09 /usr/sbin/httpd
8526 ? S 0:09 /usr/sbin/httpd
8527 ? S 0:09 /usr/sbin/httpd
8706 ? S 0:09 /usr/sbin/httpd
8719 ? S 0:09 /usr/sbin/httpd
8729 ? S 0:09 /usr/sbin/httpd
8915 ? S 0:00 /usr/sbin/sshd
9005 ? S 0:00 /usr/libexec/openssh/sftp-server
9113 ? S 0:09 /usr/sbin/httpd
9307 ? S 0:09 /usr/sbin/httpd
10434 ? S 0:08 /usr/sbin/httpd
10438 ? S 0:08 /usr/sbin/httpd
10439 ? S 0:09 /usr/sbin/httpd
10912 ? S 0:08 /usr/sbin/httpd
12129 ? S 0:08 /usr/sbin/httpd
12131 ? S 0:08 /usr/sbin/httpd
12132 ? S 0:09 /usr/sbin/httpd
12642 ? S 0:08 /usr/sbin/httpd
13341 ? S 0:08 /usr/sbin/httpd
13524 ? S 0:08 /usr/sbin/httpd
13582 ? S 0:08 /usr/sbin/httpd
13710 ? S 0:08 /usr/sbin/httpd
19033 ? S 0:07 /usr/sbin/httpd
22506 ? S 0:06 /usr/sbin/httpd
25733 ? S 0:05 /usr/sbin/httpd
25738 ? S 0:05 /usr/sbin/httpd
25739 ? S 0:05 /usr/sbin/httpd
29068 ? S 0:05 /usr/sbin/httpd
29865 ? S 0:04 /usr/sbin/httpd
29876 ? S 0:04 /usr/sbin/httpd
29877 ? S 0:04 /usr/sbin/httpd
29885 ? S 0:04 /usr/sbin/httpd
29886 ? S 0:04 /usr/sbin/httpd
29887 ? S 0:04 /usr/sbin/httpd
29888 ? S 0:04 /usr/sbin/httpd
29896 ? S 0:04 /usr/sbin/httpd
29897 ? S 0:04 /usr/sbin/httpd
29898 ? S 0:05 /usr/sbin/httpd
29899 ? S 0:05 /usr/sbin/httpd
29900 ? S 0:04 /usr/sbin/httpd
29901 ? S 0:05 /usr/sbin/httpd
29902 ? S 0:05 /usr/sbin/httpd
29903 ? S 0:04 /usr/sbin/httpd
13707 ? S 0:00 /usr/sbin/sshd
13815 pts/1 S 0:00 -bash
17853 pts/2 S 0:00 -bash
18008 pts/2 S 0:00 psql -d EuroSoccer
18010 ? S 0:00 postgres: root EuroSoccer [local] idle
24765 ? S 0:00 /usr/sbin/httpd
26334 pts/1 S 0:00 psql -dEuroSoccer
26335 ? S 0:00 postgres: root EuroSoccer [local] idle
26578 ? S 0:00 /usr/sbin/sshd
26853 pts/0 S 0:00 -bash
28034 pts/0 R 0:00 ps -ax
Can anyone tell me how to fix it?
I have also notice the following httpd process weird.
13700 apache 15 0 0 0 0 Z 0.9 0.0 0:00 httpd <defunct>
Any help will be very much appreciated!
Thanks,
Kum