Apache :: Processes Keep Increasing And Hence Crashing

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


ADVERTISEMENT

Plesk 11.x / Linux :: How To Stop High Number Of Httpd Processes Crashing Server

May 17, 2014

Our server is running; Plesk 11.0.9 and CentOS 5.7 it has a Q8200 CPU @ 2.33GHz and 2GB of RAM. Now there are just two websites on the server plus a couple of redirects/forwarding domains, although lots of domains are still on the server but turned off in Plesk. Both websites are OSCommerce sites and I just need to keep these sites going until the end of the year when we will switch to our new Joomla based website.

We have seen an increasing number of server crashes and after various checks of the logs, fitting a new BIOS battery, check of the hardware by EasySpace who host the server, installation of ClamAV, LMD and RKHunter (which did find some Trojans and Suspect software), I have traced it down to some external Http activity that is taking all of my CPU time and RAM. Here is a screen capture of the Htop listing and when I killed these processes the CPU and RAM went back to normal. The problem is that I usually have to restart the HTTPD service and sometimes things get so bad that the server crashes and I have to request a power cycle.

View 8 Replies View Related

Increasing The Apache ServerLimit In Apache 2.2.8 Version.

May 28, 2008

The Linux Server got down when the MaxClients 256 is reached.
Error Log:

"server reached MaxClients setting, consider raising the MaxClients setting"

So that I have tried to increased the MaxClients Value to 500, after changed the value in httpd.conf and restart I get following error message.

" [notice] SIGHUP received. Attempting to restart
WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive."

So that I tried changed the Server limit in /usr/local/apache/include/httpd.h header file. but it seems like there is no entry.

Apache Version : 2.2.8

So I have added the ServerLimit 500 entry in httpd.conf file and restart the httpd service. But still shows the same warning mesg. Please help me regarding this.

We have the Dedicated server for Flash Game Server with following configuration.

RHEL4 OS
2GB RAM
Intel(R) Xeon(R) X3210 @ 2.13GHz
Cpanel Installed.
Apache 2.2.8
PHP 5.2.4
MySQL 4.1.2 (MySQL Server is working in differend server)

View 7 Replies View Related

Apache Keeps Crashing

Feb 25, 2008

I've been having problems for the past two weeks. Apache and MySQL kept crashing. I tweaked MySQL, and MySQL stopped crashing. But Apache still crashes, sometimes twice a day, sometimes once every few days. It's driving me crazy. It started around the same time I acquired a new customer, so it's possible the customer has some sort of script or something that is causing problems, but I'm not quite sure how to determine whether the problem is the server itself, or if it's the customer.

So here am I, asking you experts for whatever assistance you feel willing to render. Even if you only merely read it, I thank you for at the very least taking the time to read it. Thanks in advance for any and all assistance given. That being said, here's the information the "How To: Request help from the experts" sticky recommended giving. I also took the liberty of including httpd.conf and my.cnf. I apologize if that resulted in being too much information, and humbly ask a moderator to "white out", or so to speak, (or at least point out) the information that shouldn't be shown.

Linux OS: CentOS release 4.6 (Final)
Kernel Version: 2.6.9-023stab044.4-enterprise
Control Panel: Plesk 8.2.1
Hardware information: 20 GB storage, 256MB RAM, 1 TB bandwidth

Results of "php -v":

PHP 5.2.5 (cli) (built: Jan 19 2008 10:08:24)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
with Xdebug v2.0.2-dev, Copyright (c) 2002-2007, by Derick Rethans
Results of "SELECT VERSION;" in MySQL:

Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1134
Server version: 5.0.54 Source distribution

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> SELECT VERSION();
+-----------+
| VERSION() |
+-----------+
| 5.0.54 |
+-----------+
1 row in set (0.00 sec)
Results of "ps auxf"

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1628 608 ? Ss 12:41 0:00 init [3] ....

View 11 Replies View Related

Apache :: HTTPD Crashing On Its Own

Jul 12, 2013

httpd 2.4.4 x64 with php 5.5 x64 and mysql 5.6 x64, it worked just fine the first few days, but after a week or so, I'm starting to get this error:

