Forum Moderators: phranque

Message Too Old, No Replies

Apache server running out of threads

Runs out of threads, errors, lags, and hangs

         

jabbo

4:29 pm on Oct 26, 2009 (gmt 0)

10+ Year Member



So My Problem is, there comes always a Message when I start Apache in the .Log File:
Server ran out of threads to serve requests. Look at your ThreahPerChild settings.

Ive tested some threads like 200 or 1000, the same Problem is coming.

So i edited the Port to 70, then It worked for 1 Day.

But Apache was lagging, 60 - 80 %. I have many users, but the problem was not always there, its for 1 weeks.

So Im Really Desperated, what can I do?

Im using Xampp 1.7.2, im Thinking to use IIS, but I really dont know, how it works.

Please Help me!

jdMorgan

6:10 pm on Oct 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have any idea *why* you are running out of threads? For example, could there be a script not exiting, or is your KeepAlive timeput set too long?

There are too many possibilities to list, so we need a lot more information about the technology you're using on this site -- scripts, applications on a back-end server, AJAX?

Also, if the problem has existed for only one week, then what changed one week ago? Did your host "upgrade" your server, did you release a new version of a script?

The nature of a forum limits the extent to which we can help you; You're going to have to dig into this and get more information to help yourself.

Jim

jabbo

7:28 pm on Oct 26, 2009 (gmt 0)

10+ Year Member



kay.

Im Running Many Scripts with Php.

For Example JavaScript often & many Pictures.

You can Look:
<snip>

[edited by: jdMorgan at 11:45 pm (utc) on Oct. 26, 2009]
[edit reason] No URLs, please. See Terms of Service and Charter. [/edit]

jabbo

7:43 pm on Oct 26, 2009 (gmt 0)

10+ Year Member



Can it be a flood on my port 80 ?

Because when I edit the Port to 70 or 60 dont matter, it works Ö.ö

At the moment it works Ö.ö

jdMorgan

11:48 pm on Oct 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



JavaScript is processed client side, and so affects the number of threads only indirectly.

You'll have to ask your host about any possible DOS attacks on your port 80, or if you're self-hosted, you'll need to set up a packet monitor and check for this. If you are being DOSed, the usual 'fix' is to add firewall filters (or add a firewall).

Jim