Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Error when starting apache

HP-UX


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 09-05-2016
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 7 December 2016, 9:59 PM EST
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
tcp 0 0 10.61.1.121.80 192.168.11.41.37274 CLOSE_WAIT
Sponsored Links
    #9  
Old Unix and Linux 09-05-2016
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 23 January 2017, 8:13 PM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,301
Thanks: 94
Thanked 1,434 Times in 1,066 Posts
Quote:
Originally Posted by anaigini45 View Post
tcp 0 0 10.61.1.121.80 192.168.11.41.37274 CLOSE_WAIT
That is NOT a process ID, it is the port number. "192.168.11.41.37274" is a "socket": a certain port on a certain IP address.

When we talk about "TCP connections" we are talking about something you can picture like a garden hose, where, instead of water, data can be pumped through (in both directions). This is also called a "virtual channel". The "sockets" are the end points at the two connecting systems where this garden hose is attached. In this case you have two systems connected: 10.61.1.121 and 192.168.11.41. The "garden hose" connects port 80 on the first system to port 37274 on the second.

You really should read the suggested book (or another, but i found this one to be the best to learn from) to understand basic networking concepts.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
RavinderSingh13 (09-05-2016)
Sponsored Links
    #10  
Old Unix and Linux 09-05-2016
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 7 December 2016, 9:59 PM EST
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Finally, the solution for this was to kill the 2 httpd processes listed from the lsof command :

Code:
# /usr/local/bin/lsof -i ":80" | grep "LISTEN"
top     13106  www    3u  IPv6 0xe00000038137cac0      0t0  TCP *:http (LISTEN)
top     13179  www    3u  IPv6 0xe00000038137cac0      0t0  TCP *:http (LISTEN)
#

After killing these 2 processes, all the CLOSE_WAIT connections were gone.
Then, I could restart the apache process once again.
    #11  
Old Unix and Linux 09-05-2016
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 23 January 2017, 6:40 PM EST
Location: Simplicity
Posts: 3,369
Thanks: 259
Thanked 1,104 Times in 1,000 Posts
Also check that

Code:
ndd -h tcp_time_wait_interval

is 1 minute (60000 miliseconds), not 4 or 10 minutes.
Still this can mean that when you stop a service like apache you must wait 1 minute until you can start it again.
Sponsored Links
    #12  
Old Unix and Linux 09-05-2016
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 23 January 2017, 8:13 PM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,301
Thanks: 94
Thanked 1,434 Times in 1,066 Posts
Quote:
Originally Posted by anaigini45 View Post
Finally, the solution for this was to kill the 2 httpd processes
[...]
After killing these 2 processes, all the CLOSE_WAIT connections were gone.
Then, I could restart the apache process once again.
This was exactly what i have told you in first place: the apache processes are named "httpd", not "apache".

bakunin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error while starting Apache after compiling PHP and Curl sunnysthakur Red Hat 1 12-03-2013 10:47 AM
Starting an Apache Server bssandeshbs UNIX for Advanced & Expert Users 4 11-21-2009 02:00 PM
Problems starting Apache 2.0.54 mojoman Web Programming 1 01-14-2009 09:49 PM
Error about SSLProtocol when starting Apache moe2266 UNIX for Dummies Questions & Answers 3 11-03-2007 04:25 AM
Starting Apache cstovall UNIX for Dummies Questions & Answers 4 12-04-2002 10:18 AM



All times are GMT -4. The time now is 12:59 AM.