Hi,
I'm experiencing strange PHP memory usage on a Sun SPARC machine running
Solaris 8:
I when I compile PHP 4.1.0 --with-mm to store session variables in memory
the resulting Apache (1.3.22) process(es) immediately uses 138 MB of RAM.
One can also observe an immediate significant reduction of available
swap-space. Compiled --without-mm, memory-usage of the Apache process(es) is
normal.
with-mm:
--------
% ls -l libphp4.so
-rwxr-xr-x 1 root root 2408468 Dec 11 23:27 libphp4.so
% /usr/ucb/ps auxwww | grep http
root 8670 0.9 1.0 138832 4848 ? S 18:44:34 0:00 /usr/apache/bin/httpd
nobody 8671 0.1 0.3 138848 1440 ? S 18:44:35 0:00 /usr/apache/bin/httpd
without-mm:
-----------
% ls -l libphp4.so
-rwxr-xr-x 1 root root 2330076 Dec 26 17:01 libphp4.so
% /usr/ucb/ps auxwww | grep http
root 8817 0.8 1.0 7656 4800 ? S 18:45:47 0:00 /usr/apache/bin/httpd
nobody 8818 0.1 0.3 7672 1440 ? S 18:45:48 0:00 /usr/apache/bin/httpd
In both versions (with-mm/without-mm) I've also enabled GD-, TTF-, DB3-,
MySQL-Support and several more.
Any hints how to reduce memory-consumption when using libmm?
Thanks.
Regards,
Markus
PS: The configure command-line
./configure \
--prefix=/usr/apache/php \
--with-apxs=/usr/apache/bin/apxs \
--with-config-file-path=/usr/apache/php \
--with-gd \
--with-jpeg-dir=/opt/sfw/lib \
--with-png-dir=/opt/sfw/lib \
--with-xpm-dir=/opt/sfw/lib \
--with-ttf \
--enable-gd-native-ttf \
--with-mysql \
--with-ttf \
--with-mm \
--enable-sockets \
--with-zlib=/usr \
--with-xml \
--with-db3=/opt/sfw \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--with-config-file-path=/etc/apache \
--enable-debug=no \
--enable-safe-mode=yes \
--with-exec-dir=/usr/apache/php/bin \
--enable-shared \
--enable-force-cgi-redirect=yes \
--enable-discard-path=yes \
--enable-inline-optimization
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]