Long Running Apache Processes In Server-status
Feb 13, 2007
I'm not sure I understand the server-status page enough to know if this is a problem or not, but I have several processes that seem to run forever, or until I restart Apache. e.g.
Code:
13-1 21045 0/697/4264 W 59.45 19641 0 0.0 43.28 274.97 66.249.66.133 www.example.com GET /wp/2005/01/ HTTP/1.1
19-1 408 1/834/1831 C 83.52 32463 0 14.8 149.66 263.48 66.249.66.133 www.example.com GET /wp/ HTTP/1.1
30-1 14416 0/430/431 W 35.19 13347 0 0.0 37.42 37.44 66.249.66.133 www.example.com GET /wp/category/issues/ HTTP/1.1
They are almost always on a single domain (there's about 100 on the server) that's a Wordpress site. These processes are also almost always a search engine.
On the rare case I see them running on other domains on the same server they're always on Wordpress sites.
The longer the processes run, the more processor/memory they use, the more they slow the server down.
It seems to have just started in the past few weeks, I've had the site there for a couple years.
View 2 Replies
ADVERTISEMENT
May 1, 2009
I have some problems with apache.
As you can see below, long-live httpd processes use a lot of CPU / Ram.
Usually this processes caused high LA - 8-12.
Code:
%CPU CPU NI S TIME COMMAND
0.2 - 0 S 00:00:27 nginx: worker process
0.3 - 0 S 00:00:29 nginx: worker process
0.3 - 0 S 00:00:30 nginx: worker process
3.3 - 0 S 00:04:09 /usr/local/apache/bin/httpd -k start -DSSL
3.4 - 0 S 00:04:16 /usr/local/apache/bin/httpd -k start -DSSL
3.5 - 0 S 00:05:50 /usr/local/apache/bin/httpd -k start -DSSL
3.6 - 0 S 00:05:40 /usr/local/apache/bin/httpd -k start -DSSL
3.6 - 0 S 00:05:16 /usr/local/apache/bin/httpd -k start -DSSL
3.6 - 0 S 00:06:04 /usr/local/apache/bin/httpd -k start -DSSL
3.7 - 0 S 00:06:06 /usr/local/apache/bin/httpd -k start -DSSL
3.7 - 0 S 00:00:55 /usr/local/apache/bin/httpd -k start -DSSL
3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL
3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL
3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL
3.8 - 0 S 00:06:12 /usr/local/apache/bin/httpd -k start -DSSL
3.8 - 0 S 00:05:40 /usr/local/apache/bin/httpd -k start -DSSL
3.9 - 0 S 00:06:28 /usr/local/apache/bin/httpd -k start -DSSL
View 6 Replies
View Related
Mar 30, 2007
I have small issue with load speed of pages when number of apache running processes goes over +-310, during peak traffic of day. IE: They load really slow.
Here's pic of what I mean:
=> [url]
Only thing that fixes it temporarily (at least until peak traffic ends) is to stop either httpd or mysql for several seconds, as everything cools down, then start it back up. Stop/starting mysql usually has longer terms temporary fix.
Anyway, would you have any ideas on what to configure or change within the system in order to keep the processes under 300?
The load is normal. Even at load 40, pages are blistering fast, as long as processes are under 300. So it's got nothing to do with load.
View 8 Replies
View Related
Jul 21, 2008
why I have long processes on these two? (time wise)
7712 named 15 0 40088 39M 1688 S 1.1 1.9 50:33 0 named
13 root 15 0 0 0 0 SW 0.1 0.0 29:35 0 kjournald
iowait goes up and down too, along with server loads load average: 2.19, 2.76, 4.31
Do you think I need to change ext3 to ext2?
If so here's my fstab, which bits do I need to change?
LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
/tmp /var/tmp ext3 defaults,bind,noauto 0 0
Or should I troubleshoot for something else? If so how/what should I do?
View 0 Replies
View Related
Feb 5, 2008
so here is a simple question that i just can't seem to figure out.. when i run the command top or ps -auxw.. they show the httpd processes as the command httpd or /usr/sbin/httpd, but how do i know what file that is? is there anyway to find out what file that is actually getting executed or served?
View 2 Replies
View Related
Mar 22, 2008
I do a ps aux, and get a bunch of:
/usr/sbin/httpd
Each one takes up like 4% of the available ram - and when the ram is gone, the server dies (it doesn't have a swap file - half the time you can't even log in to it), and you have to reboot Apache.
I thought of limiting maxchilds, but would that break something else?
Should I just make a swap file? Will that defeat the point of creating child processes?
View 6 Replies
View Related
Apr 24, 2007
I have 2 almost similar webservers:
debian 3.2, P4 3GHZ, 1 Gb ram, kernel 2.6, apache2, php4
Initial apache2.conf:
Code:
Timeout 4
KeepAlive Off
KeepAliveTimeout 2
ServerLimit 1500
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1500
MaxRequestsPerChild 3000
</IfModule>
I update the sources.list on server 1 to mirrors of the new debian 4 etc . I run apt-get update and apt-get dist-upgrade . A whole bunch of things get updated (it was long time ago that I did this anyway). After some troubles with /boot/grub/menu.lst the server boots ok, and everything is well. This server used to have loads of 15-25 at peak times, but after the update its running very smooth with loads of 2-3 at the same peak times. I dont know why exactly, as I noticed updates in OS , kernel version (from 2.6.8x to 2.6.18) , apache2 , php (4.4.4-8+etch1) , and I also needed to update eaccelerator from 0.94 to 0.95 .
A few days later I update server 2. Everything seems to go the same, although the kernel version stays at 2.6.8-3-686. I dont think kernel version at start was exactly same at server 1. But the new php version is the same as server 1, and everything else looks the same too.
But when peak times are coming up, this server starts to have troubles. It is quickly rising to total of 200-300 processes , while server 1 always stays stable at 60-70.
Server 2 also reacts slow if I click somewhere on the site. It takes 5-10 seconds to show a new page. However the load stays pretty low at 1-2 . I see no big cpu usage and also no big memory usage. I have the impression that this server 2 is somehow wasting a lot of apache processes and is making things hard for itself without a real reason.
When I check the seperate mysql database server, I also notice a lot of processes.
Around 200-250 whereas it used to be 40-60. Sometimes this adds up so hard, that all webservers are blocked because mysql has too much processes. When I check the mysql connections, I see a few dozen things like 'unauthen ip:port Connect login' just hanging. All of them have the ip of webserver 2. Those extra apache processes are somehow hanging on to the mysql server without really doing something.
I dont know what is happening, but this server is underperforming very badly now. I managed to limit the problem by drastically lowering ServerLimit and MaxClients on webserver 2 , but this is no real solution. The server is still slow, at least now its not bringing down the others.
My question : what should I check for now ? I noticed a different structure in the conf files in debian etch, maybe something new has a bad influence on my old conf files? Is there something wrong with the combination of kernel+php version? I have no idea, please point me in the right direction so I can learn from this.
View 4 Replies
View Related
Oct 10, 2013
I'm new to fcgid on Windows. my current set up is as follows;
Windows Server 2008
Apache 2.4.4
PHP 5.3.27 (fcgid)
MySQL 5.6.14
1. Looking at windows task manager, each of my processes have 4 threads each. What does this mean?
2. Does the number of FcgidMaxProcesses x memory_limit = Total amount of memory required?
3. Number of Threadsperchild = number of FcgidMaxProcesses ?
I just want to know how these two work together.
View 18 Replies
View Related
Jan 14, 2014
Issue: Unable to access simple server status reports though server-status.(chrome could not find..)
Environment:
Home Lab; Win8(dont ask..)
apache 2.0(httpd-2.0.64-win32-x86-no_ssl)
*Fire down, router rules unrestrictive
set in httpd:
...
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from all
</Location>
...
Advanced mods, require compilation to standing installation of apache but the server status is said to be precompiled with the version.
View 6 Replies
View Related
Mar 24, 2014
i am trying to get server-status to display. when i have the following set:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from .myServer.com
</Location>
You don't have permission to access /server-status on this server.
View 3 Replies
View Related
Oct 22, 2009
I can access FTP, SSH and httpd is showed as running when i check with 'httpd status'. Memory ram has half of them left(except that swap is 0,0).
I can't access my site via browser
Why tried restarting
[root@web2 ~]# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@web2 ~]#
View 11 Replies
View Related
Jun 8, 2014
I have Apache 2.2.26 running on OS X 10.9.3.My situation is that I consistently get an error that client denied by server configuration when accessing /server-status.
View 1 Replies
View Related
Aug 6, 2014
We are currently using Apache 2.2.10 as the reverse proxy for the SAP portal server 7.3.1. The SAP applications are built based on webdynpro abap technology.2 of the apps are getting intermittent spinning circles. The Apache server will ultimately timeout and give the "bad request" and HTTP 400. We were never able to reproduce the problem except we do see users are running into them. Obviously, the problems occur very randomly, but often enough to generate a lot of support tickets. No error was generated in the sap system log.
Here is what I see from the apache access log and error log:
[31/Jul/2014:23:50:26 -0400] TLSv1 AES128-SHA "POST /sap/bc/webdynpro/sap/ZR_SSEPP_OPERATIONAL_SCHEDULE;sap-ext-sid=VcFRQjFOvu8TJYp9gDoeAA--4x1GQAg0MPPjCUEQif5iWQ--?sap-contextid=SID%3aANON%3asapprd_PR3_03%3aezUnW-FXtaYVyXREaAD7rxW0k8o5pk_n9RfjPfcB-NEW HTTP/1.1" 400 3004 "https://xxxxx/sap/bc/webdynpro/sap/ZR_SSEPP_OPERATIONAL_SCHEDULE;sap-ext-sid=VcFRQjFOvu8TJYp9gDoeAA--4x1GQAg0MPPjCUEQif5iWQ--" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)" 706345611
[Fri Aug 01 14:19:07 2014] [error] [client 10.4.53.198] (70014)End of file found: proxy: error reading status line from remote server xxxxxx, referer: https://xxxxx/sap/bc/webdynpro/sap/ZR_SSEPP_OPERATIONAL_SCHEDULE;sap-ext-sid=RaH2yjQlV6o7wVaj6wv6zA--LXTMFzjjKvcuwT*DXWoBmA--
I found bug 37770 and went to see the apache admin. But he thinks that the parameter(proxy-initial-not-pooled=1) that fixes the bug only applies to mod_proxy_http. However, we are using mod_proxy.
View 1 Replies
View Related
Oct 17, 2013
We have been using Apache 2.2.x with reverse proxy modules for our clients to access their OWA servers for over a year. I want to get us to Apache 2.4.x so I setup a test box with latest 2.4 on it. I fixed the config file issues since 2.4 has changes in it. OWA proxy is working on my test server with Apache 2.4. But with 2.4 I do have an issue I cannot figure out. Note that this does NOT occur with Apache 2.2. I get the following errors when using ActiveSync through reverse proxy:
[Thu Oct 17 12:19:11.670665 2013] [proxy_http:error] [pid 748:tid 8440] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : [client x.x.x.x:20311] AH01102: error reading status line from remote server mail.nameredacted.net:443
[Thu Oct 17 12:19:11.670665 2013] [proxy:error] [pid 748:tid 8440] [client x.x.x.x:20311] AH00898: Error reading from remote server returned by /Microsoft-Server-ActiveSync
So somehow with Apache 2.4 there is some sort of timeout that was not there with 2.2.
View 2 Replies
View Related
Jun 14, 2007
To start the process in the background how and hide him?
In the system CentOS is command "screen" There is the command screen
a system debian does not have this command, only "&" but I do not know her to use.
Please pass equivalents:
Centos: screen
Debian: &
Centos: [CTRL] + [A] + [D] (detach)
Debian: ?
Centos: screen -ls
Debian: ?
Centos: screen -r
Debian: ?
View 1 Replies
View Related
Oct 27, 2008
How stable is Apache for Windows XP Pro?
Can i get the mod_rewrite to work just fine?
Is this a good idea if im no linux buff, or should i just go ISS?
View 8 Replies
View Related
Nov 15, 2013
Server Version: Apache/2.2.22 (Unix)
On our production service, we've been getting numerous malformed POST requests to some of our CGI scripts that are showing up as 500 errors in our logs. They are malformed in the sense that the actual content length doesn't match the Content-Length specified in the request.
Here's the most trivial example I can come up with that reproduces the problem for us:
POST /some_valid_alias HTTP/1.1
Host: example.org
User-Agent: Arbitrary/1.0
Content-Type: multipart/form-data; boundary=---------------------------41184676334
Content-Length: 769
-----------------------------41184676334
In addition to the 500 error in the access log, we see the corresponding error in the error log:
(70014)End of file found: Error reading request entity data
Based on the nature of the POST request and the error response, it does appear that Apache is doing the right thing here.
The POST never actually makes it as far as the script being targeted (/some_valid_alias in the above example); in other words, Apache returns 500 to the client, writes the error to the error log and never executes the script.
Is there a way to capture/avoid internal Apache errors like 70014, and return some other HTTP status besides 500 (like 403)? It's particularly annoying in our case, because our server sends us an email for all 500 errors.
So far, our best "defense" against these 500 errors is to disallow POST for these aliases, which normally just ignore the POST data anyway (when the request is not malformed):
RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule ^/(some_valid_alias)(.*)$ $1$2 [R]
But this won't work for all our scripts, because in some cases we do want to permit POST.
View 2 Replies
View Related
Feb 21, 2007
I am rebuilding Apache on my server.
However, it has been stuck at "adding module mod_auth_passthrough.c" for the past hour , is it normal?
How long does rebuilding Apache normally take?
View 7 Replies
View Related
Jan 14, 2015
Apache keeps increasing processes and when it reaches 256 value, it crashes. These are the values from our conf file. This doenst happen everyday, it occurs once or twice a week and at random timing.
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
I enabled server-status and found request for index.html, is holding the processes. Only thing i see in access logs is ""OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)""
View 1 Replies
View Related
Jun 15, 2008
we have an option in WHM which we can view the Apache Process, but we don't have this option in PLESK, can I view Apache Process in PLESK too or from SSH?
View 3 Replies
View Related
Jun 10, 2009
how i can enable apache status like cPanel ! in directadmin
before im enabled
Location /httpd-status>
SetHandler server-status
</Location>
but seems its not like cPanel ( dont show IP and where file now downloaded ... and more information)
Server Version: Apache/2.2.3 (CentOS)
Server Built: May 28 2009 12:50:07
Current Time: Wednesday, 10-Jun-2009 05:59:10 EDT
Restart Time: Tuesday, 09-Jun-2009 13:39:08 EDT
Parent Server Generation: 0
Server uptime: 16 hours 20 minutes 1 second
19 requests currently being processed, 13 idle workers
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
PID Key:
4494 in state: W , 5241 in state: W , 3142 in state: _
4318 in state: _ , 4319 in state: W , 5173 in state: _
4175 in state: W , 5242 in state: W , 5174 in state: W ....
View 1 Replies
View Related
Apr 14, 2009
if anyone can provide me with some syntax help for Apache 2 CustomLog.
Basicly. I want my CustomLog LogFormat to only log entries when the status code is either 200 or 304.
I've looked over [url]
I just can't figure out how to only log those 2 status codes.
View 0 Replies
View Related
Nov 15, 2008
I am just checking apache status page in WHM
View 1 Replies
View Related
Nov 1, 2013
Pretty new to Apache and recently enabled teh Apache Server Status module.
A column is confusing me, after CONN/CHILD/SLOT is CLIENT, most of the addresses in this column are my own local addresses but I have a few which I don't recognise and show up on whois.net as follows;
203.188.201.201 = Yahoo Mail
199.87.232.177 = No Result
141.44.51.95 = Query terms are ambiguous
58.218.204.102 = CHINANET-JS
Why would these show on my status?
View 4 Replies
View Related
Jan 30, 2013
I am using the following mod_rewrite rule for shortened SEO friendly links: RewriteRule ^blog/([^/]*).html$ /blog/blog.php?pid=$1 [R=301,L]
For Google SEO reasons, will the shortened rewritten link created from above be the permanent link, from the R=301? Even though the longer link is still functional? Or, do I need to create a rewrite match 301 rule to push the long URL to the shortened URL permanently?
View 5 Replies
View Related
Jan 27, 2007
In Cpanel, If i click on Apache Status it tells me aload of website that have been visited recently, under the vhost column. It shows this but sometimes under those it shows aload of (unavailable). Why is this. Is this normal?
View 2 Replies
View Related
Mar 19, 2014
Is it possible to get current CPU usage from mod_status on Windows? I thought it's ExtendedStatus On directive required but still no CPU usage.
View 7 Replies
View Related