Maxim wrote: >>>> Or setting the environment variable MONO_THREADS_PER_CPU to >>>> something greater than the default of 5? >>> Yes, we set MONO_THREADS_PER_CPU=2000 for all web-sites. Before it we >>> get other more annoing issue "Service Temporary available". >> That's a lot of threads.... > This is limit for amount of all mod_mono threads running simulatelously? > Or for threads of particular web-site?
From the mono man page: "The maximum number of threads in the general threadpool will be 20 + (MONO_THREADS_PER_CPU * number of CPUs). The default value for this variable is 5." Across websites, then. > So, we should try to decrease MonoMaxActiveRequests and increase > MonoMaxWaitingRequests? Yes. > Should it depends on type of CPU and OS? The idea is to keep the concurrency down in mono, so the amount of concurrency will depend on how well the server is able to keep up with requests. However, I am not sure why if you set MONO_THREADS_PER_CPU so high there should be a problem, unless there's a bug more complicated than simply running out of threads, or if ASP.NET has some other thing going on to limit the number of threads used. -- - Josh Tauberer http://razor.occams.info "Yields falsehood when preceded by its quotation! Yields falsehood when preceded by its quotation!" Achilles to Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter) _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list