[imp] Memory Usage

Fábio Gomes flgomes at fazenda.sp.gov.br
Thu Jan 9 15:40:24 PST 2003


Ty Robert,

   Only 18kb are been used for the process. And as you told me this is 
not good. But most of the libraries was linked to apache and php4 as shared.

   Please, what can you tell me about the pmap output. Thank you again:

***************************************************************************

00010000     696     664     664       - read/exec         httpd
000CC000      32      32      16      16 read/write/exec   httpd
000D4000  139344  118800  100456   18344 read/write/exec     [ heap ]
FDC02000       8       8       8       - read/write/exec     [ anon ]
FDD04000       8       8       8       - read/write/exec     [ anon ]
FDE06000       8       8       8       - read/write/exec     [ anon ]
FDF08000       8       8       8       - read/write/exec     [ anon ]
FE00A000       8       8       8       - read/write/exec     [ anon ]
FE10C000       8       8       8       - read/write/exec     [ anon ]
FE20A000       8       8       8       - read/write/exec     [ anon ]
FE20E000       8       8       8       - read/write/exec     [ anon ]
FE30C000       8       8       -       8 read/write/exec     [ anon ]
FE310000       8       8       8       - read/write/exec     [ anon ]
FE40E000       8       8       -       8 read/write/exec     [ anon ]
FE620000       8       8       -       8 read/write/exec     [ anon ]
FE680000    1032       8       8       - read/write/shared   [ anon ]
FEA50000       8       8       8       - read/shared       dev:199,5 
ino:52600
FEA60000       8       8       8       - read/shared       dev:199,5 
ino:134984
FEA70000       8       8       8       - read/write/exec/shared   [ anon ]
FEA80000      16      16      16       - read/exec 
en_US.ISO8859-1.so.2
FEA92000      16      16      16       - read/write/exec 
en_US.ISO8859-1.so.2
FEAA0000      40      40      40       - read/shared       dev:199,5 
ino:104908
FEAB0000      24      24      24       - read/exec 
pt_BR.ISO8859-1.so.2
FEAC4000       8       8       8       - read/write/exec 
pt_BR.ISO8859-1.so.2
FEAD0000      24      24      24       - read/exec         nss_files.so.1
FEAE6000       8       8       8       - read/write/exec   nss_files.so.1
FEAF4000       8       8       8       - read/write/exec     [ anon ]
FEB00000     416     392     392       - read/exec         ZendOptimizer.so
FEB76000      24      24      24       - read/write/exec   ZendOptimizer.so
FEB7C000      48       8       -       8 read/write/exec   ZendOptimizer.so
FEB90000      16      16      16       - read/shared       dev:199,5 
ino:329550
FEBA0000      48      48      48       - read/write/shared   [ anon ]
FEBB0000      24      24      24       - read/exec         libgen.so.1
FEBC6000       8       8       8       - read/write/exec   libgen.so.1
FEBD0000      88      88      88       - read/exec         libm.so.1
FEBF4000       8       8       8       - read/write/exec   libm.so.1
FEC00000    2256    2192    2192       - read/exec         libphp4.so
FEE42000     152     152     144       8 read/write/exec   libphp4.so
FEE68000      88      40       8      32 read/write/exec   libphp4.so
FEE90000     208     184     184       - read/exec         libresolv.so.2
FEED4000      16      16      16       - read/write/exec   libresolv.so.2
FEED8000       8       8       8       - read/write/exec   libresolv.so.2
FEEE0000       8       8       8       - read/exec         libcrypt_i.so.1
FEEF2000       8       8       8       - read/write/exec   libcrypt_i.so.1
FEF00000     984     968     968       - read/exec         libssl.so
FF004000      72      72      48      24 read/write/exec   libssl.so
FF016000      16      16       -      16 read/write/exec   libssl.so
FF020000       8       8       8       - read/shared       dev:199,5 
ino:209762
FF030000      40      40      40       - read/exec         liblber.so.2
FF048000       8       8       -       8 read/write/exec   liblber.so.2
FF050000     136     128     128       - read/exec         libldap.so.2
FF080000      16      16      16       - read/write/exec   libldap.so.2
FF090000       8       8       -       8 read/write/exec     [ anon ]
FF0A0000      24      16      16       - read/exec         libltdl.so.3.1.0
FF0B4000      16      16      16       - read/write/exec   libltdl.so.3.1.0
FF0C0000      16      16      16       - read/exec 
libmcrypt.so.4.3.3
FF0D2000      16      16      16       - read/write/exec 
libmcrypt.so.4.3.3
FF0E0000      24      24      24       - read/exec         libpam.so.1
FF0F6000       8       8       8       - read/write/exec   libpam.so.1
FF100000       8       8       8       - read/exec         libintl.so.1
FF114000       8       8       8       - read/write/exec     [ anon ]
FF120000       8       8       8       - read/write/exec/shared   [ anon ]
FF130000     120     120     120       - read/exec         libthread.so.1
FF15E000       8       8       -       8 read/write/exec   libthread.so.1
FF160000      48      48       8      40 read/write/exec   libthread.so.1
FF180000     688     688     688       - read/exec         libc.so.1
FF23C000      32      32       8      24 read/write/exec   libc.so.1
FF250000       8       8       -       8 read/write/exec     [ anon ]
FF260000      16      16      16       - read/exec         libmp.so.2
FF274000       8       8       8       - read/write/exec   libmp.so.2
FF280000     568     568     568       - read/exec         libnsl.so.1
FF31E000      40      40      24      16 read/write/exec   libnsl.so.1
FF328000      24      16       8       8 read/write/exec   libnsl.so.1
FF340000       8       8       8       - read/exec         libc_psr.so.1
FF350000      24      24      24       - read/exec         libpthread.so.1
FF366000       8       8       8       - read/write/exec   libpthread.so.1
FF370000      40      40      40       - read/exec         libsocket.so.1
FF38A000       8       8       -       8 read/write/exec   libsocket.so.1
FF390000       8       8       8       - read/exec         libdl.so.1
FF3A0000       8       8       -       8 read/write/exec     [ anon ]
FF3B0000     152     152     152       - read/exec         ld.so.1
FF3E6000       8       8       -       8 read/write/exec   ld.so.1
FFBBC000     208     208      80     128 read/write/exec     [ stack ]
--------  ------  ------  ------  ------
total Kb  148240  126400  107656   18744



