php3-list | 200003
Date: 03/18/00
- Next message: UOL: "[PHP3] FILES"
- Previous message: Henry F. Marquardt: "RE: [PHP3] instances on server?"
- In reply to: Dean James: "[PHP3] instances on server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
No, a perl CGI script is not persistent (unless you do something
extraordinary to make it persistent).
It services one request then dies. On busy servers this can become a problem
because the overhead of loading the CGI and then unloading it for each
request can become significant. Also, if the code is large and you get many
requests at the same time for this CGI, you may run out of memory because
each request loads a new copy of the CGI. This is probably what your Java
friend was referring to. The Java servlet model keeps the "script" loaded
and is able to service multiple requests from one copy of the code so the
server doesn't spend so much time loading scripts.
Regards
Roy
----- Original Message -----
From: "Dean James" <sacramone <email protected>>
To: "Meltzer, Kevin" <KMeltzer <email protected>>
Cc: <cgi-list <email protected>>; <php3 <email protected>>
Sent: Saturday, March 18, 2000 11:16 AM
Subject: [CGI] instances on server?
> Hello,
> I am slightly confused here.. could someone shine some light.
>
> -->I created a perl script and its running fine. Anyways, one of our Java
guys
> said that the server could be stressed because the perl script is created
many
> instances on the server. What is he talking about and do these Instances
"go
> away" once someones browsing session is over. Is it possible that my
script is
> behind persistant and not closing?? and thus many people accessing the
script are
> causing many "instances" to be opened and not closed.
>
> The script only checks form radio elements and then displays info based on
what
> the person selected. doesn't open or write to any files etc...
>
> please advise.
> james
>
> -----------------------------------------------------------------
> To unsubscribe, send mail to "majordomo <email protected>" with "unsubscribe
cgi-list"
> in the body.
>
> CalendarPlus v3.0 with JavaPlus is available NOW!
> http://www.calendarplus.com/
>
> The CGI Tips & Tricks website (and archive of the list) is located
> at http://perl.jann.com/
> -----------------------------------------------------------------
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: UOL: "[PHP3] FILES"
- Previous message: Henry F. Marquardt: "RE: [PHP3] instances on server?"
- In reply to: Dean James: "[PHP3] instances on server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

