Bursty traffic exhausts thread resource limits

Description

Using a worker thread per accepted socket is a problem on Apache 1.3 or prefork 2.x when lots of new requests come in. Thread creation is failing under conditions that suggest a kernel resource is exhausted after only a couple hundred threads are in use.

Need to add a new listener plugin or modify the old ones to use a thread pool and queue accepted sockets to and from the workers.

Environment

None

Activity

Show:

Scott Cantor December 17, 2010 at 2:39 PM

Closing after release.

Scott Cantor January 21, 2010 at 11:50 AM

http://svn.middleware.georgetown.edu/view/cpp-sp?view=rev&revision=3221

Added option to control stack size from the Listener config, which should limit memory exhaustion from large thread pools.

Scott Cantor January 7, 2010 at 7:53 PM

Early indications are this may not be easy, and the problem may be solvable by reducing the stack size for the threads using ulimit.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Created January 5, 2010 at 4:27 PM
Updated December 17, 2010 at 2:39 PM
Resolved January 21, 2010 at 11:50 AM

Flag notifications