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


ADVERTISEMENT

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

Kjournald And Named - Long Processes

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

How Long Does Apache Rebuild Take

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

Hosting Live Zilla (live Chat Software)

Mar 30, 2009

I need to host livezilla (live chat software) . It needs php and mysql. Which host provider would you recommend? Its not running from my own server. I don't know why, but giving so many errors! I have seen people are using it ..

so, where do i host livezilla?

View 14 Replies View Related

Apachetop Or Other 'live' Monitoring Of Apache

Jan 28, 2008

What's the best way to monitor apache in as close to a live manner as possible. I am hoping to get something similar to Top that would show the current number connections, maybe the URL being hit and other stats of that nature.

I know I can use mod_status (either via WHM Apache Status) or outside of it, but that has to be constantly refreshed (manually or automatically) and creates GET /whm-server-status?refresh=60 HTTP/1.1 entries that kind of skew the stats, depending on how often you refresh.

Is apachetop a solid choice? Any downsides?

Is there a better tool to have a 'live' view of apache's activities?

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 :: 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 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

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

Apache :: Create Rewrite Match 301 Rule To Push Long URL To Shortened URL Permanently?

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

Live Streaming

Sep 11, 2008

If i want to have a video streaming whats the best way?

I mean im filming something at a studio and want this to be live broadcast to the internet through a server, how can this be done?

View 14 Replies View Related

RH 7.4 Live Upgrade

Jul 29, 2008

i have a server running RH 7.3 Plesk 8.1 and want to upgrade to new version, probably centos, are there any issues i should know about in regards to Plesk?

[url]

Even better can any one recommend someone to perform this for me?

View 2 Replies View Related

Local To Live

Jul 26, 2008

have only done static html sites in the past, but am ready to branch out and learn php and mysql. I have watched numerous video tutorials on php,mysql, dreamweaver cs3, and how they all work together.

I have followed all the steps on the tutorials and the website works great on my local testing server, but how in the world do I get it to work live on the internet! This is probably a very stupid question but I am at the point of not caring about looking stupid. I just want to know what Im missing/ doing wrong. The website is hosted with GoDaddy, (and the domain is registered with them as well).Am I supposed to have something set up there or a different server? I have tried using ftp to transfer all files over to the domain but when I visit the domain, the php pages do not work.

View 7 Replies View Related

What Do You Think Of Live Support?

Jan 29, 2008

What do you all think of 'Live Support'?

Personally, I use it. I like the friendly touch of talking to someone whom responds to my questions directly.

Do you think Live Support is good for;

1. Nothing
2. Sales
3. Tech Support
4. Emergency, etc.

In my experience, Live Support has often been used for technical assistance, and while this is great if you are a one man shop, it doesnt work very well with shift tech support.

Sales is a bit more direct, but - I would personally still prefer a 'record' of the conversation that the client could point to.

Live support may have a valid use during emergency situations, however I am doubting that the personalities that actually answer these live chats can provide any authoritative answers other than 'It'll be ok'.

So, does live chat have a future in Web Hosting, in your opinion?

View 8 Replies View Related

Live Broadcasting

Apr 28, 2008

I have 250-500 dollar budget to beging hosting a social network website with live broadcasting and video streaming capabilities-let's say that it will be something similar to www.livevideo.com. I need a hosting company in USA--Texas is a good place. Let's say that the first month is going to have 200 users a day, and videos are going to be high resolution.

View 2 Replies View Related

How To Live Machine

Nov 25, 2008

I have a server in my office. I also have a ADSL router which is connected in ethernet. Now my question is how do I make this machine Live?

View 4 Replies View Related

Live Tv Streaming

Mar 12, 2008

i want to ask you something if you know...we have the support of a small tv channel here in my area...they want to have their program live in the net....do you know any good company to give good prices of media live streaming or anything that i can see to help me....maybe some resseler plans in these??...any advices for the type of streaming...

View 4 Replies View Related

How Long Does It Usually Take KickAssVPS.com

Aug 27, 2008

Signed up and paid the first month for a 'Linux Entry' + 1 GB mySQL around 4:45PM today. It's now 11:21PM and I have not heard anything or received any Emails for remote access. Does it usually take this long?

Reading thru this site they seemed to be one of the best if your on a $30/month budget.

Maybe setting up the Linux stuff takes longer for them than Windows?

View 10 Replies View Related

List Too Long

Jul 17, 2007

root@server [~]# replace ns3.host.com ns1.host.com -- /var/named/*
-bash: /usr/bin/replace: Argument list too long

How can I work past this?

Using Centos 4.5 / cpanel

View 4 Replies View Related

How Long Should Setup Take

Apr 16, 2007

I bought a VPS its taken 18 hours still no setup is this normal?

