Russian Apache mailing list archive (apache-rus@lists.lexa.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
[apache-talk] Почему так?
Hello apache-talk,
Провел небольшой экперимент. Сбилдил две разные версии апача.
Первый с таким образом:
./configure --disable-module=so --enable-module=rewrite --add-module=src/mod_bandwidth.c --activate-module=src/modules/php4/libphp4.a
make
make install
В итоге получил httpd размером 1,525,852 байт
httpd -l выдает следующее:
http_core.c
mod_charset.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_bandwidth.c
mod_php4.c
ps -axu
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
nobody 1790 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1791 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1792 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1793 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1794 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1795 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1796 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1797 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1798 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
nobody 1799 0.0 0.4 3072 2328 ?? I Tue05PM 0:00.00 /usr/local/apache/bin/httpd
Теперь билдю второй апач:
./configure --enable-module=so --enable-module=rewrite --add-module=src/mod_bandwidth.c
make
make install
В итоге получил httpd размером 645,543 байт
httpd -l выдает следующее:
http_core.c
mod_charset.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
mod_bandwidth.c
ps -axu
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
nobody 28517 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28518 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28519 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28520 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28521 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28522 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28523 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28524 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28525 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
nobody 28526 0.0 0.4 3064 2328 ?? I 12:25PM 0:00.00 /usr/local/apache/bin/httpd
Т.е. памяти апач в обоих случаях жрет одинаково.
Так как же выгоднее (с точки зрения использования системных
ресурсов) компилить апач с PHP?
Best regards,
Alexander Isaev mailto:A.Isaev@xxxxxxxxxx
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
Спонсоры сайта:
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE .
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin . Design (C) 1998 Max Smolev.