[OT?] What exactly is forwarding?

2002-03-12 Thread Martin Haase-Thomas
Hi all, I know this is not perfectly the right list for my topic, but before subscribing to another for just one question... forgive me if I'm going to be boring. Even more, because my question is rather philosophical. If you consider JSPs, there is a tag called jsp:forward page=... /. My

Re: [OT] Thought for the Day

2002-03-12 Thread Carlos Ramirez
I wrote an article about Apache::Motd for UNIX SysAdmin magazine (March 2001 issue). Here's the link: http://www.samag.com/documents/s=1153/sam0103a/ -Carlos Geoffrey Young wrote: John Eisenschmidt wrote: Sinister, aren't I? G For the record I did email directly an explanation of what

Re: [OT] Thought for the Day

2002-03-12 Thread Martin Haase-Thomas
Should we tell the yellow press in the end? ;) Martin Carlos Ramirez wrote: I wrote an article about Apache::Motd for UNIX SysAdmin magazine (March 2001 issue). Here's the link: http://www.samag.com/documents/s=1153/sam0103a/ -Carlos Geoffrey Young wrote: John Eisenschmidt wrote:

loss of shared memory in parent httpd

2002-03-12 Thread Bill Marrs
I'm a heavy mod_perl user, running 3 sites as virtual servers, all with lots of custom Perl code. My httpd's are huge(~50mb), but with the help of a startup file I'm able to get them sharing most of their memory(~43). With the help of GTopLimit, I'm able to keep the memory usage under

Re: loss of shared memory in parent httpd

2002-03-12 Thread Elizabeth Mattijsen
At 09:18 AM 3/12/02 -0500, Bill Marrs wrote: If anyone has any ideas what might cause the httpd parent (and new children) to lose a big chunk of shared memory between them, please let me know. I've seen this happen many times. One day it works fine, the next you're in trouble. And in my

Re: loss of shared memory in parent httpd (2)

2002-03-12 Thread Elizabeth Mattijsen
Oops. Premature sending... I have two ideas that might help: - reduce number of global variables used, less memory pollution by lexicals - make sure that you have the most up-to-date (kernel) version of your OS. Newer Linux kernels seem to be a lot savvy at handling shared memory than older

Cookies and redirects

2002-03-12 Thread Axel Andersson
Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. If I do the following (having baked the cookie first), where $r is the Apache-request() object:

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
Bill Marrs wrote: I'm a heavy mod_perl user, running 3 sites as virtual servers, all with lots of custom Perl code. My httpd's are huge(~50mb), but with the help of a startup file I'm able to get them sharing most of their memory(~43). With the help of GTopLimit, I'm able to keep the

Re: loss of shared memory in parent httpd

2002-03-12 Thread Paolo Campanella
On Tue, 12 Mar 2002 09:18:32 -0500 Bill Marrs [EMAIL PROTECTED] wrote: But... recently, something happened, and things have changed. After some random amount of time (1 to 40 minutes or so, under load), the parent httpd suddenly loses about 7-10mb of share between it and any new child it

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
Elizabeth Mattijsen wrote: At 09:18 AM 3/12/02 -0500, Bill Marrs wrote: If anyone has any ideas what might cause the httpd parent (and new children) to lose a big chunk of shared memory between them, please let me know. I've seen this happen many times. One day it works fine, the

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
Axel Andersson wrote: Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. this is a common problem - you have to add the cookie to the

Re: [OT?] What exactly is forwarding?

2002-03-12 Thread Paul Lindner
On Tue, Mar 12, 2002 at 10:01:42AM +0100, Martin Haase-Thomas wrote: Hi all, I know this is not perfectly the right list for my topic, but before subscribing to another for just one question... forgive me if I'm going to be boring. Even more, because my question is rather philosophical.

Re: File upload example

2002-03-12 Thread Stas Bekman
Rich Bowen wrote: I am sure that this is a FAQ, but I had a very hard time finding examples of code for doing file upload. I wanted to post this here in order to have it in the permanent record so that other folks don't have to spend days figuring this out. Great Rich! I think we can do

BerkeleyDB Problems

