cPanel gone crazy and quering apache every second

sehh

Well-Known Member
Feb 11, 2006
579
6
168
Europe
One of the cPanel processes (maybe chkservd?) is hitting my apache hard with GET requests, once every second! This started after the level 2 upgrade of cPanel v11 STABLE.

take a look at this:

Code:
127.0.0.1 - - [19/Dec/2007:09:13:23 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:24 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:25 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:26 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:27 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:28 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:29 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:36 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:37 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:38 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:40 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:41 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:42 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:43 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:44 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:45 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:46 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:47 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:48 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:49 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:50 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:51 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:52 +0000] "GET / HTTP/1.0" 200 114
127.0.0.1 - - [19/Dec/2007:09:13:53 +0000] "GET / HTTP/1.0" 200 114
Can someone please help trace which process is doing that?
 

sehh

Well-Known Member
Feb 11, 2006
579
6
168
Europe
I've stopped "chkservd" and the log file continues to grow with those "GET / HTTP/1.0" requests.

Is there another cPanel component which performs such a GET request?
 

sehh

Well-Known Member
Feb 11, 2006
579
6
168
Europe
I found out what the problem is:

EA3 adds the following configuration lines:

Code:
NameVirtualHost *
and...

Code:
<VirtualHost *>
    ServerName server.domain.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin [email protected]
</VirtualHost>
the problem is the asterisk, which causes the dummy_connection function to open and close a connection every second.

if the above lines are commented out, then the dummy connection stops.

PS:
this is with apache 2.2.
 
Last edited:

bonjurkes

Member
Jul 3, 2005
22
0
151
I guess also i have the same problem, i just caught it at apache status, last records were like that

