Koozali.org: home of the SME Server

httpd cpu 100% - URGENT

Offline sj1410

  • *
  • 7
  • +0/-0
httpd cpu 100% - URGENT
« 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: httpd cpu 100% - URGENT
« Reply #1 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?
C'est la fin du monde !!! :lol:

Offline sj1410

  • *
  • 7
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #2 on: September 09, 2008, 12:18:22 PM »
httpd -t returns

Syntax OK

found nothing special in  /var/log/messages


Offline sj1410

  • *
  • 7
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #3 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


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #4 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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd cpu 100% - URGENT
« Reply #5 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline sj1410

  • *
  • 7
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #6 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd cpu 100% - URGENT
« Reply #7 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline sj1410

  • *
  • 7
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #8 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

Offline sj1410

  • *
  • 7
  • +0/-0
Re: httpd cpu 100% - URGENT
« Reply #9 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