2002-03-12 Thread Mark Matthews
Hello, I am moving a website that now resides on a i686 server running RedHat 6.2 with perl v5.005_03 to another i686 server running Suse 7.1 with perl v5.6.1. The website uses a number of cgi scripts that read and write from BerkeleyDB files using the tie function. The site is currently

Re: loss of shared memory in parent httpd

2002-03-12 Thread Elizabeth Mattijsen
At 11:46 PM 3/12/02 +0800, Stas Bekman wrote: I'm not sure whether my assessment of the problem is correct. I would welcome any comments on this. Nope Elizabeth, your explanation is not so correct. ;) Too bad... ;-( Shared memory is not about sharing the pre-allocated memory pool (heap

Re: BerkeleyDB Problems

2002-03-12 Thread Paul Lindner
On Tue, Mar 12, 2002 at 11:06:00AM -0500, Mark Matthews wrote: Hello, I am moving a website that now resides on a i686 server running RedHat 6.2 with perl v5.005_03 to another i686 server running Suse 7.1 with perl v5.6.1. The website uses a number of cgi scripts that read and write from

Re: loss of shared memory in parent httpd

2002-03-12 Thread Elizabeth Mattijsen
At 12:43 AM 3/13/02 +0800, Stas Bekman wrote: Doug has plans for a much improved opcode tree sharing for mod_perl 2.0, the details are kept as a secret so far :) Can't wait to see that! This topic is covered (will be) in the upcoming mod_perl book, where we include the following reference

Re: [OT?] What exactly is forwarding?

2002-03-12 Thread Perrin Harkins
Paul Lindner wrote: You'll find that $r-internal_redirect() is the mod_perl equivalent. Also Apache::ASP containts the Transfer() method which accomplishes the same thing. Personally, I always thought this was sort of a strange part of JSP. It really shows the page-centric thinking behind

Debugging mod_perl

2002-03-12 Thread Nico Erfurth
Hi, i'm creating an accounting system for my employer, the webfrontend is created with mod_perl. Today i had a big problem, and i don't know how to track it down. After changing one of my tool-modules apache segfaults on startup. So, how can i debug something like this? Are there any hooks

Re: loss of shared memory in parent httpd

2002-03-12 Thread Perrin Harkins
Elizabeth Mattijsen wrote: Since Perl is basically all data, you would need to find a way of localizing all memory that is changing to as few memory chunks as possible. That certainly would help. However, I don't think you can do that in any easy way. Perl doesn't try to keep compiled

Re: loss of shared memory in parent httpd

2002-03-12 Thread Graham TerMarsch
On Tuesday 12 March 2002 06:18, you wrote: I'm a heavy mod_perl user, running 3 sites as virtual servers, all with lots of custom Perl code. My httpd's are huge(~50mb), but with the help of a startup file I'm able to get them sharing most of their memory(~43). With the help of GTopLimit,

Re: Debugging mod_perl

2002-03-12 Thread Stas Bekman
Nico Erfurth wrote: Hi, i'm creating an accounting system for my employer, the webfrontend is created with mod_perl. Today i had a big problem, and i don't know how to track it down. After changing one of my tool-modules apache segfaults on startup. So, how can i debug something

Re: Debugging mod_perl

2002-03-12 Thread Perrin Harkins
Nico Erfurth wrote: Today i had a big problem, and i don't know how to track it down. After changing one of my tool-modules apache segfaults on startup. So, how can i debug something like this? Do you know exactly what you changed? In that case, you have a small amount of code to look

Re: File upload example

2002-03-12 Thread David Wheeler
On Tue, 2002-03-12 at 03:57, Rich Bowen wrote: my $form = Your::Class::form(); # Wherever you put this function if (my $file = $form-{UPLOAD}) { my $filename = $file-filename; # If you need the name Actually, if you want the name, it's a really good idea to just get the basename, since

Serious bug, mixing mod-perl content