***************************************************************************

robert sand wrote:
> It would be interesting to see how much of the memory used below is 
> actually shared memory.  Do a pmap -x pid on one of the httpd processes 
> at the end of the report you will see a total in kbytes of memory 
> usage.  The second number is the total amount of memory used by that 
> process and the 3rd is the amount of that total that is in shared 
> libraries.  If you are not using shared libraries the third number will 
> be very low to nothing.  This is bad.  A recompile of the software to 
> use shared libraries would be needed.
> 
> 
> Fábio Gomes wrote:
> 
>> Hi all,
>>
>>  I'm experiencing a high memory usage for my http process in my 
>> webmail machine. It is a Solaris 8 system, running in a Sun v880.
>>
>> Related softwares:
>>
>> apache_1.3.27
>> libmcrypt-2.5.3
>> mm-1.2.1
>> mod_ssl-2.8.12-1.3.27
>> openssl-0.9.6h
>> php-4.2.3
>>
>>
>> top output:
>>
>> 11910 usermail   4  38    0  192M  157M run    23:31  1.64% httpd
>> 21865 usermail   4  10    0  189M  153M cpu2   44:11  2.85% httpd
>> 14099 usermail   4  58    0  182M  145M sleep  23:42  0.60% httpd
>> 12249 usermail   4  53    0  182M  145M sleep  25:12  0.45% httpd
>> 12241 usermail   4  58    0  182M  144M sleep  25:05  3.31% httpd
>> 21427 usermail   4  58    0  160M  128M sleep  40:50  1.29% httpd
>> 21423 usermail   4  51    0  149M  127M sleep  50:38  1.94% httpd
>> 25002 usermail   4  58    0  145M  122M sleep  38:45  1.27% httpd
>> 24057 usermail   4  58    0  145M  121M sleep  29:14  1.25% httpd
>> 14452 usermail   4  52    0  143M  120M sleep  25:06  0.39% httpd
>>
>> Can anyone give me some directions?
>>
>> Thank you all,
>> Fabio Gomes
>>
> 
> 



-- 
@_{2**2..6*6}=split//,"?iGsDDbooe  eoin m-IsvveoF Tenlmt";print 
values%_,"\n"



More information about the imp mailing list