Re: Limiting resources used by scripts on web server
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 00:48:29 -0700 (PDT)
On Jun 30, 8:59 am, "graeme.piete...@xxxxxxxxx"
<graeme.piete...@xxxxxxxxx> wrote:
I had forgotten that TCLHttpd supports CGI, but it does rather negate
the advantages of using a server with TCL support.
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.
Well, you're asking too much I'm afraid. As soon as you insist on
servicing all requests from a single process (which is what you're
doing by rejecting CGI), pre-request memory accounting becomes
extremely hard.
More precisely, accounting by the OS becomes impossible (since the
heap is shared among all threads of a process), so must be done at the
application level. And when the application is Tcl, it turns out it is
hard because (1) Tcl_Objs are allocated globally, and not bound to a
thread/interp, (2) to my knowledge there is no instrumentation to keep
track of how many Tcl_Objs were created by a given thread/interp.
Advice: if you're worried by memory consumption of a single request,
my bet is that the granularity will be large enough for CGI to be an
acceptable vehicle. And it will give you 'ulimit' for free.
-Alex
.
- Follow-Ups:
- Re: Limiting resources used by scripts on web server
- From: Donal K. Fellows
- Re: Limiting resources used by scripts on web server
- From: graeme.pietersz@xxxxxxxxx
- Re: Limiting resources used by scripts on web server
- References:
- Limiting resources used by scripts on web server
- From: graeme.pietersz@xxxxxxxxx
- Re: Limiting resources used by scripts on web server
- From: Gerald W. Lester
- Re: Limiting resources used by scripts on web server
- From: graeme.pietersz@xxxxxxxxx
- Limiting resources used by scripts on web server
- Prev by Date: Re: Limiting resources used by scripts on web server
- Next by Date: How to know how many row(or column) has information in Excel file?
- Previous by thread: Re: Limiting resources used by scripts on web server
- Next by thread: Re: Limiting resources used by scripts on web server
- Index(es):
Relevant Pages
|