News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Apache2 instances keep growing with page refreshes

Started by shadowandlight, September 10, 2014, 02:59:33 PM

Previous topic - Next topic

shadowandlight

hello... on my web server after maybe a day, the URL wont resolve.... but the IP address works great.

if i run
ps aux | grep apache2 | wc -l
it showed 150 + instances of apache running...  the only thing i knew to do was restart apache, which fixed the problem and started apache back at around 14 instances.   

if i refresh the homepage and then run
ps aux | grep apache2 | wc -l
the number creeps up by one.

I am totally clueless on what to do to fix this...

Version Information:
Forum version: SMF 2.0.8 (more detailed)
Current SMF version: SMF 2.0.8
GD version: 2.0
MySQL version: 5.5.37-0ubuntu0.12.04.1
Memcached: ???
PHP: 5.3.10-1ubuntu3
Server version: Apache/2.2.22 (Ubuntu)

Arantor

Are they active processes, sleeping processes or zombie processes?

How is Apache configured? It sounds like you're using prefork, in which case it's doing *precisely* what it's supposed to be doing: spawning child processes to handle requests when made up to its limit (default 255)

shadowandlight

sorry im obviously a novice at this.

any guides to get you the info your looking for?

Arantor

Not really... I'm just fairly sure that it's doing exactly what it's supposed to be doing...


LiroyvH

Quote
hello... on my web server after maybe a day, the URL wont resolve.... but the IP address works great.

What does that have to do with Apache?
Apache doesn't resolve DNS, you should look at your nameserver software (like bind) if your URL won't resolve.
That the site is still accessible by IP means that at least Apache is doing its job just fine.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Advertisement: