Pylons memory leak

2008-06-12 Thread zepolen
I'm running pylons with paster in daemon mode. At startup the paster process is using 10% (100mb) memory. Paster is serving about 500k requests per day, 350k are pages, 150k are ajax requests. Static files (an extra 800k requests) are being served directly with nginx which also acts as the

Re: Bulk inserts

2008-06-12 Thread Shannon -jj Behrens
On Wed, Jun 11, 2008 at 7:20 PM, Contact 42 [EMAIL PROTECTED] wrote: Jonathan Vanasco wrote: write to a .txt log in some sort of standardized format , when it hits 10k lines run a batch query what happens if an insert fails ? It continues with the rest of the batch. It'll tell you at the

Re: Pylons memory leak

2008-06-12 Thread Shannon -jj Behrens
On Wed, Jun 11, 2008 at 10:28 PM, zepolen [EMAIL PROTECTED] wrote: I'm running pylons with paster in daemon mode. At startup the paster process is using 10% (100mb) memory. Paster is serving about 500k requests per day, 350k are pages, 150k are ajax requests. Static files (an extra 800k

Re: Truncating an html string safely

2008-06-12 Thread Shannon -jj Behrens
On Sat, Jun 7, 2008 at 7:24 AM, Matt Feifarek [EMAIL PROTECTED] wrote: Oops; replied from the wrong address. -- Forwarded message -- On Thu, Jun 5, 2008 at 2:36 PM, Ian Bicking [EMAIL PROTECTED] wrote: Well... it's hard to truncate exactly, as there's all that annoying

Re: DistributionNotFound: decorator problem using PyISAPIe

2008-06-12 Thread Shannon -jj Behrens
On Wed, Jun 4, 2008 at 3:12 PM, rcs_comp [EMAIL PROTECTED] wrote: I am trying to get Paste running using the PyISAPIe WSGI server on IIS. However, I am getting this error and I can't figure out why: The same application succesfully runs with the paste HTTP server. Traceback (most recent

AW: per request template path modification

2008-06-12 Thread Andrew Smart
-Ursprüngliche Nachricht- Von: pylons-discuss@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von kai Gesendet: Mittwoch, 11. Juni 2008 14:40 An: pylons-discuss@googlegroups.com Betreff: per request template path modification Hi All, How do I modify the mako template

Re: initialise session in functional test

2008-06-12 Thread Wichert Akkerman
Previously Shannon -jj Behrens wrote: On Sun, Jun 8, 2008 at 3:36 AM, Wichert Akkerman [EMAIL PROTECTED] wrote: Does anyone have tips or example code for getting some test data into a (beaker) session so a controller that's being tested can pick that up? If I were in your shoes, I would

Exception email reporting in production

2008-06-12 Thread [EMAIL PROTECTED]
Hi, I'm having trouble getting pylons to report errors via email where debug = false - basically nothing ever turns up. In production.ini there are some lines like: email_to = [EMAIL PROTECTED] smtp_server = localhost error_email_from = [EMAIL PROTECTED] I can manually set up smtplib and send

Re: Bulk inserts

2008-06-12 Thread rcs_comp
Depending on the locking behaviour of the bulk loader it could make sense to load the data into simple preprocessing tables which don't have any validation logic or primary key constraints. From these tables the final processing is then done. This would move the error handling from the bulk

Re: Truncating an html string safely

2008-06-12 Thread rcs_comp
On Jun 12, 5:13 am, Mike Orr [EMAIL PROTECTED] wrote: Although again, we have two issues. One is HTML-to-text (essentially lynx-as-a-function). The other is truncating an HTML string while keeping it well-formed (which means not stopping in the middle of a tag and closing any open tags).

Re: Truncating an html string safely

2008-06-12 Thread rcs_comp
On Jun 12, 5:13 am, Mike Orr [EMAIL PROTECTED] wrote: Although again, we have two issues. One is HTML-to-text (essentially lynx-as-a-function). The other is truncating an HTML string while keeping it well-formed (which means not stopping in the middle of a tag and closing any open tags).

Re: Mako migration strategies

2008-06-12 Thread Jonathan Vanasco
On Jun 11, 10:09 pm, Mike Orr [EMAIL PROTECTED] wrote: Dispatch to another function via a keyword argument?  I'm not sure what that means.   That means...  The render function takes an engine name or uses the default engine, and invokes the corresponding plugin. which is where my confusion

Re: Bulk inserts

2008-06-12 Thread Jonathan Vanasco
one of the things i HATE about mysql, is the 5.0 branch , nothing failed. they specifically wanted everything to go though, and valued that behavior over integrity. in terms of what happens when something does fail now? I'm pretty sure the mysql and postgres docs have workarounds/solutions for

Re: Application keeps 'stalling'

2008-06-12 Thread ionel
this is an ab bug actually, see: https://issues.apache.org/bugzilla/show_bug.cgi?id=21495 you might want to update ab or use httperf for benchmarking On Jun 4, 7:44 pm, Jonathan Vanasco [EMAIL PROTECTED] wrote: An application i have running keeps randomly quitting or stalling. Quitting- I'm

Re: Application keeps 'stalling'

2008-06-12 Thread Jonathan Vanasco
On Jun 12, 6:22 pm, ionel [EMAIL PROTECTED] wrote: this is an ab bug actually, see:https://issues.apache.org/bugzilla/show_bug.cgi?id=21495 you might want to update ab or use httperf for benchmarking I thought that ab might be at fault, but the website was unreachable by other means too.

Re: Exception email reporting in production

2008-06-12 Thread Shannon -jj Behrens
On Thu, Jun 12, 2008 at 3:48 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm having trouble getting pylons to report errors via email where debug = false - basically nothing ever turns up. In production.ini there are some lines like: email_to = [EMAIL PROTECTED] smtp_server =