[Mono-list] mod_mono threads

Adriaan adriaanvk at gmail.com
Thu Mar 29 05:10:55 EDT 2007


hi,

ok, it seems right when i start the request from different browsers, but
when i run the requests to a httphandler from the same browser, the first
time it seems multithreaded, but trying the second time let the latest
request wait. What's wrong here?

My apache2 configuration is:
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25  
MaxSpareThreads     75  
ThreadsPerChild     25  
MaxRequestsPerChild  0
</IfModule>

<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5   
MaxSpareThreads     10  
MaxThreadsPerChild  20  
MaxRequestsPerChild  0
AcceptMutex fcntl
</IfModule>

Greetings,

Adriaan



Michał Ziemski wrote:
> 
> Hi!
> 
> My bet would be that you have too few apache workers enabled.
> I cannot think of anything else without looking at the code (maybe some 
> lock inside?)
> 
> I have tested mod_mono with up to 20 concurrent reuqest to the same 
> resource (a httpHandler) and it
> worked without problems.
> 
> Cheers!
> Michał Ziemski
> 
> Adriaan napisał(a):
>> ok, thank you for you answer.
>>
>> After a while, the processes are stopped, but one, the main process. Now,
>> when i start a request to the server, which takes a lot of server time.
>> Now,
>> from another browser, try to start the same website. The website is
>> waiting
>> until the first request is ready, so, it seems not multithreaded. 
>>
>> How can i solve this?
>>
>> thank you in advance
>>
>> Adriaan
>>
>>
>>
>> Michał Ziemski wrote:
>>   
>>> Adriaan napisał(a):
>>>     
>>>> I have configured apache2 with mod_mono. When i start apache, i see 5
>>>> processes mod-mono-server2 started, but all but one are died after a
>>>> moment.
>>>> Thats logic because the same lock file is used:
>>>> /opt/mono-1.2.3/bin/mono
>>>> /opt/mono-1.2.3/lib/mono/2.0/mod-mono-server2.exe
>>>> --filename /tmp/mod_mono_server_default
>>>>
>>>> When i now start a httprequest which takes very long time, all other
>>>> clients
>>>> are still waiting for that process to stop. So, it seems, mod_mono is
>>>> not
>>>> multithreaded.
>>>> How can i configure mod_mono to run multithreaded?
>>>>
>>>> thanx in advance
>>>>   
>>>>       
>>> Hi!
>>>
>>> It takes a while to process the initial request, because mod_mono is 
>>> reading/parsing confgiuration files and compiling the page you 
>>> requested. The following requests would be processed immediately.
>>>
>>> Cheers!
>>> Michał Ziemski
>>>
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>>
>>>     
>>
>>   
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/mod_mono-threads-tf3450943.html#a9729559
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list