Connecting Tech Pros Worldwide Forums | Help | Site Map

Mod_Perl vs PHP in memory, speed, varibles

nntp
Guest
 
Posts: n/a
#1: Jul 23 '05
I tried mod_perl. It is too troublesome. Many old scripts stopped running.
Even those running eat memory like crazy.

I wonder why mod_php does not have the problems in mod_perl, such as memory
hog, varible initialization etc.

Is there a way to use Perl scripts at the same speed of PHP without worrying
about those clearing varibles etc in mod_perl.




Gunnar Hjalmarsson
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Mod_Perl vs PHP in memory, speed, varibles


nntp wrote:[color=blue]
> I tried mod_perl. It is too troublesome. Many old scripts stopped running.
> Even those running eat memory like crazy.[/color]

Did you study this document about porting CGI scripts to mod_perl:
http://perl.apache.org/docs/1.0/guide/porting.html
[color=blue]
> I wonder why mod_php does not have the problems in mod_perl, such as memory
> hog, varible initialization etc.[/color]

The perceived difference may have something to do with the fact that
while there are many old CGI scripts that were never designed with
mod_perl in mind, PHP scripts that weren't designed with mod_php in mind
are of rare occurrence.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
nntp
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Mod_Perl vs PHP in memory, speed, varibles


> nntp wrote:[color=blue][color=green]
> > I tried mod_perl. It is too troublesome. Many old scripts stopped[/color][/color]
running.[color=blue][color=green]
> > Even those running eat memory like crazy.[/color]
>
> Did you study this document about porting CGI scripts to mod_perl:
> http://perl.apache.org/docs/1.0/guide/porting.html[/color]
That does not work. Even with PerlRun, there are huge memory leak.
[color=blue]
>[color=green]
> > I wonder why mod_php does not have the problems in mod_perl, such as[/color][/color]
memory[color=blue][color=green]
> > hog, varible initialization etc.[/color]
>
> The perceived difference may have something to do with the fact that
> while there are many old CGI scripts that were never designed with
> mod_perl in mind, PHP scripts that weren't designed with mod_php in mind
> are of rare occurrence.[/color]
PHP programmers don't need to worry about initializtion, and the PHP itself
will clear all memory after usage. I don't understand why mod_perl can not
do it. This really kills perl in majority. Anyone can write php, but only
few can write mod_perl.


Gunnar Hjalmarsson
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Mod_Perl vs PHP in memory, speed, varibles


nntp wrote:[color=blue]
> Gunnar Hjalmarsson wrote:[color=green]
>> Did you study this document about porting CGI scripts to mod_perl:
>> http://perl.apache.org/docs/1.0/guide/porting.html[/color]
>
> That does not work.[/color]

I should have realized that you are just a pitiful troll. Show us some
hard evidence supporting your claim, or else there is no reason to talk.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
nntp
Guest
 
Posts: n/a
#5: Jul 24 '05

re: Mod_Perl vs PHP in memory, speed, varibles


> nntp wrote:[color=blue][color=green]
> > Gunnar Hjalmarsson wrote:[color=darkred]
> >> Did you study this document about porting CGI scripts to mod_perl:
> >> http://perl.apache.org/docs/1.0/guide/porting.html[/color]
> >
> > That does not work.[/color]
>
> I should have realized that you are just a pitiful troll. Show us some
> hard evidence supporting your claim, or else there is no reason to talk.[/color]
Fuck off. Stupid shit.
[color=blue]
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl[/color]


Jerry Stuckle
Guest
 
Posts: n/a
#6: Jul 24 '05

re: Mod_Perl vs PHP in memory, speed, varibles


nntp wrote:[color=blue][color=green]
>>nntp wrote:
>>[color=darkred]
>>>Gunnar Hjalmarsson wrote:
>>>
>>>>Did you study this document about porting CGI scripts to mod_perl:
>>>>http://perl.apache.org/docs/1.0/guide/porting.html
>>>
>>>That does not work.[/color]
>>
>>I should have realized that you are just a pitiful troll. Show us some
>>hard evidence supporting your claim, or else there is no reason to talk.[/color]
>
> Fuck off. Stupid shit.
>
>[color=green]
>>--
>>Gunnar Hjalmarsson
>>Email: http://www.gunnar.cc/cgi-bin/contact.pl[/color]
>
>
>[/color]

LOL.

Gunnar,

You got him nailed. Typical troll response.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Tad McClellan
Guest
 
Posts: n/a
#7: Jul 24 '05

re: Mod_Perl vs PHP in memory, speed, varibles



[ Followups set ]


nntp <nntp@alexa.com> wrote:[color=blue][color=green]
>> nntp wrote:[color=darkred]
>> > Gunnar Hjalmarsson wrote:[/color][/color][/color]

[color=blue][color=green]
>> Show us some
>> hard evidence supporting your claim, or else there is no reason to talk.[/color][/color]

[color=blue]
> Fuck off. Stupid shit.[/color]


Very intellectual of you, we are surely impressed.

I guess that means that you cannot support your claim.

We were all wondering if Gunnar had it right or not, thanks for
posting your confirmation of which way it is.


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
Closed Thread