91-1 - 0/0/95 . 0.12 248 0 0.0 0.00 6.10 127.0.0.1 server.xx.com GET / HTTP/1.0
92-1 - 0/0/114 . 0.14 253 0 0.0 0.00 7.68 127.0.0.1 server.xx.com GET / HTTP/1.0
93-1 - 0/0/165 . 0.00 1501 0 0.0 0.00 0.57 127.0.0.1 server.xx.com GET / HTTP/1.0
94-1 - 0/0/116 . 0.12 1456 0 0.0 0.00 3.84 127.0.0.1 server.xx.com GET / HTTP/1.0
95-1 - 0/0/86 . 0.14 1419 0 0.0 0.00 1.63 127.0.0.1 server.xx.com GET / HTTP/1.0
96-1 - 0/0/205 . 0.02 1494 0 0.0 0.00 4.08 127.0.0.1 server.xx.com GET / HTTP/1.0
97-1 - 0/0/171 . 0.53 2331 0 0.0 0.00 2.00 127.0.0.1 server.xx.com GET / HTTP/1.0
98-1 - 0/0/83 . 0.02 2491 0 0.0 0.00 4.52 127.0.0.1 server.xx.com GET / HTTP/1.0
99-1 - 0/0/95 . 0.14 2501 0 0.0 0.00 6.90 127.0.0.1 server.xx.com GET / HTTP/1.0
100-1 - 0/0/223 . 0.15 2437 0 0.0 0.00 2.42 127.0.0.1 server.xx.com GET / HTTP/1.0
101-1 - 0/0/13 . 0.00 2512 0 0.0 0.00 3.35 127.0.0.1 server.xx.com GET / HTTP/1.0
102-1 - 0/0/75 . 0.04 2420 0 0.0 0.00 5.78 127.0.0.1 server.xx.com GET / HTTP/1.0
103-1 - 0/0/174 . 0.00 2449 0 0.0 0.00 4.32 127.0.0.1 server.xx.com GET / HTTP/1.0
104-1 - 0/0/254 . 0.25 2407 0 0.0 0.00 12.63 127.0.0.1 server.xx.com GET / HTTP/1.0
105-1 - 0/0/63 . 0.05 2483 0 0.0 0.00 0.59 127.0.0.1 server.xx.com GET / HTTP/1.0
106-1 - 0/0/372 . 1.36 2118 0 0.0 0.00 2.27 127.0.0.1 server.xx.com GET / HTTP/1.0
107-1 - 0/0/247 . 0.19 2420 0 0.0 0.00 4.61 127.0.0.1 server.xx.com GET / HTTP/1.0
108-1 - 0/0/130 . 0.10 2412 0 0.0 0.00 5.23 127.0.0.1 server.xx.com GET / HTTP/1.0
109-1 - 0/0/19 . 0.00 2494 0 0.0 0.00 0.08 127.0.0.1 server.xx.com GET / HTTP/1.0
110-1 - 0/0/207 . 1.17 2058 0 0.0 0.00 1.51 127.0.0.1 server.xx.com GET / HTTP/1.0
111-1 - 0/0/25 . 0.00 2485 0 0.0 0.00 1.34 127.0.0.1 server.xx.com GET / HTTP/1.0
112-1 - 0/0/194 . 0.08 2431 0 0.0 0.00 9.42 127.0.0.1 server.xx.com GET / HTTP/1.0
113-1 - 0/0/85 . 0.34 2403 0 0.0 0.00 4.09 127.0.0.1 server.xx.com GET / HTTP/1.0
114-1 - 0/0/163 . 0.44 2252 0 0.0 0.00 3.79 127.0.0.1 server.xx.com GET / HTTP/1.0
115-1 - 0/0/114 . 0.00 2517 0 0.0 0.00 4.43 127.0.0.1 server.xx.com GET / HTTP/1.0
116-1 - 0/0/47 . 0.18 2380 0 0.0 0.00 0.74 127.0.0.1 server.xx.com GET / HTTP/1.0
117-1 - 0/0/102 . 0.23 2286 0 0.0 0.00 2.38 127.0.0.1 server.xx.com GET / HTTP/1.0
118-1 - 0/0/128 . 0.00 2487 0 0.0 0.00 4.90 127.0.0.1 server.xx.com GET / HTTP/1.0
119-1 - 0/0/30 . 0.06 2467 0 0.0 0.00 3.68 127.0.0.1 server.xx.com GET / HTTP/1.0
120-1 - 0/0/103 . 0.27 2279 0 0.0 0.00 2.41 127.0.0.1 server.xx.com GET / HTTP/1.0
121-1 - 0/0/156 . 1.13 2265 0 0.0 0.00 8.93 127.0.0.1 server.xx.com GET / HTTP/1.0
122-1 - 0/0/11 . 0.00 2457 0 0.0 0.00 3.16 127.0.0.1 server.xx.com GET / HTTP/1.0
123-1 - 0/0/14 . 0.00 2523 0 0.0 0.00 1.19 127.0.0.1 server.xx.com GET / HTTP/1.0
124-1 - 0/0/9 . 0.00 6497 0 0.0 0.00 0.04 127.0.0.1 server.xx.com GET / HTTP/1.0
125-1 - 0/0/10 . 0.00 6518 0 0.0 0.00 0.78 127.0.0.1 server.xx.com GET / HTTP/1.0
126-1 - 0/0/8 . 0.06 6501 0 0.0 0.00 0.07 127.0.0.1 server.xx.com GET / HTTP/1.0
127-1 - 0/0/14 . 0.06 6480 0 0.0 0.00 0.15 127.0.0.1 server.xx.com GET / HTTP/1.0
128-1 - 0/0/11 . 0.00 6509 0 0.0 0.00 0.19 127.0.0.1 server.xx.com GET / HTTP/1.0
129-1 - 0/0/33 . 0.21 6153 0 0.0 0.00 0.47 127.0.0.1 server.xx.com GET / HTTP/1.0
130-1 - 0/0/2 . 0.00 6529 0 0.0 0.00 0.02 127.0.0.1 server.xx.com GET / HTTP/1.0
131-1 - 0/0/112 . 0.22 6436 0 0.0 0.00 6.39 127.0.0.1 server.xx.com GET / HTTP/1.0
132-1 - 0/0/23 . 0.00 6495 0 0.0 0.00 0.02 127.0.0.1 server.xx.com GET / HTTP/1.0
133-1 - 0/0/20 . 0.00 6512 0 0.0 0.00 0.02 127.0.0.1 server.xx.com GET / HTTP/1.0
134-1 - 0/0/9 . 0.25 6483 0 0.0 0.00 0.75 127.0.0.1 server.xx.com GET / HTTP/1.0
135-1 - 0/0/30 . 0.29 6429 0 0.0 0.00 0.37 127.0.0.1 server.xx.com GET / HTTP/1.0
136-1 - 0/0/15 . 0.00 6491 0 0.0 0.00 4.11 127.0.0.1 server.xx.com GET / HTTP/1.0



So do i need to comment out all 4 rows you said?
 

sehh

Well-Known Member
Feb 11, 2006
579
6
168
Europe
Yes, thats correct, you have to comment out all 4 lines.
 

bonjurkes

Member
Jul 3, 2005
22
0
151
now when i start or stop apache it shows this warning

[Fri Dec 21 13:01:35 2007] [warn] NameVirtualHost *:0 has no VirtualHosts

is it ok?
 

sehh

Well-Known Member
Feb 11, 2006
579
6
168
Europe
I'm sorry, i forgot to mention that you also need to comment out the following line:

Code:
NameVirtualHost *
edit: i also edited my solution above to include this line as well.
 
Last edited: