Re: Limiting resources used by scripts on web server



On Jun 29, 8:45 pm, "Gerald W. Lester" <Gerald.Les...@xxxxxxx> wrote:
graeme.piete...@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.

I had forgotten that TCLHttpd supports CGI, but it does rather negate
the advantages of using a server with TCL support.


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

If I understand the documentation, there are limits on time but on
memory. If I am wrong about it would solve the problem very nicely.
.



Relevant Pages

  • 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)
  • 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: 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)