473,748 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4429
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*******@attgl obal.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***@augustmai l.com Perl programming
Fort Worth, Texas
Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2533
by: Bill Warner | last post by:
I am looking for a good mod_perl/mysql application to study. I have been teaching myself perl for a few years now and have been doing things the way I have interpreted documentation. There are several things that I think I am doing wrong, at least in a design standpoint, I would like a good mod_perl somewhat basic web based interface to mysql with some help on object oriented design and request handling. Thanks for any suggestions.
0
3006
by: Pablo S | last post by:
Hi there mod_perl/Pg folks, I have 2 systems, one OLD, (linux 2.4 running postgresql-7.2.1-5 with a perl web db on Apache/1.3.23 mod_perl 1.26 and dbi 1.37 with peristent db connections via apache:dbi. ) The other system is NEW, which i am demoing (running the same web app on linux 2.6 postgresql-7.4.2-1 w/ Apache/2.0.49 & mod_perl/1.99_12 & apache:dbi. (this one fedora core
0
2423
by: Ben Fitzgerald | last post by:
Hi, I've built apache under a temp dir so I can package and install it, which I have done. I also have built and installed perl this way. Now I'm trying to build mod_perl under a temp directory to package. Unfortunately when running: mod_perl $ DESTDIR=~/buildroot/ make install
29
3194
by: Mainlander | last post by:
An ISP I belong to uses Majordomo for their mailing list system. I'd like to encourage them to move to a system that uses a database, preferably psql which they already run on their server. Anything out there in Php?
4
2705
by: Chang Byun | last post by:
I have question about memory allocation. I have a trouble when I run a C program. My C program has several big double pointer(** var) variables to structure data like 4 by 5000000. It is supposed to calculate those varibles with different parameters repeatedly with same size of variables. When it is running, the first several run is fine But it uses more and more memory, is used up all the main memory and swap memory and is stop.
6
1452
by: M a n i s h | last post by:
is there any difference in how the realloc() reallocates memory to varibles which were being allocated memory using malloc() and calloc ?
6
6828
by: zl2k | last post by:
hi, there I am using a big, sparse binary array (size of 256^3). The size may be changed in run time. I first thought about using the bitset but found its size is unchangeable. If I use the vector<bool>, does each element takes 4 bytes instead of 1 bit? I am using gcc3.4.4. There is a bit_vector which is kind of old so I wont use that. Any other choices? Thanks ahead. zl2k
3
3535
by: jayakumarrt | last post by:
Hi, I need to download mod_perl (binary)for solaris 8 for running perl scripts thru web browser.Can any body please provide the link for downloading ? I downloaded source mod_perl from Net.I am having apache 1.3.31 already in my solaris machine.I could not able to locate the src folder.So i am asking binary mod_perl for solaris 8. Thanks in advance jayakumar
1
1597
by: sbettadpur | last post by:
Hi every body i have searched some of the sites for installing mod_perl under linux. Actually i installed apache and as well as perl under linux redhat3 but how to configure mod_perl please give me suggestions... Thanking you. Regards,
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.