2002-03-12 Thread Miroslav Madzarevic
It seems that my mod-perl virtual hosts are mixing content :( I don't know why ? I have virthost1 and virthost2 on mod-perl apache, most of the time you get the right content when calling respective virthost but sometimes when you call virthost2 you get response from virt. host 1. This is a

Re: loss of shared memory in parent httpd

2002-03-12 Thread Perrin Harkins
Bill Marrs wrote: But... recently, something happened, and things have changed. After some random amount of time (1 to 40 minutes or so, under load), the parent httpd suddenly loses about 7-10mb of share between it and any new child it spawns. One possible reason is that a perl memory

Re: Serious bug, mixing mod-perl content

2002-03-12 Thread Stephen Gray
Are you using 2 separate apache processes or 2 virtual hosts within the same apache process? If it's the latter, according to Apache's documentation: If no matching virtual host is found, then the first listed virtual host that matches the IP address will be used.

Re: Serious bug, mixing mod-perl content

2002-03-12 Thread Stas Bekman
Miroslav Madzarevic wrote: It seems that my mod-perl virtual hosts are mixing content :( I don't know why ? I have virthost1 and virthost2 on mod-perl apache, most of the time you get the right content when calling respective virthost but sometimes when you call virthost2 you get

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
Geoff: I think I did this with my own module with no success... I'd end up with an extra set of headers, if I was _lucky_... perhaps that is due to a general misunderstanding of err_headers_out - they are sent _even_ on Apache errors (of which REDIRECT is considered one), not _only_ on

Re: BerkeleyDB Problems

2002-03-12 Thread Michael Robinton
On Tue, Mar 12, 2002 at 11:06:00AM -0500, Mark Matthews wrote: Hello, I am moving a website that now resides on a i686 server running RedHat 6.2 with perl v5.005_03 to another i686 server running Suse 7.1 with perl v5.6.1. The website uses a number of cgi scripts that read and write

Re: File upload example

2002-03-12 Thread Rich Bowen
On Tue, 12 Mar 2002, Stas Bekman wrote: Rich Bowen wrote: I am sure that this is a FAQ, but I had a very hard time finding examples of code for doing file upload. I wanted to post this here in order to have it in the permanent record so that other folks don't have to spend days figuring

Re: Serious bug, mixing mod-perl content

2002-03-12 Thread C.Hauser - IT assistance GmbH
Basel, Dienstag, 12. März 2002, 19:27:24 . Hello Miroslav Assuming, that you are using a handler, I ask you how you separate each calls to your vhosts? I also assume that the vhosts are on the same Apache runtime? Probably you mix up namespaces ... Best

Re: File upload example

2002-03-12 Thread Robert Landrum
At 9:01 AM -0800 3/12/02, David Wheeler wrote: On Tue, 2002-03-12 at 03:57, Rich Bowen wrote: my $form = Your::Class::form(); # Wherever you put this function if (my $file = $form-{UPLOAD}) { my $filename = $file-filename; # If you need the name Actually, if you want the name, it's a

Apache::TicketAccess

2002-03-12 Thread Ray Recendez
I am new to perl/mod_perl and I am trying to implement secure authentication with expirable ticket/cookies on our website (Apache 1.3.9-Solaris 2.8). I am trying to use Apache::TicketAccess with Apache 1.3.9, modssl, openssl, and mod_ssl installed but I am having problems even though

Re: Serious bug, mixing mod-perl content

2002-03-12 Thread Ernest Lergon
Miroslav Madzarevic wrote: I have virthost1 and virthost2 on mod-perl apache, most of the time you get the right content when calling respective virthost but sometimes when you call virthost2 you get response from virt. host 1. This is a rare bug but happens. Do you have this in your

Re: Cookies and redirects

2002-03-12 Thread Hans Poo
El Mar 12 Mar 2002 11:23, Axel Andersson escribió: Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. If I do the following (having baked the cookie

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: I am new to perl/mod_perl and I am trying to implement secure authentication with expirable ticket/cookies on our website (Apache 1.3.9-Solaris 2.8). I am trying to use Apache::TicketAccess with Apache 1.3.9, modssl, openssl, and mod_ssl installed but I am having

Re: loss of shared memory in parent httpd

2002-03-12 Thread Bill Marrs
Thanks for all the great advice. A number of you indicated that it's likely due to my apache processes being partially swapped to disk. That seems likely to me. I haven't had a chance to prove that point, but when it does it again and I'm around, I plan to test it with free/top (top has a

trouble with GTop and

2002-03-12 Thread Bill Marrs
When I install the recent Redhat 7.2 updates for glibc: glibc-2.2.4-19.3.i386.rpm glibc-common-2.2.4-19.3.i386.rpm glibc-devel-2.2.4-19.3.i386.rpm It breaks my Apache GTop-based Perl modules, in a way that I don't understand. Here is are the error messages from my httpd/error_log: [Tue Mar 12

Re: File upload example

2002-03-12 Thread D. Hageman
Mozilla sends a fully qualified path name ... just an FYI ... On Tue, 12 Mar 2002, Robert Landrum wrote: At 9:01 AM -0800 3/12/02, David Wheeler wrote: On Tue, 2002-03-12 at 03:57, Rich Bowen wrote: my $form = Your::Class::form(); # Wherever you put this function if (my $file =

Re: trouble with GTop and

2002-03-12 Thread Perrin Harkins
Bill Marrs wrote: When I install the recent Redhat 7.2 updates for glibc: glibc-2.2.4-19.3.i386.rpm glibc-common-2.2.4-19.3.i386.rpm glibc-devel-2.2.4-19.3.i386.rpm It breaks my Apache GTop-based Perl modules, in a way that I don't understand. [...] Anyone have a clue about what I'd

Re: File upload example

2002-03-12 Thread John Saylor
Hi ( 02.03.12 06:57 -0500 ) Rich Bowen: Comments welcome, YMMV, Caveat Emptor, and all that. I have found that some browsers put the file in the value matching the parameter name instead of putting a file upload object there. So your code should check the value to see if it is a path AND a one

Cache::SharedMemoryCache locking up on Solaris

2002-03-12 Thread Chris Allen
I have recently upgraded our modperl based web server to use Cache::SharedMemoryCache. The code is changed very little from in the docs - retrieve an entry from the cache if it is there, otherwise get an entry from the database and store it in the cache. However, after about fifteen minutes of

RE: Apache::TicketAccess

2002-03-12 Thread Ray Recendez
-Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 12:16 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Apache::TicketAccess Ray Recendez wrote: I am new to perl/mod_perl and I am trying to implement secure authentication with

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: Yes I have MD5 installed. However, MD5.pm is located in the following locations: /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/MD5.pm ; /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/MD5/MD5.pm ; and /usr/local/lib/perl5/site_perl/5.6.1/MD5.pm. Which one is correct?

RE: Apache::TicketAccess

2002-03-12 Thread Ray Recendez
-Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 12:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Apache::TicketAccess Ray Recendez wrote: Yes I have MD5 installed. However, MD5.pm is located in the following locations:

Re: Cache::SharedMemoryCache locking up on Solaris

2002-03-12 Thread Perrin Harkins
Chris Allen wrote: In desperation, I have switched to Cache::FileCache - which works fine, but I would be interested to know, for a system that handles several hundred database queries per minute: - What is the performance difference between SharedMemoryCache and FileCache? You can test

Re: Apache::TicketAccess

2002-03-12 Thread Perrin Harkins
Ray Recendez wrote: Running it from the command line seems to work: rift_rootperl -MMD5 -e 'print ok\n;' ok Is it possible that you may have installed this module using a different compiler from the one you used for mod_perl? or maybe built mod_perl against a different perl installation?

performance testing - emulating real world use

2002-03-12 Thread Bryan Henry
Anyone know of good guides or general info on performance testing and emulating real use of an application. I would like to understand how to identify potential bottlenecks before I deploy web apps. thank you, ~ b r y a n

Re: performance testing - emulating real world use

2002-03-12 Thread clayton cottingham
Bryan Henry wrote: Anyone know of good guides or general info on performance testing and emulating real use of an application. I would like to understand how to identify potential bottlenecks before I deploy web apps. thank you, ~ b r y a n try httpd.apache.org/test/ and perl

Re: performance testing - emulating real world use

2002-03-12 Thread Paul Lindner
On Tue, Mar 12, 2002 at 01:52:36PM -0800, clayton cottingham wrote: Bryan Henry wrote: Anyone know of good guides or general info on performance testing and emulating real use of an application. I would like to understand how to identify potential bottlenecks before I deploy web

Re: performance testing - emulating real world use

2002-03-12 Thread Andrew Ho
Heyas, BHAnyone know of good guides or general info on BHperformance testing and emulating real use of BHan application. As a general rule, it's easiest if you have a production system already running. Record all information that you need to reproduce the requests (typically, HTTP request

Re: File upload example

2002-03-12 Thread Rich Bowen
On Tue, 12 Mar 2002, John Saylor wrote: Hi ( 02.03.12 06:57 -0500 ) Rich Bowen: Comments welcome, YMMV, Caveat Emptor, and all that. I have found that some browsers put the file in the value matching the parameter name instead of putting a file upload object there. So your code should

Re: loss of shared memory in parent httpd

2002-03-12 Thread Ask Bjoern Hansen
On Tue, 12 Mar 2002, Graham TerMarsch wrote: [...] We saw something similar here, running on Linux servers. Turned out to be that if the server swapped hard enough to swap an HTTPd out, then you basically lost all the shared memory that you had. I can't explain all of the technical

Re: performance testing - emulating real world use

2002-03-12 Thread Ask Bjoern Hansen
On Tue, 12 Mar 2002, Andrew Ho wrote: [...] This is extremely effective if you have enough real user data because you're not inventing user load. You're using real user load. Not really; you also have to emulate the connection speeds of the users. Or does the tools you mentioned do that?

Re: loss of shared memory in parent httpd

2002-03-12 Thread Tom Brown
No, I can't explain the nitty gritty either. :-) Someone should write up a summary of this thread and ask in a technical linux place, or maybe ask Dean Gaudet. I believe this is a linux/perl issue... stand alone daemons exhibit the same behaviour... e.g. if you've got a parent PERL daemon

Re: performance testing - emulating real world use

2002-03-12 Thread Andrew Ho
Hello, ABHNot really; you also have to emulate the connection speeds of the ABHusers. Or does the tools you mentioned do that? Both of the commercially produced tools I mentioned (SilkPerformer and the free Microsoft Web Stress program) can throttle bandwidth. Rolling your own is a bunch

Re: performance testing - emulating real world use

2002-03-12 Thread Andrew Ho
Hello, AHSo you're correct. My point though is not so much that the load profile of AHwhat pages get loaded in what order, and what data calls and dynamic AHscripts are run in what order are genuine. If you simulate the timing AHbetween requests, you'll even get spikes that are similar to the

Re: loss of shared memory in parent httpd

2002-03-12 Thread Stas Bekman
Bill Marrs wrote: One more piece of advice: I find it easier to tune memory control with a single parameter. Setting up a maximum size and a minumum shared size is not as effective as setting up a maximum *UNSHARED* size. After all, it's the amount of real memory being used by each

Re: performance testing - emulating real world use

2002-03-12 Thread Jauder Ho
Another application (commercial) is Mercury Interactive's LoadRunner. It actually records events and plays it back on load generator machines. It's fairly complex, has LOTs of knobs to turn and can load test quite a bit more than just web apps, I use it to load test/benchmark Oracle 11i for

Re: [OT?] What exactly is forwarding?

2002-03-12 Thread Martin Haase-Thomas
Thank you both. I thought so: it is one of these typical JSP features - but now it works in perl, too ;) Cheers Martin Perrin Harkins wrote: Paul Lindner wrote: You'll find that $r-internal_redirect() is the mod_perl equivalent. Also Apache::ASP containts the Transfer() method which

Re: performance testing - emulating real world use

2002-03-12 Thread Matt Sergeant
On Tue, 12 Mar 2002, Jauder Ho wrote: Another application (commercial) is Mercury Interactive's LoadRunner. It actually records events and plays it back on load generator machines. It's fairly complex, has LOTs of knobs to turn and can load test quite a bit more than just web apps, I use it

Re: performance testing - emulating real world use

2002-03-12 Thread Jauder Ho
Heh. Forgot to state that it does cost an arm and a leg but it's one of the few software packages that is worth considering paying money for IMO. However, with the economy being the way it is, it is possible to rent the software for a period of time but this is done by special arrangement on a