LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-01-2005, 10:30 PM   #1
natcd
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Sendmail processes = 97% of cpu


I am experiencing a problem with sendmail on my server. I have been using a system integrity monitor on the server and have recently been getting the following emails.

System integrity monitor on xxxxxxx.net has taken action in responce to an event. Recent event logs are enclosed below for your inspection. There has been 3 events today, if an average of 8 events is reached, e-mail alerts will be terminated for the duration of the day.

The events in question are the similar to the following:

Oct 31 10:40:35 sendmail: sendmail shutdown succeeded
Oct 31 10:40:39 sendmail: sendmail startup succeeded

When I run the TOP command I get the following information:

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
3414 root 25 0 2852 2852 2068 R 22.6 0.2 281:18 sendmail: ./j7U6mTQ29698: from queue
5918 root 25 0 2840 2840 2068 R 22.6 0.2 221:42 sendmail: ./j7U8P1j01281: from queue
15237 root 25 0 2848 2848 2068 R 19.6 0.2 157:32 sendmail: ./j83CUuw25958: from queue
8742 root 25 0 2840 2840 2060 R 17.0 0.2 192:03 sendmail: ./j81Cfh109118: from queue
11734 root 25 0 2840 2840 2060 R 17.0 0.2 172:13 sendmail: ./j82EYVe26050: from queue


I appears that sendmail is spawning processes that consume all the cpu. I have killed the sendmail process several times and the cpu goes back to the normal 2-5% range, however after about 40 minutes there are a few processes that are consuming 97-98% of the cpu. I did not see anything in the queue - I figured it might be trying to send something that was queued there due to the "from queue" listed by the TOP command.

I would appreciate any help in understanding why the processes are consuming so much cpu and how to kill or eliminate the processes themselves.

Thanks!
 
Old 11-02-2005, 12:44 AM   #2
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15
first of all try these things to find out why send mail is using more CPU time.

1) find out to whome is the send mail sending al mails. check /var/log/mail and see the mail queue and find out who was the recepient of all these mails( or most of those).
2) as which user is the sendmail running. It should never be running as root.
3) check ur root@localhost mail account (type mail at console and if u have problems go through man mail). From here you can have a comprehensive lokk at system generated mails to root mail account relating to common problem notification. Check andfind out which possible situation is occuring again and again that is making sendmail send mails and use CPU time considerably.

these are basic diagnosis steps that should get you going in the right direction is you are still stuck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU load high, top processes very low? Thinking Linux - Software 12 03-19-2007 12:59 AM
X Server taking CPU processes pradi_net Linux - Software 5 08-20-2004 01:58 AM
How can I capping the CPU usage of processes ideasman Linux - Software 0 04-01-2004 03:52 AM
how to find CPU and IO bound processes tuxrhl Linux - General 0 11-22-2003 01:11 AM
Seeing what processes are running and how much CPU they are using? DiZASTiX Linux - General 2 06-07-2003 03:05 PM


All times are GMT -5. The time now is 02:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration