1833861 Members
2425 Online
110063 Solutions
New Discussion

httpd memory usage

 
Tammy Liang
Regular Advisor

httpd memory usage

httpd daemon used up memory and cause apache server not function.
How can I find if there is any memory leak on httpd daemon?
My user stops by and tell me web server not working. I found there are 2 httpd used up a lot of memory. After I killed these 2 processes, apache is working again. Can it be memory leak at httpd daemon? Or I need to change on httpd.conf paramenter?
It is running on hp-ux 11.11 with hpuxwsAPACHE A.2.0.48.00 HP-UX Apache-based Web Server

Thanks for any advise.
take easy, enjoy life
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: httpd memory usage

Shalom,

Could be. Here is a tool to find out.

http://www.hpuxconsulting.com/mem.mon

Works with HP-UX, Linux and SunOS

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tammy Liang
Regular Advisor

Re: httpd memory usage

Thanks, Mainly I was wondering if anyone knows that there is memory leak issue on
hpuxwsAPACHE A.2.0.48.00 HP-UX Apache-based Web Server

Plus. hpux 11.11 does not have -o option for ps

ps -ef -o pid,sz,vsz,args | sort -nr -k 2,3 | head -20
ps: illegal option -- o
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]
dana5l2 ...hpws/apache/conf #
take easy, enjoy life
Bill Hassell
Honored Contributor

Re: httpd memory usage

> Plus. hpux 11.11 does not have -o option for ps

Did you check the man page? There are several options that are classified as part of the XPG4 standard so to use -o (and -C and -H), you must temporarily set the UNIX95 variable like this:

UNIX95=1 ps -ef -o pid,sz,vsz,args | sort -nr -k 2,3 | head -20


Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: httpd memory usage

The current apache version is 2.0.59.00, see

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW218

See http://www.apache.org/ for all the changes and fixed bugs.
Consider to upgrade.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!