On 2/19/07, wyatt-bC <[EMAIL PROTECTED]> wrote: > > On Feb 19, 1:09 pm, John_Nowlan <[EMAIL PROTECTED]> wrote: > > Anyone run into the problem of really, really slow mod_python pylons pages? > > I.e. paster serve is < 1s, but under mod_pyton is >10s? > > > > I had to create a virtual python installation and create various symbolic > > links across file systems to get things working, but they do work, just > > really, really slow. Could this be causing slowness? > > > > It seems like each request is 'interpreting/compiling' things from scratch. > > > > I do see *.pyc and *.pyo files, i.e.: > > > > lrwxrwxrwx 1 jnowlan ccs 35 Jan 20 05:20 httplib.py -> > > /usr/local/lib/python2.5/httplib.py > > -rw------- 1 jnowlan ccs 39449 Nov 24 14:46 httplib.pyc > > lrwxrwxrwx 1 jnowlan ccs 36 Jan 20 05:20 httplib.pyo -> > > /usr/local/lib/python2.5/httplib.pyo > > > > This is on a unix box, and I'm sorry for not providing more details but > > I've become a windows ignoramus and don't know what might be happening > > under unix. As well as being relatively new to python. > > > > There, have I coverd my *ss enough? > > Just thought someone might know. > > I don't have an answer to your question, but on a related note, I like > (conceptually, at least) the idea of running Paste server behind a > reverse proxy. Have you tried that setup? > > You could set up Paste server using this (long but fairly > straightforward): <http://pylonshq.com/project/pylonshq/wiki/ > DaemonTools>, then set up Apache in front. > > If you've already tried something like that, how did it work out?
In production, I put Pylons behind Apache, using Apache as a reverse proxy. As for the mod_python problem: * Do you have Apache setup to throw away threads/processes after every request? That would slow things down. * Consider using Python's compileall.py module (/usr/lib/python2.4/compileall.py on my system) to precompile the .pyc's and .pyo's as root (or whatever). * Can you replicate the behavior using a non-Pylons mod_python application? * Sounds like something you might want to bring up on the mod_python list. Happy Hacking! -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
