Tuesday, June 19, 2007

apr_thread_exit

This function destroys the thread's pool. This was causing Apache to crash because I was using the request's pool to create the preparation threads. I fixed this by creating a new pool for each thread.

Tuesday, June 12, 2007

Thread limit

As I starting threading the preparation phase, where I spawn a new thread for each subrequest, Apache would bring my system to a crawl.

I suspected that something was going on with threads because that was the only thing different than the previous phases.

I used this program and modified it to see if there was a limit for each process.

Seems my computer has a limit of 32,332 threads per process tree.

I am thinking of trying a thread pool next.

Tuesday, June 5, 2007