[mpm_winnt:notice] [pid 1928:tid 552] AH00428: Parent: child process 8092 exited with status 255 -- Restarting.

What can cause that and how can I fix it?

View 2 Replies View Related

Apache :: ISAPI DLL Crashing

Jan 29, 2013

i have custom dll built with Delphi that used to work on IIS 5/6/7. After i migrated to apache, DLL started to crash after an hour or two and i have to restart the server. The error was something about bad header. Since the developer says DLL is handling reponses OK and i can't get anything with debug logging on apache side can i run DLL as CFG/FastCGI (not that versed with apache so maybe this question does not make sense)?

View 4 Replies View Related

Apache Allocating Too Much Memory - And Crashing

May 17, 2008

I've got a complicated problem and I can't figure out what I need to edit to fix this.

I've been messing with the httpd.conf and php.ini files trying to optimize them as best I can. I've managed to get the load to stay pretty low all day, and everything seemed to be working fine. But then apache crashes.

(See screenshot for details)

httpd starts out with 70-150 VIRT memory, and it constantly goes up all day, and I've yet to see it go down. And, eventually it just crashes Apache! In the screenshot it's 502m, but I've seen that get as high as 800! And sometimes I even see a number like this "80376" no "m" or anything, just "80376"; I've no idea what that's about.

So what do I need to edit or tweak to fix this?

I'm on a cPanel linux server, Apache 2.2.8 and PHP 5.2.6.

View 5 Replies View Related

Apache Httpd Service Crashing

May 17, 2008

It's been happening on both my old and new server, was really hoping this would be fixed.

Basically, the httpd/apache service crashes or goes down making domain names and sites unable to load; although cPanel/WHM still accessible. This would go on for about 5 minutes OR until I restart httpd in root.

sites simply do not load or just timeout after a period of time.

This has become extremely annoying for both me and my clients because it makes it seem like we have downtime.

View 11 Replies View Related

Apache :: 2.4 Mod Session Crypt Crashing Server

Apr 30, 2012

I am trying to encrypt my session using the following directive

Session On
SessionCookieName session path=/
SessionCryptoPassPhrase sec

We are using form based authentication.

use of SessionCryptoPassPhrase crashes the server. If I dont use that directive it does not encrypt and works fine.

I see this error in application event log

Faulting application httpd.exe, version 2.4.2.0, faulting module libaprutil-1.dll, version 1.4.1.0, fault address 0x00002f14.

View 19 Replies View Related

Long-live Apache Processes

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

How To Keep Number Of Apache Running Processes Down

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

Apache Takes All The Server's Ram With Child Processes

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

Server Update, Too Many Apache Processes But Low Load

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

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 View Related

Apache :: Number Of Fcgid Processes On Windows Server

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

Weekly Offsite CPanel Backup Process Crashing Apache/bind

Mar 19, 2007

