Mod_Perl vs PHP in memory, speed, varibles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nntp

    Mod_Perl vs PHP in memory, speed, varibles

    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

    #2
    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:
    mod_perl documentation: This chapter is relevant both to writing a new CGI script or perl handler from scratch and to migrating an application from plain CGI to mod_perl.

    [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

    Comment

    • nntp

      #3
      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.


      Comment

      • Gunnar Hjalmarsson

        #4
        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

        Comment

        • nntp

          #5
          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]


          Comment

          • Jerry Stuckle

            #6
            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@attgl obal.net
            =============== ===

            Comment

            • Tad McClellan

              #7
              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@augustmai l.com Perl programming
              Fort Worth, Texas

              Comment

              Working...