471,319 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

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.

Jul 23 '05 #1
6 4332
nntp wrote:
I tried mod_perl. It is too troublesome. Many old scripts stopped running.
Even those running eat memory like crazy.
Did you study this document about porting CGI scripts to mod_perl:
http://perl.apache.org/docs/1.0/guide/porting.html
I wonder why mod_php does not have the problems in mod_perl, such as memory
hog, varible initialization etc.


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
Jul 23 '05 #2
> nntp wrote:
I tried mod_perl. It is too troublesome. Many old scripts stopped running. Even those running eat memory like crazy.
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. Even with PerlRun, there are huge memory leak.
I wonder why mod_php does not have the problems in mod_perl, such as memory hog, varible initialization etc.


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.

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.
Jul 23 '05 #3
nntp wrote:
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.


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
Jul 23 '05 #4
> nntp wrote:
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.


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.

Fuck off. Stupid shit.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Jul 24 '05 #5
nntp wrote:
nntp wrote:
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.


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.


Fuck off. Stupid shit.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl



LOL.

Gunnar,

You got him nailed. Typical troll response.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 24 '05 #6

[ Followups set ]
nntp <nn**@alexa.com> wrote:
nntp wrote:
> Gunnar Hjalmarsson wrote:

Show us some
hard evidence supporting your claim, or else there is no reason to talk.

Fuck off. Stupid shit.

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
ta***@augustmail.com Perl programming
Fort Worth, Texas
Jul 24 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bill Warner | last post: by
reply views Thread by Pablo S | last post: by
reply views Thread by Ben Fitzgerald | last post: by
4 posts views Thread by Chang Byun | last post: by
6 posts views Thread by M a n i s h | last post: by
6 posts views Thread by zl2k | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.