oversized httpd process?
Hi, I saw many posts from google regarding to this question, but there were no definite answers.. some say, it's mod_ssl, some say it's mod_perl, some say it is mm. But my case, it just doesn't make much sence to me at all. Here are the 2 test machines that I have, both have the exact same configuration A is a lot more powerful than B machine A, p4 3.0 2GB Mem machine B, p2 450Mhz 128MB Mem Both have mod_php, mod_ssl, and no traffic has been sent. Looking at the httpd sizes, I start to wonder ... How come Machine B only uses around 15Mb per httpd, while machine A takes 155Mb, and while they have exactly the same software, same configuration. Can somebody please tell me why this is happening? What did I do wrong? machine A: last pid: 9085; load averages: 0.00, 0.00, 0.00 up 0+05:52:01 00:13:28 33 processes: 1 running, 32 sleeping CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 48M Active, 84M Inact, 92M Wired, 8K Cache, 112M Buf, 1779M Free Swap: 4071M Total, 4071M Free PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 440 root 960 155M 17412K select 0 0:02 0.00% 0.00% httpd 9078 www 960 155M 17412K select 0 0:00 0.00% 0.00% httpd 9079 www 200 155M 17412K lockf 0 0:00 0.00% 0.00% httpd 9080 www 200 155M 17412K lockf 0 0:00 0.00% 0.00% httpd 9081 www 200 155M 17412K lockf 0 0:00 0.00% 0.00% httpd 9082 www 200 155M 17412K lockf 1 0:00 0.00% 0.00% httpd machine B: last pid: 19765; load averages: 0.00, 0.00, 0.00 up 80+00:30:59 00:15:25 32 processes: 1 running, 31 sleeping CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 19M Active, 46M Inact, 30M Wired, 5100K Cache, 22M Buf, 17M Free Swap: 231M Total, 21M Used, 210M Free, 9% Inuse PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 50855 www 200 16348K12K lockf0:00 0.00% 0.00% httpd 50856 www 200 16280K12K lockf0:00 0.00% 0.00% httpd 50854 www 200 15272K12K lockf0:01 0.00% 0.00% httpd 50853 www 200 14972K12K lockf0:01 0.00% 0.00% httpd 50852 www 200 12480K12K lockf0:00 0.00% 0.00% httpd 50858 www 200 12352K12K lockf0:00 0.00% 0.00% httpd 50857 www 960 12352K12K select 0:00 0.00% 0.00% httpd 50851 root 960 12336K 1560K select 0:59 0.00% 0.00% httpd ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: oversized httpd process?
In the last episode (Aug 24), Lei Sun said: I saw many posts from google regarding to this question, but there were no definite answers.. some say, it's mod_ssl, some say it's mod_perl, some say it is mm. But my case, it just doesn't make much sence to me at all. Here are the 2 test machines that I have, both have the exact same configuration A is a lot more powerful than B machine A, p4 3.0 2GB Mem machine B, p2 450Mhz 128MB Mem Both have mod_php, mod_ssl, and no traffic has been sent. Looking at the httpd sizes, I start to wonder ... How come Machine B only uses around 15Mb per httpd, while machine A takes 155Mb, and while they have exactly the same software, same configuration. Try running lsof on both processes. Since SIZE is 155M but RES is a lot smaller, there may be a large file being mmapped by one system and not the other. machine A: PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 440 root 960 155M 17412K select 0 0:02 0.00% 0.00% httpd machine B: PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 50855 www 200 16348K12K lockf0:00 0.00% 0.00% httpd -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: oversized httpd process?
Now that I think about it, I did install the eaccelerator for php, and configured it to take 128Mb for eaccelerator.shm_size. It also appears that when I reboot the machine A without pointing my browser to it once, the httpd processes are quite small. BUT... Even with the 2 php application that I installed (phpmyadmin, mediawiki), I don't think there should be that much caching going on. Since if I add the total size of the 2 application together, they won't even hit 20MB. In other words, my understanding would be: even if eaccelerator wants to cache them all, eaccelerator wouldn't be able to find that much stuff to cache, and it would always be less than 20MB. Am I expecting the right thing? On 8/24/05, Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Aug 24), Lei Sun said: I saw many posts from google regarding to this question, but there were no definite answers.. some say, it's mod_ssl, some say it's mod_perl, some say it is mm. But my case, it just doesn't make much sence to me at all. Here are the 2 test machines that I have, both have the exact same configuration A is a lot more powerful than B machine A, p4 3.0 2GB Mem machine B, p2 450Mhz 128MB Mem Both have mod_php, mod_ssl, and no traffic has been sent. Looking at the httpd sizes, I start to wonder ... How come Machine B only uses around 15Mb per httpd, while machine A takes 155Mb, and while they have exactly the same software, same configuration. Try running lsof on both processes. Since SIZE is 155M but RES is a lot smaller, there may be a large file being mmapped by one system and not the other. machine A: PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 440 root 960 155M 17412K select 0 0:02 0.00% 0.00% httpd machine B: PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 50855 www 200 16348K12K lockf0:00 0.00% 0.00% httpd -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: oversized httpd process?
In the last episode (Aug 24), Lei Sun said: Now that I think about it, I did install the eaccelerator for php, and configured it to take 128Mb for eaccelerator.shm_size. It also appears that when I reboot the machine A without pointing my browser to it once, the httpd processes are quite small. BUT... Even with the 2 php application that I installed (phpmyadmin, mediawiki), I don't think there should be that much caching going on. Since if I add the total size of the 2 application together, they won't even hit 20MB. In other words, my understanding would be: even if eaccelerator wants to cache them all, eaccelerator wouldn't be able to find that much stuff to cache, and it would always be less than 20MB. Apparently eaccellerator mmaps the entire shm segment whether it is currently using it or not. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]