Re: Limiting resources used by scripts on web server



graeme.pietersz@xxxxxxxxx wrote:
What are my options for a webserver that will support TCL and allow me
to limit resources (especially memory) used by a script?

So far I have:

1) FastCGI and use a process supervisor and/or OS limits
2) Apache pre-fork with websh (or Rivet or mod_tcl?) and a similar
approach

As far as I can see there is no way of doing this with Aolserver,
TClHttpd or Wub. I have used TCLHttpd once before and liked it a lot,
Wub and AOlserver look good too (although Wub seems to lack
documentation). Is there a way I could use any of these?

TclHttpd supports cgi as well as threads, thus you could use the same limiting approach as #1.

Also, if you use TclHTtpd with Tcl 8.5, 8.5 give you several ways to control execution resource usage in a slave interp.


Bauk seems very nice, but hardly anyone seems to be using it. It does
what I want, but may not be well tested and there does not seem to be
much of a community.

Are there any other options I have missed?


--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Re: ANNOUNCE -- New Home for Web Services for Tcl
    ... tWSDL doesn't use any AOLserver specific API. ... package, maybe the threads package. ... In TclHttpd I hook my package to certain URLs -- I'm not at all sure how to ... Wub approach is more of a tool kit than a stand-a-lone server (like ...
    (comp.lang.tcl)
  • Re: Limiting resources used by scripts on web server
    ... to limit resources (especially memory) used by a script? ... TClHttpd or Wub. ... I have used TCLHttpd once before and liked it a lot, ...
    (comp.lang.tcl)
  • Limiting resources used by scripts on web server
    ... to limit resources used by a script? ... As far as I can see there is no way of doing this with Aolserver, ... TClHttpd or Wub. ... I have used TCLHttpd once before and liked it a lot, ...
    (comp.lang.tcl)
  • Re: tclhttpd - new maintainers?
    ... I rely on tclhttpd as a component in a production environment. ... choice for tclhttpd was made before Wub entered the scene. ... tclhttpd which is a good reason but sad one). ...
    (comp.lang.tcl)
  • Re: Who maintains Tclhttpd?
    ... The tracker contains several recent bugs, but no discussions, and nobody seems to take care about them... ... Nobody who submitted the bug had even provided a "clumsy workaround", but nobody who was assigned to the bug has done nothing. ... I think a lot of people have moved to Wub. ... The creator of Wub used to do more than a few commits to tclhttpd. ...
    (comp.lang.tcl)