1833347 Members
3210 Online
110051 Solutions
New Discussion

hp-ux & apache & cpu

 
Luiz Souza
Occasional Contributor

hp-ux & apache & cpu

Hello,

I an using Apache 1.3.4 in a HP-UX 11.20 system. This system has 4 processors and I could verify that apache, by itself, is running with 100% of CPU1 utilization. I think that this is too much for apache.

Can anyone help me ou comment about this?

thanks & regards,

Luiz Souza
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: hp-ux & apache & cpu


Do you have glance installed?

BTW, you don't need to post the same question three times, once is enough.

live free or die
harry
Live Free or Die
Vincent Fleming
Honored Contributor

Re: hp-ux & apache & cpu

It could be too much... but how much traffic is the Apache server processing?

Can you tell us anything from glance or any Apache instrumentation?

No matter where you go, there you are.
Luiz Souza
Occasional Contributor

Re: hp-ux & apache & cpu

hello, thanks!

I suppose that this is too much because here we don't have a significative traffic.

I think that there is something wrong.

I also have other doubt: whats is glance? Sorry, but I am not very familiar yet.

thanks & regards,

Luiz
Vincent Fleming
Honored Contributor

Re: hp-ux & apache & cpu

Glance is an HP-UX performance monitoring tool.

Can you tell us exactly how much is "not a significant amount" of trafic? Have you tried tracing what Apache is doing?

Poorly formed HTML pages can cause a lot of extra work from Apache.

You may also be getting hacked - someone on the internet hitting your webserver in a denial-of-service attack or simply someone trying to break into your system.

You need to look at things like this to find the source of the problem.

No matter where you go, there you are.
Bill Hassell
Honored Contributor

Re: hp-ux & apache & cpu

Apache is simply providing the web pages stored on the system. A very badly coded web page will require Apache to compute a lot of data unnecessarily. To verify that this is the case, stop and restart the Apache server. If the load goes to nothing, then most likely, someone had selected the bad web page.

If Apache has a high load immediately after a restart, you may have a bad config file for Apache.

Look in your Apache logs...you may see some nasty things going on.


Bill Hassell, sysadmin
Niraj Kumar Verma
Trusted Contributor

Re: hp-ux & apache & cpu

Hi,

Try the following


check for the httpd.conf syntax

# httpd -T

# httpd -V
Niraj.Verma@philips.com
U.SivaKumar_2
Honored Contributor

Re: hp-ux & apache & cpu

 
Innovations are made when conventions are broken
Luiz Souza
Occasional Contributor

Re: hp-ux & apache & cpu

Thank you all.

I checked how many instances of HTTPD were running. (ps -ef | grep httpd).

I found 12 differents PIDs for httpd. Is this right? Is there any way that I can set only one HTTPD instance? Is it good?

thanks & regards


Luiz