Operating System - HP-UX
1826521 Members
4281 Online
109695 Solutions
New Discussion

HP-UX Apache-based Web Server consume 100% of the CPU

 
SOLVED
Go to solution
A.K.
Frequent Advisor

HP-UX Apache-based Web Server consume 100% of the CPU

I have HP-UX Apache-based Web Server (A.1.0.00.01) installed on R Class using HPUX 11.00
It is being used as an internal web server for internal application (no connection to the outside world)
For some reason every 10 days or so suddenly one of the apache processes
consume 100% of the CPU for no practically reason there is noting in the
log files(apache log file) that will indicate whatâ s wrong.
Once I restart apache the problem disappears and after 10 day it will reoccur.
Anyone has an idea whatâ s wrong or where do I begin to look
Thanks,
A.K.

#top command
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 1629 www 152 20 3952K 4436K run 7193:17 100.50 100.33 httpd
1 ? 33 root 152 20 0K 0K run 5:44 1.13 1.13 vxfsd
1 ? 1630 www 152 20 4464K 4992K run 2:16 .53 0.53 httpd

#ps â ef|grep 1629
www 1630 1617 0 Mar 5 ? 2:16 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
root 1617 1 0 Mar 5 ? 0:56 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
www 1629 1617 0 Mar 5 ? 7193:23 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
www 1619 1617 0 Mar 5 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache
1 REPLY 1
Steven E. Protter
Exalted Contributor
Solution

Re: HP-UX Apache-based Web Server consume 100% of the CPU

1) Patch to a later release if possible.
2) ipcs -ma see if there is enough shared memory
3) If not enough shared memroy in 2, consider increasing shmmax and shmseg

consider increasing maxusers which will up nproc nfile etc.

Possibly run my data collector script while its happening to see if there is trouble. See attachment.

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