Re: acceptable memory leaks?

2006-08-16 Thread Leo Lapworth
On 16 Aug 2006, at 22:40, Jonathan Vanasco wrote: if there's an issue, big or small, i want to know where it is. if i can fix it-- great. if i can't fix it, i can document what the issue is, so maybe i can fix it when able to or when something goes wrong, i know where to look. Sounds

Re: Output from apache during startup

2006-08-16 Thread Clinton Gormley
> Thats possibly because STDERR isn't tied to anything yet. There's > some black magic that seems to go on. That's correct http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_ I knew that was the case, it just interferes with the behaviour that I would like. I think I

Re: acceptable memory leaks?

2006-08-16 Thread Jonathan Vanasco
On Aug 16, 2006, at 5:08 PM, Michael Peters wrote: A memory leak is when memory is used and then lost and can't be recovered. If the process can still access or use that memory, it's not a leak, it's just memory growth. Leaks should be completely eliminated. Growth should be managed. I

Re: acceptable memory leaks?

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 14:01 -0700, David Scott wrote: > "...uses more memory over time..." Hmm, sounds like an actual leak to > me, unless there's some justification for it. Usually it's just normal perl behavior. You use variables, they need memory, they don't give the memory back, and the who

Re: acceptable memory leaks?

2006-08-16 Thread Michael Peters
David Scott wrote: > "...uses more memory over time..." Hmm, sounds like an actual leak to > me, unless there's some justification for it. > > I agree that the problem is probably in someone's XS somewhere. But a > leak is a leak and is bad. A memory leak is when memory is used and then lost

Re: acceptable memory leaks?

2006-08-16 Thread David Scott
"...uses more memory over time..." Hmm, sounds like an actual leak to me, unless there's some justification for it. I agree that the problem is probably in someone's XS somewhere. But a leak is a leak and is bad. d Perrin Harkins wrote: On Wed, 2006-08-16 at 13:35 -0700, David Scott wrote

Re: acceptable memory leaks?

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 13:35 -0700, David Scott wrote: > Memory leak != memory hog. The leak could indicate instability and is a > much higher priority than "a measly couple of KB". Even little leaks > need to be plugged. When people talk about "memory leaks" on this list, they almost never mea

Re: httpd segfaults

2006-08-16 Thread Jiří Pavlovský
Jonathan Vanasco wrote: On Aug 16, 2006, at 3:46 PM, Perrin Harkins wrote: On Wed, 2006-08-16 at 21:03 +0200, Jiří Pavlovský wrote: I think I see a place in my program where it crashes. It is a initialization routine I call on startup to get data from db and populate some caches. I can't see

Re: acceptable memory leaks?

2006-08-16 Thread Jonathan Vanasco
On Aug 16, 2006, at 4:21 PM, Leo Lapworth wrote: Memory is cheap / CPU is cheap (for when you reach Apache::SizeLimit and need to spawn a new process) - your (and other developers) time is not. practical response: Because I'm using some modules with known large memory leaks ( open ssl wr

Re: acceptable memory leaks?

2006-08-16 Thread David Scott
Memory leak != memory hog. The leak could indicate instability and is a much higher priority than "a measly couple of KB". Even little leaks need to be plugged. d Joel Bernstein wrote: On Wed, Aug 16, 2006 at 03:24:32PM -0500, Matthew wrote: Memory is cheap / CPU is cheap My bos

Re: acceptable memory leaks?

2006-08-16 Thread Joel Bernstein
On Wed, Aug 16, 2006 at 03:24:32PM -0500, Matthew wrote: > > Memory is cheap / CPU is cheap > > My boss makes this same argument and I hate it. Wasting is still wasting. Wasting developer time over a measly couple of KB, you mean? /joel

Re: acceptable memory leaks?

2006-08-16 Thread Matthew
> Memory is cheap / CPU is cheap My boss makes this same argument and I hate it. Wasting is still wasting. -Matthew

Re: acceptable memory leaks?

