Re: CGIs with MacOS 9.1 - problem
Re: CGIs with MacOS 9.1 - problem
- Subject: Re: CGIs with MacOS 9.1 - problem
- From: cris <email@hidden>
- Date: Thu, 12 Apr 2001 23:11:15 +0200
on 12.04.2001 18:40 Uhr, email@hidden at email@hidden wrote:
>
I've got a serious problem. I upgraded my server to MacOS 9.1 last nite, and
>
now all my CGIs will not work ("document contains no data") unless they are
>
permanently left open (achieved by removing the idle handlers which closed
>
them after 15 minutes). It's as if WebSTAR isn't giving them the script
>
enough time to run (they ran very quickly, under a second, with 9.04/AS
>
1.4.3).
If it's working when you remove the idle handler then you must have a quit
statement in it!?
Anyway, you might experiment with delays after your 'handle cgi' handler but
i wouldn't recommend that, the better way is to run the CGI's continuously.
>
The problem is that a script that is used only once a day now takes up
>
permanent residence in RAM, gobbling it up (I have many scripts).
I have about 15 scripts on the server running (not all CGI's). Beside few MB
of RAM it is absolutely no disadvantage with this. The servers performance
is not affected by idling scripts. And if you put 'return 86400' or
something like that into the idle handler it's very very very little cpu
usage no matter on what computer the things do run.
You can monitor the usage of RAM and the CPU with Peek-a-Boo for example
(search on versiontracker.com for it).
Greetings
cris :-)
--
English is my second language.
www.cooc.de