In the httpd.conf file of Apache there is the following parameter: ThreadsPerChild 50. With this value when two users connect on my site simultaneously, I face Apache crashes (if running Rivet with ActiveTCL or a non thread-enabled TCL version). A workaround is to set this parameter to 1. But that means that the server no longer manages more than one request at a time, in a performance point of view that's unacceptable.
I found another project using TCL that give me the idea of compiling TCL sources with threads enabled. According to the author, ActiveTCL isn't thread enabled so I thought that it could be the reason of my Apache crashes. What is your opinion on this point ? Here is the page, I've just talked about: http://hammerora.sourceforge.net/installation.htm (§ Installation from source) Cyrille -----Message d'origine----- De : David N. Welton [mailto:[EMAIL PROTECTED] Envoyé : mercredi 2 novembre 2005 22:18 À : Cyrille VIVION Cc : [email protected] Objet : Re: help- having problems with apache and rivet50 under windows Cyrille VIVION wrote: > > Windows 2000 ; Rivet 0.5 ; Apache 1.3.33 ; ActiveTCL 8.4.11 > --> with this configuration the stdout problem does not appear but I have > some troubles with concurrent connection (multithreading related). Urhm... concurrent connections to Apache? > I've download and compiled the TCL sources 8.4.11 (and even 8.4.9) with the > multithreading activated. > --> In this case I face the same problem, the stdout as disappeared : > > can not find channel named "stdout" > while executing > "puts -nonewline """ > (in namespace eval "::request" script line 2) > invoked from within > "namespace eval request { > puts -nonewline "" > ... > By compiling again the sources without the multithread support, it works > with the same limitations as with ActiveTCL (no concurrent conection). As > French say : Fromage ou Dessert. I am not clear on this. Tcl can handle lots of concurrent connections using its built in select loop. So can Apache, at least on Unix... I'm not sure about the architecture of Apache 1.3 on windows though... does it only use threads? > A work around would be to have one interpreter by connection, is it possible > ? On Unix, Apache 1.3 has child processes that each have a select loop to accept connections. Each child process only has one Tcl interpreter (well, plus any extras needed for Virtual Hosts). > I invested weeks of work to port some legacy Vignette TCL code to Rivet. > It's incredible to be blocked on this kind of simple problem. Do you have > some ideas? You are my only hope. Use Linux or some BSD system?:-) Joking aside, we'll do our best to get you up and running. -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