Right now I am using the built-in cpanel backup feature to backup all the accounts on my server to an offsite FTP backup account I have on a weekly basis. The problem I am having is that everytime the backup runs, the load (thats what I'm guessing is the cause) is crashing apache/bind, causing sites to be unreachable until I can restart the services. What options do I have to resolve this issue? Currently I already have spri installed, and it does help out a bit, but its still not enough.

View 4 Replies View Related

Increasing Max_user_connections

Jun 3, 2007

any problem increasing max_user_connections ? (for example 600)

View 2 Replies View Related

My Consumed Space Is Keep Increasing - Do You Know Why

May 24, 2008

I have bought a hosting from new hosting company.

I have total 5GB space wherein I can host unlimited domains.

When I uploaded my files ( for 4 sites ) I saw that I have used total 16 MB. But today when I logged in there I noticed that the cPanel shows that I have used total 22.75 MB

But I didn't upload anything that may take upto 6MB space

I just uploaded few images that may take maximum 100KB.

My hosting provider said this

"The extra disk space could be email messages stored on the server, mysql database files, etc... All these things are accounted for within your disk space."

But I replied that I don't use any database and I don't have any single email in my account so how that space can by consumed? Waiting for their further reply.

View 14 Replies View Related

Increasing APC Cache Memory Size

Dec 11, 2008

Right now APC shm_size is set to30 and since I am only using about 20% of the RAM in VPS, I thought it would be best to increase it a bit. Now how do I go about doing that?

View 2 Replies View Related

Increasing Server Capacity / CPanel

Apr 13, 2008

I'm trying to start a website on a shoestring budget, but my programmer and host want to squeeze more out of us. We currently have a Custom VPS, w/cPanel and WHM. Everytime I try to upload a file(s) more than 10 mb, it will not go thru. My programmer told me to ask the server to increase capacity, they tell me it will cost me. My programmer says the same thing. Now if my programmer can do it, I assume it will be done through cPanel. Is there anyway I can do it myself, so for example, a file of lets say 25 mb will get uploaded? I have access to my cPanel.

View 14 Replies View Related

VPS Disk Quota Status Keeps Increasing Every 2 Days

Aug 18, 2008

I have had over 4 different VPS providers and in all of them, I was always using less than 5 gigs and most of it is from the OS and the VPS files, my website is less than 400 megs of size including the backups. For some reasons, my Disk Quota is at 8.3 gigs and it was at 8.2 gigs yesterday. My website's files are not that big and the Database is like 30 megs and the backups are compressed so they are like 4 megs. The problem is that I really don't know what files are making my Disk Quota to go up since I haven't uploaded anything or download files to my VPS.

View 6 Replies View Related

Increasing The Expiration Time For SSL Certificate For Exim

Jul 12, 2007

I issued a self-signed certificate for Exim by running the following commands:

Code:
openssl req -new -x509 -keyout /etc/exim.key.tmp -out /etc/exim.cert
openssl rsa -in /etc/exim.key.tmp -out /etc/exim.key
rm -f /etc/exim.key.tmp
service exim restart
The problem is the certificate expires after one month. I have already edited my /usr/share/ssl/openssl.cnf with the following lines in order to increase this expiration time to one year and it worked for the SSL certificate issued for Apache, but it has no effect on the Exim certificate.

Code:
default_days = 365 # how long to certify for
default_crl_days= 365 # how long before next CRL

Should I edit another file or set it on another place? Does anyone know?

View 0 Replies View Related

Ddos :: Server Filelimits: Increasing File System Limits Succeeded

Jul 7, 2008

floodkoruma is a script which securing our servers from syn floods. But I couldnt understand our connection lost from server on that screen. Last screen is it.

last log messages

Jul 7 19:41:27 server filelimits: Increasing file system limits succeeded
Jul 7 19:42:25 server kernel: printk: 234 messages suppressed.
Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed.
Jul 7 19:49:42 server syslogd 1.4.1: restart.
Jul 7 19:49:42 server syslog: syslogd startup succeeded

as you can see I rebooted from apc server. But before it

Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed.

View 5 Replies View Related

Plesk 11.x / Windows :: Increasing Server Configured Values For Client Timeouts

Sep 25, 2013

The last packet successfully received from the server was 60.410.682 milliseconds ago. The last packet sent successfully to the server was 60.410.687 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'auto Reconnect= true' to avoid this problem.

View 2 Replies View Related

AWSTATS Stats Decreasing While Webalizer Stats Are Increasing

May 23, 2008

I look after a number of sites and monitor their stats. We use both webalizer and AWSTATS so we can have a comparison. Up until recently the stats for both of them where relatively the same, webalizer usually showing higher numbers as it doesn't filter bots but the progression of increase and decrease in stats was proportional. However, over the last few months a curious trend is appearing, the stats in AWSTATS are decreasing every month whereas the stats in Webalizer are increasing, the gap between them now is huge.

View 0 Replies View Related

Mysql Keeps Crashing ...

Nov 2, 2009

Today on a server of mine mysql keeps crashing and I need to manually restart it over and over, the load as well keeps spiking quite high until I stop mysql for a few minutes. There isn't a extra load of traffic or anything as I have the same amount of users on several other servers doing more then this one.

How do I tell exactly whats happening from then how would I go about fixing it?

Basically it mysql crashes and needs to just be manually restarted via ssh.

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved