Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: sj1410 on September 09, 2008, 11:59:46 AM

Title: httpd cpu 100% - URGENT
Post by: sj1410 on September 09, 2008, 11:59:46 AM
Hi,

need urgent help.

i am using sme 7.3. yesterday suddenly webmail & server-admin stopped working. i checked httpd process is taking 100% cpu, there is no error log, i am not able to solve the problem. kindly help

Regards

Swapnil Jain
Title: Re: httpd cpu 100% - URGENT
Post by: Daniel B. on September 09, 2008, 12:09:03 PM
Hi. Have you made some modifications (template-custom or db command)?

What does
Code: [Select]
httpd -t returns ?
Anything in /var/log/messages?
Title: Re: httpd cpu 100% - URGENT
Post by: sj1410 on September 09, 2008, 12:18:22 PM
httpd -t returns

Syntax OK

found nothing special in  /var/log/messages

Title: Re: httpd cpu 100% - URGENT
Post by: sj1410 on September 09, 2008, 12:21:38 PM
this is the only modification i did, but this was done 4 months before. no other modification


/sbin/e-smith/db configuration setprop passwordstrength Users none


/sbin/e-smith/db configuration setprop passwordstrength Admin none


/sbin/e-smith/db configuration setprop passwordstrength Ibays none

Title: Re: httpd cpu 100% - URGENT
Post by: janet on September 09, 2008, 12:34:56 PM
sj1410

Quote
there is no error log....found nothing special in  /var/log/messages

Try looking in various of the httpxxxx log files

To see the processes in use, & memory & CPU usage etc, try
top -i
and/or
htop

iptraf
may also be useful
Title: Re: httpd cpu 100% - URGENT
Post by: cactus on September 09, 2008, 12:43:32 PM
Once again, 100% processor usage on linux machines is not abnormal, the priority system (nice values) should distribute the resources over the running processes. Does your server still respond to other events, viewing logfiles, access on the command line?

You did not specify what you are using your webserver for. Are you serving websites, using dynamic content? Perhaps some of your websites cause the server to eat up all the resources because of some flaw in the websites code.
Title: Re: httpd cpu 100% - URGENT
Post by: sj1410 on September 09, 2008, 01:03:44 PM
cactus

other processes are running, but the httpd process is stuck up. i using httpd precess just for webmail not much users are there.
Title: Re: httpd cpu 100% - URGENT
Post by: cactus on September 09, 2008, 02:36:41 PM
cactus

other processes are running, but the httpd process is stuck up. i using httpd precess just for webmail not much users are there.

As your machine is still responsive I do not consider this an error. In contrast to windows it is quite normal to Linux systems to use up all processor power without becoming unresponsive. What are the specs of the machine, is this perhaps some old lowe-end system you had lying around somewhere?
Title: Re: httpd cpu 100% - URGENT
Post by: sj1410 on September 09, 2008, 05:13:05 PM
its core 2 duo 2 GB ram

but my httpd server is not accepting requests, its just showing

this is output of htop

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
4168 root 25 0 12776 4492 3340 R 100 0.2 4h45:58 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND
Title: Re: httpd cpu 100% - URGENT
Post by: sj1410 on September 10, 2008, 06:20:06 AM
i deleted the files in /etc/httpd/state/ restarted httpd and done. now its working.

thanks, htop helped me, it showed me the stack trace......?

Swapnil Jain
Indore