LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2011, 04:30 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Rep: Reputation: 2
xinetd recreate it self


Code:
>ps -ef | grep xin

root      1656     1  0 JanXX ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      2605  1656 99 12:13 ?        02:05:58 xinetd -stayalive -pidfile /var/run/xinetd.pid
any ideas ?

Last edited by PoleStar; 01-24-2011 at 04:32 PM.
 
Old 01-24-2011, 05:44 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Pretty sure this is normal, from memory the child does the actual listening for connections, once it accepts a connection the parent spawns a new child to handle new connections
 
Old 01-24-2011, 07:06 PM   #3
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Original Poster
Rep: Reputation: 2
but the thing is we have same set up on many servers, only on few of them we had this multiple xinetd intense going on.
Problem is child process takes up almost all the cpu resources.
 
Old 01-24-2011, 08:23 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Maybe it could help if you:
- compare Xinetd and OS versions where it does and doesn't work,
- the same for /etc/xinetd.conf and /etc/xinetd.d contents,
- explain why you force "-stayalive",
- if wherever it sends its log lines to holds any clues, and
- if you tried debugging Xinetd ("-d")?
 
Old 01-24-2011, 08:39 PM   #5
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Original Poster
Rep: Reputation: 2
-stayalive is in xinetd startup script, by default. I did not force it.
I only used plain old

Code:
>service xinetd start
Rest I will test.

Last edited by PoleStar; 01-24-2011 at 08:44 PM.
 
Old 01-27-2011, 12:24 PM   #6
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Original Poster
Rep: Reputation: 2
Ok so here is the situation now.

Reason I find more multiple xinetd running on the system is,

1-xinetd fork itself to fulfil nrpe request.
2-then child process exits.
3-very rarely child is not able to exit properly.
4-yet according to normal procedure parent xinetd create a next child process.

Now the thing is

(out put from lsof)
Code:

etd    26133      root    0u     IPv4   3333                  TCP host-with-issue.mycompany.com:36421->ad.mycompany.com:ldap (ESTABLISHED)
xinetd    26133      root    1u     IPv4   3333                  TCP host-with-issue.mycompany.com:36424->ad.mycompany.com:ldap (ESTABLISHED)
xinetd    26133      root    5u     IPv4   333                  TCP *:nrpe (LISTEN)
xinetd    26133      root    6u     IPv4   3333                  TCP host-with-issue.mycompany.com->192.1.XX.XX:XXXX (CLOSE_WAIT)
xinetd    26133      root    7u     unix 33333             50072649 socket
xinetd    26133      root    0u     IPv4   333                  TCP host-with-issue.mycompany.com:36421->ad.mycompany.com:ldap (CLOSE_WAIT)
xinetd    26133      root    1u     IPv4   3333                  TCP host-with-issue.mycompany.com:36424->ad.mycompany.com:ldap (CLOSE_WAIT)
for some reason xinetd go thround active Directory, and probably active directory acts up and xinetd gets hung.

1-Can we make xinetd not to go through active dir??

Last edited by PoleStar; 01-27-2011 at 12:26 PM.
 
Old 01-27-2011, 04:32 PM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Changing the authentication model isn't really the way to fix this problem, you should probably start looking at your openldap client config
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recreate samba PDC cahalsall Linux - Server 2 08-19-2016 04:04 AM
recreate md-raid edgjerp Linux - Hardware 3 05-01-2008 05:45 PM
How to recreate Gnome panel tulip4heaven Linux - Newbie 6 03-28-2006 01:37 AM
recreate swap samhob Linux - General 11 02-07-2004 11:04 AM
how to recreate mysql database java8964 Linux - Software 1 07-25-2002 10:30 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration