[Mono-list] mod_mono threads

Christian Birkl christian.birkl at gmail.com
Thu Mar 29 13:10:03 EDT 2007


Isn't that the intended behaviour of ASP.NET? If you open a new "window" in
your browser the cookie store is probably shared, therefore you'll get the
same session and as far as I know requests at level session scope are
"syncronized".

2007/3/29, Adriaan <adriaanvk at gmail.com>:
>
>
> 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.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070329/00566c2e/attachment-0001.html 


More information about the Mono-list mailing list