IT_Architect
Verified User
- Joined
- Feb 27, 2006
- Messages
- 1,088
I've been battling a memory leak since the beginning of December. The only reason that I am bringing it up here is because there is one significant event that happens at 00:40:00, which restores my RAM. (See ClipA attached) Nothing else short of a reboot will do that. Restarting any of the processes from within DA does not restore the ram. The only thing in crontab at that time are these DirectAdmin processes, and the time it happens favors the second one.
30 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
40 1 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
My thought is that by learning what DA does at that time, I may be able to determine the source of the leak.
I've tried about everything else. The php.ini doesn't load Zend or anything else anymore. I've tried lots of things with Apache, including MaxMemFree, KeepAliveTimeout, MaxKeepAliveRequests, but nothing I do in Apache seems to make any difference. At some point the CPU will go to 100% / 460 to 811 load, and stay there. I can log in and restart Apache, and after a time or two of that, I usually get past it, but never get much free back like I do at 00:40 or a reboot. What happens at 3? A backup starts at 1:30, finishes at 3, at which point the snapshot is removed.
The software I'm currently running is:
FreeBSD FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:14:35 UTC 2009 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
3 Gigs available RAM locked in.
Apache 2.2.17 Prefork CLI
Php 5.2.17
MySQL 5.0.77
Exim 4.71
dovecot 1.2.16
ProFTPd 1.3.3d
Named 9.4.3
Lowest traffic is at 3:00 and highest is 14:30 to 15:30 Eastern.
It's a head scratcher!
Thanks!
30 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
40 1 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
My thought is that by learning what DA does at that time, I may be able to determine the source of the leak.
I've tried about everything else. The php.ini doesn't load Zend or anything else anymore. I've tried lots of things with Apache, including MaxMemFree, KeepAliveTimeout, MaxKeepAliveRequests, but nothing I do in Apache seems to make any difference. At some point the CPU will go to 100% / 460 to 811 load, and stay there. I can log in and restart Apache, and after a time or two of that, I usually get past it, but never get much free back like I do at 00:40 or a reboot. What happens at 3? A backup starts at 1:30, finishes at 3, at which point the snapshot is removed.
The software I'm currently running is:
FreeBSD FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:14:35 UTC 2009 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
3 Gigs available RAM locked in.
Apache 2.2.17 Prefork CLI
Php 5.2.17
MySQL 5.0.77
Exim 4.71
dovecot 1.2.16
ProFTPd 1.3.3d
Named 9.4.3
Lowest traffic is at 3:00 and highest is 14:30 to 15:30 Eastern.
It's a head scratcher!
Thanks!