2006-08-16 Thread Leo Lapworth
Playing devils advocate... On 16 Aug 2006, at 19:54, Jonathan Vanasco wrote: but anything thats 1k or more per request i think i need to try and fix. Why :) ? Memory is cheap / CPU is cheap (for when you reach Apache::SizeLimit and need to spawn a new process) - your (and other developer

[ANNOUNCE] Smolder 0.3 (1.0 RC1)

2006-08-16 Thread Michael Peters
Smolder 0.3 has arrived. This is the first release candidate towards 1.0. Smolder is web-based smoke test aggregator used by developers and testers to upload (automated or manually) and view smoke/regression tests using the Test Anything Protocol. Details and trends can be viewed in various format

Re: httpd segfaults

2006-08-16 Thread Jonathan Vanasco
On Aug 16, 2006, at 3:46 PM, Perrin Harkins wrote: On Wed, 2006-08-16 at 21:03 +0200, Jiří Pavlovský wrote: I think I see a place in my program where it crashes. It is a initialization routine I call on startup to get data from db and populate some caches. I can't see anything wrong in my perl

Re: httpd segfaults

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 21:03 +0200, Jiří Pavlovský wrote: > Yes, that is the case. With mod_perl 2.0.2 it did not matter what pg > libs I used. But the segfault happens when you try to use DBD::Pg, not mod_perl, right? If you just take out the Pg stuff, does it start ok? > I think I see a place

Re: httpd segfaults

2006-08-16 Thread Jiří Pavlovský
Perrin Harkins wrote: On Wed, 2006-08-16 at 16:19 +0200, Jiří Pavlovský wrote: Httpd segfaults if I compile DBD::Pg against newer libreries and/or use newer mod_perl. So you're saying that it segfaults if you compile DBD::Pg against the Pg 8.1.4 libs or if you compile mod_perl 2.0.2 with

acceptable memory leaks?

2006-08-16 Thread Jonathan Vanasco
still profiling stuff like crazy, and using ab to bench single pages while watching top / ps i've been isolating stuff i know to leak so i can continue looking for issues i'm finding a ton of stuff in random libraries, and have been prioritizing on what to fix obviously , 4k/request is

don';t let it drive you crazy Re: debugging tip

2006-08-16 Thread David Nicol
in the extreme development model, the task of removing the debug statements rarely gets prioritized to the point of happening. Popularizing constant-based debug statements as a best practice is certainly an approach; maybe if we get some power to impose standards by refusal we can insist that all

Re: Output from apache during startup

2006-08-16 Thread Jonathan Vanasco
WHEN restart_count!=1 - setup happens only when it should, but you don't see any of the startup info. - if I print the startup info to STDERR instead of STDOUT, then you don't see anything on 'apachectl start', but you do on 'apachectl restart' Thats possibly because STDERR isn't ti

Re: httpd segfaults

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 16:19 +0200, Jiří Pavlovský wrote: > Httpd segfaults if I compile DBD::Pg against newer libreries and/or use > newer mod_perl. So you're saying that it segfaults if you compile DBD::Pg against the Pg 8.1.4 libs or if you compile mod_perl 2.0.2 with apache 2.0.59? Does this

Re: debugging tip

2006-08-16 Thread David Nicol
On 8/14/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: entering captain obvious mode, i realized use constant DEBUG_CONNECT= $ENV{'P2XLP_DEBUG_CONNECT'} Brilliant! (applause) -- David L Nicol Luddite! (mob of angry villagers with ray guns)

Re: Output from apache during startup

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 19:24 +0200, Clinton Gormley wrote: > The framework does quite a lot of work setting up the applications that > depend on it, and one of the things it does is autoconfigures the > virtual hosts that the application requires. When I need to do things like that, I just template

web-based file manager

2006-08-16 Thread Arshavir Grigorian
Hi, Could someone recommend a web-based file manager (or better yet, just library) that works well under mod_perl and hopefully allows for customization? Thanks. Arshavir

Output from apache during startup

2006-08-16 Thread Clinton Gormley
I have a homegrown framework which I use for my webapps (Perrin, it's like the others, but faster!! and lighter!! and will be on CPAN any day now... or something like that) The framework does quite a lot of work setting up the applications that depend on it, and one of the things it does is autoco

Re: HTML::Mason?

2006-08-16 Thread Mike Whitaker
One way that I've done this kind of thing in the past is to really use SSI and call a mod_perl handler or Registry script with it. In other words, you write a "list users logged in" thing in CGI::Application as usual and then call it like this from a page: That just makes an Apache subrequest

'error-notes' has no value on errordocument redirect (patch included)

2006-08-16 Thread Guy Albertelli II
-8<-- Start Bug Report 8<-- 1. Problem Description: $r->prev->notes->{'error-notes'} exists but is blank on an error document redirect. This patch appears to fix it: --- modperl_callback.c.orig 2006-08-16 13:06:25.0 -0400 +++ modperl_callback.c

Re: HTML::Mason?

2006-08-16 Thread Leo Lapworth
On 16 Aug 2006, at 15:23, Jesse Erlbaum wrote (Imagine a list of the users currently logged into the site One could quite easily have this written out into a JSON file and read in/displayed with JavaScript/AJAX (though the JS can be a pain to start). or a database query on the 5 products

Re: Dumping / Profiling Memory ?

2006-08-16 Thread Jonathan Vanasco
On Aug 16, 2006, at 7:48 AM, Frank Maas wrote: Which one? The first, the latter or both? any tie. my $options= $self->ApacheSessionOptions->{ $store }; tie %session , 'Apache::Session::Postgres', $sessionID, $options ; my %options= $self->ApacheSessionOpti

RE: HTML::Mason?

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 10:23 -0400, Jesse Erlbaum wrote: > This is for primarily static web sites which are managed by a CMS. The > CMS publishes out pages which would contain HTML + various bits of code > to generate possibly navigation and semi-interactive bits of the page. > (Imagine a list of t

Re: HTML::Mason?

2006-08-16 Thread Torsten Foertsch
On Wednesday 16 August 2006 02:44, Jesse Erlbaum wrote: > think "better > server-side includes" Are you aware of Apache::IncludeHook? Torsten pgpQwNFblgmUS.pgp Description: PGP signature

RE: HTML::Mason?

2006-08-16 Thread Jesse Erlbaum
> I think understanding what you are actually going to do in the SSI > would help > somewhat - is this dynamic content based on per user - or just > navigation on > the website depending on the section you are in? This is for primarily static web sites which are managed by a CMS. The CMS pub

httpd segfaults

2006-08-16 Thread Jiří Pavlovský
Hi, I'm runnig RHEL3 on server and wanted to use Apache::AuthCookie module for my application. As it needs mod_perl 2.0.0rc5 and RHEL3 comes with 1.99_09 I decided to upgrade. I installed apache 2.0.59, postgresql 8.1.4. Here my problems started. The only workable combination is to downgrad

RE: ApacheCon US registration now open

2006-08-16 Thread Adam Prime x443
When I asked about early bird rates at the beginning of the month, this is what I found out. Clearly the dates of the price changes have shifted, but I expect that the price increments will likely stay the same. --- After August 10 the price will go to $650. then it goes to $850 and finally to $1

Re: HTML::Mason?

2006-08-16 Thread Leo Lapworth
On 16 Aug 2006, at 15:04, Jesse Erlbaum wrote: My proverbial "better SSI". I think understanding what you are actually going to do in the SSI would help somewhat - is this dynamic content based on per user - or just navigation on the website depending on the section you are in? Personal

RE: HTML::Mason?

2006-08-16 Thread Jesse Erlbaum
Hi Perrin -- > Depending on what you want to use it for, you might also consider just > using Template Toolkit with the in-line perl option enabled. That's an interesting idea. I was not familiar with that option. It is possible that a full framework is not needed. > Or... you could write

ApacheCon US registration now open

2006-08-16 Thread Geoffrey Young
hi all :) registration for ApacheCon US 2006 (October 9-13 in Austin, Texas) is now open. for those not familiar with ApacheCon, it's the annual US conference for all things Apache - from httpd and mod_perl to spamassassin and other popular Apache Software Foundation projects. you can find the d

Re: Dumping / Profiling Memory ?

2006-08-16 Thread Perrin Harkins
On Wed, 2006-08-16 at 03:51 -0400, Jonathan Vanasco wrote: > Can someone confirm if there is a memory leak in Apache Session ? Your best bet is to just keep going using the same technique until you find it. You have all the source, so there's no reason to stop when you hit someone else's code. >

RE: Dumping / Profiling Memory ?

2006-08-16 Thread Frank Maas
> the loss happens directly after the tie. Which one? The first, the latter or both? Regards, Frank

Re: Dumping / Profiling Memory ?

2006-08-16 Thread Jonathan Vanasco
On Aug 15, 2006, at 4:28 PM, Perrin Harkins wrote: If that happens even when you just send the same request every time to the same process, there's something extra going on, like a variable not going out of scope or being added to each time. It took me 4 hours to track this down, I finally