View 11 Replies View Related

How Long Does Burst Ram Last

Oct 31, 2007

If you have a vps, how long does the 'burst' actually last?

View 5 Replies View Related

Live Streaming Or Broadcasting

Apr 3, 2009

I am going to make professional broadcasting TV in internet,

I will buy HD camera and good computer but I have got some questions:

1. Can I make broadcasting on my own? I mean get software and get hosting and put there streaming code? Is it possible?

2. As I target for only local viewers is not it better to broadcast on my own rather than get service like Mogulus, blinkoTV Ustream?

3. Do you know any good software for professional TV broadcasters? which one?

4. On an average what hosting package I will need if I will have more than 500 at the same time viewers?

5. my friend told I can broadcast with windows media server, what is it and is it professional?

View 14 Replies View Related

Live Video Streaming

Nov 3, 2006

A client has contacted me about live streaming. He wants to broadcast a live meeting over the internet so that other people can watch it.

I've never looked in to something like this - I guess I need to find some software that will let me re-broadcast the stream - ie someone at the meeting would connect to my server and stream it up to the server, and my server would then broadcast it out to anyone who is connected.

So, what sort of software should I be looking at? Are there any guides around on the internet or anything that can help me out?

View 0 Replies View Related

Streaming Live Video

Dec 6, 2007

I have been looking through the forum, but I have had a hard time finding much about this topic. I am attempting to broadcast live video feed on my website and I wanted to set it up so people can view the live streaming video directly on their web browser. I use mostly Windows based servers(Windows 2003 Server and XP Pro). I have looked at different video streaming programs like flash, media player, and divx, which would be the best for what I am trying to do? Computer power and bandwidth are not an issue with my current setup. If anyone has any experience or knowledge on this I would be very grateful for your input. I would appreciate any information involving any of the steps in this process from capturing the video to having users access it on my website.

View 5 Replies View Related

How To Add CNAME For Domains.live.com

Jul 17, 2008

I'm new for cpanel

and I want to add CNAME for domains.live.com and the requiered information

DNS Record Type: CNAME
Host: 250953144
Value: domains.live.com

I enter edit dns zone
like the picture attached

I don't know if i should delete the www and mail or leave it like this please told me how to do to make it valid with domains.live.com

View 4 Replies View Related

Mirroring Live Server...

Sep 4, 2006

I'm a web designer - not an IT guy, as such I'm not 100% on setting up servers/dev environments etc...

I'm freelance and currently working in-house for a client that has set up a dev server that supposedly mirrors their live site - its a catalogue site with loads of dynamic elements.

The dev site they've set up displays only the html, no images or stylesheets link up when i preview them in dreamweaver as they don't logically link to the page as the pages are templates drawn from various folders.

What I want to know is is it possible to mirror a dev server exactly like the live website so the scripts etc all work as they do on the live site. I'm pretty sure it is as I've worked on dev servers before but not one like this bloody mess. The IT bods here seem to think the dev server is the best that is achievable - are they right? am I missing something???

I can't really answer any technical questions apart from i think the dev server is an apache server - what do i need to explain to the IT bods to get my point across?

View 0 Replies View Related

Hostclear Live Support

Jan 18, 2009

I just wanted to post a chat log I had with hostclear.com's live support. This was a ten minute long chat. You tell me what you think. Keep in mind that hostclear.com only has 1 package. They sell nothing other then a $3.95 cent package.

You are now chatting with 'Andrew'

Andrew: Welcome to Live Chat support, how may I help you?
matt: Andrew, your 3.95$/month package can be used as a reseller account?
matt: Does the cPanel come with WHM
matt: hello?
Andrew: Hello Matt
Andrew: Please allow me some time to check
Andrew: We do not currently offer reseller accounts with WHM on our shared hosting plans.
matt: it says in your terms that we could resell you just won't support our clients
Andrew: If you want you can resell it to anybody, but you need to take care of it as we do not support it.
matt: how many ftp accounts are allowed?
Andrew: Please allow me some time to check
matt: You offer only one plan and you don't know the answer quickly to the simplest of questions.
Andrew: Let me get that information for you. Meanwhile your patience is appreciated.
Andrew: Its unlimited
Andrew: You can create unlimited ftp accounts.

This thread will probably get deleted but I think that a host that is listed amongst the top ten at www.webhostingstuff.com should be told about. I am a reseller, and I was looking for a better package. I don't think that this should be deleted.
This is a ten minute log.

View 8 Replies View Related

.htaccess In Small Live

Apr 6, 2009

Small live does not support having .htaccess as one of the file. I am working on a A 301 Redirect page. Is there any other way to do this without using .htaccess?

View 2 Replies View Related







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