[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-04 Thread William Dode
On 03-09-2008, Mic Pringle wrote: Hi, I'm looking to use mod_wsgi to implement a shared hosting scheme for Django and was wondering if it was possible to set a limit/cap on the memory used by each daemon child process, so that if one Django apps starts sucking up all available memory it

[modwsgi] Re: Limit the memory of each daemon process ...

2008-09-20 Thread William Dode
On 03-09-2008, Graham Dumpleton wrote: 2008/9/4 Mic Pringle [EMAIL PROTECTED]: Hi, I'm looking to use mod_wsgi to implement a shared hosting scheme for Django and was wondering if it was possible to set a limit/cap on the memory used by each daemon child process, so that if one Django

[modwsgi] Re: Observations about setuptools fork and WSGI.

2008-09-25 Thread William Dode
On 25-09-2008, Graham Dumpleton wrote: [...] This is why I see the fork of setuptools being interesting. That is, someone else has got frustrated enough with something else produced by I just read that there is an other one :

[modwsgi] Re: Annoying behavior, mod_wsgi caching?

2008-09-28 Thread William Dode
On 28-09-2008, ianmendiola wrote: Hello, I've noticed that while developing a web application using mod_wsgi some of the changes I make don't appear on the first refresh. For instance if I had a page that displayed, Hello World and wanted to change it to Hello Universe. I'd only see the

[modwsgi] threading.local

2008-10-02 Thread William Dode
Hi, In daemon mode, with threads=1 : def application(environ, start_response): status = '200 OK' output = con= %s % cgi.escape(repr(pool.connection())) loc = threading.local() try: loc.i += 1 except AttributeError: loc.i = 0 output = 'i=%s' % loc.i

[modwsgi] Re: threading.local

2008-10-03 Thread William Dode
Maybe more clear : #!/usr/bin/python import cgi import threading import sys import os class MyLoc(threading.local): def __init__(self): print sys.stderr , 'init' myloc = MyLoc() def application(environ, start_response): status = '200 OK' myloc.i = 0 print sys.stderr,

[modwsgi] Re: threading.local

2008-10-03 Thread William Dode
I'll look if i can reproduce this with the code of _threading_local With _threading_local it works (python implementation) import _threading_local class MyLoc(_threading_local.local): [Fri Oct 03 11:47:08 2008] [error] init [Fri Oct 03 11:47:08 2008] [error] pid: 2091 id: 3067888900

[modwsgi] Re: threading.local

2008-10-06 Thread William Dode
On 06-10-2008, gert wrote: On Oct 6, 10:33 am, gert [EMAIL PROTECTED] wrote: On Oct 6, 10:18 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/10/6 gert [EMAIL PROTECTED]: Failed requests:        9993 But I did have 1564.21 requests per second doh :-)

[modwsgi] Re: threading.local

2008-10-06 Thread William Dode
On 06-10-2008, William Dode wrote: ... The only problem is that there is not a lot of db pool utilities and dbutils is one of the most famous... I reported the problem on the dbutils list -- William Dodé - http://flibuste.net Informaticien Indépendant

[modwsgi] Re: threading.local

2008-10-06 Thread William Dode
On 04-10-2008, Graham Dumpleton wrote: BTW, if I am right, you would see the behaviour you expect to see if you use: WSGIApplicationGroup %{GLOBAL} More or less, it give me alternatively two differents local instances... But i'm agree with your analyze, that to use threading.local is not

[modwsgi] Re: threading.local

2008-10-15 Thread William Dode
On 06-10-2008, William Dode wrote: On 06-10-2008, William Dode wrote: ... The only problem is that there is not a lot of db pool utilities and dbutils is one of the most famous... I reported the problem on the dbutils list DBUtils 1.0rc1 now works with mod_wsgi :-) -- William Dodé

[modwsgi] apache configuration for little server

2008-11-28 Thread William Dode
Hi, i've a little virtual server with few websites with very low traffics and one website with more traffic (10 hits/day). Most of the time it works very very well, very fast, without using too much memory... But sometimes the load goes very high, i don't know why, i imagine that it's

[modwsgi] Re: apache configuration for little server

2008-11-28 Thread William Dode
On 28-11-2008, Nimrod A. Abing wrote: Do you have KeepAlive on? If so how many seconds is your KeepAliveTimeout? Would also help to know what OS you're running and how much memory you have on your server. MaxKeepAliveRequests 100 KeepAliveTimeout 15 The os is debian lenny, the server has

[modwsgi] Re: apache configuration for little server

2008-11-28 Thread William Dode
On 28-11-2008, Graham Dumpleton wrote: 2008/11/29 William Dode [EMAIL PROTECTED]: Hi, i've a little virtual server with few websites with very low traffics and one website with more traffic (10 hits/day). Most of the time it works very very well, very fast, without using too much

[modwsgi] import error after logrotate

2008-12-22 Thread William Dode
Hi, I found something strange on an app wich run under deamon process [Mon Dec 22 06:45:27 2008] [info] mod_wsgi (pid=14608): Create interpreter 'xxx.flibuste.net|/cde/serv_cde.wsgi'. [Mon Dec 22 06:45:27 2008] [info] mod_wsgi (pid=14608): Adding '/home/web/xxx/pynclude' to path. [Mon Dec 22

[modwsgi] Re: import error after logrotate

2008-12-30 Thread William Dode
On 22-12-2008, Graham Dumpleton wrote: 2008/12/23 William Dode w...@flibuste.net: On 22-12-2008, William Dode wrote: k Hi, I found something strange on an app wich run under deamon process [Mon Dec 22 06:45:27 2008] [info] mod_wsgi (pid=14608): Create interpreter 'xxx.flibuste.net

[modwsgi] How many threads ?

2009-01-02 Thread William Dode
Hi, I switched an app to multithread. Now i would like to know how many threads was used simultaneously. For two reasons. To know if i really need multithread and if yes how many thread i must configure. Thought i know that i should not choose the minimum... Is there an easy way to do this ?

[modwsgi] Re: import error after logrotate

2009-01-03 Thread William Dode
On 02-01-2009, Graham Dumpleton wrote: 2009/1/2 William Dode w...@flibuste.net: The bug with which memory pool was used, potentially meant that stuff like the value of the python-path option was stored in memory which had been released. When that memory would be reused would be a bit random

[modwsgi] Re: How many threads ?

2009-01-03 Thread William Dode
On 03-01-2009, Graham Dumpleton wrote: 2009/1/3 William Dode w...@flibuste.net: On 02-01-2009, Graham Dumpleton wrote: 2009/1/3 William Dode w...@flibuste.net: Hi, I switched an app to multithread. Now i would like to know how many threads was used simultaneously. For two reasons

[modwsgi] timeout

2009-01-12 Thread William Dode
Hi, I still have somes problems with somes apps that i cannot resolv. They are not related to mod_wsgi because when i use mod_proxy they hang also. There is something about io i think... Very difficult to catch because it's happend not often, one time each week on one server, one time each

[modwsgi] Re: timeout

2009-01-14 Thread William Dode
On 12-01-2009, Graham Dumpleton wrote: 2009/1/12 William Dode w...@flibuste.net: Hi, I still have somes problems with somes apps that i cannot resolv. They are not related to mod_wsgi because when i use mod_proxy they hang also. There is something about io i think... Very difficult

[modwsgi] Re: Converting mod_wsgi subversion repository to Mercurial.

2009-03-23 Thread William Dode
On 23-03-2009, Graham Dumpleton wrote: So, may be time to finally look at Mercurial since they have already given me instructions on how to convert mod_wsgi over. :-) +1 Mercurial + mod_wsgi are working very well together. I use it for all of my projects, even with few contributor it's very

[modwsgi] Re: Converting mod_wsgi subversion repository to Mercurial.

2009-03-23 Thread William Dode
On 23-03-2009, Michael Schurter wrote: +1 for bzr Honestly I really don't care, just felt someone needed to stand up for the other main competing DVCS. :-) I was a fan of bzr till i tried mercurial, the same but faster and simpler. Did you tried it ? -- William Dodé -

[modwsgi] Re: Auto reload and other web frameworks.

2009-03-28 Thread William Dode
On 27-03-2009, Graham Dumpleton wrote: I know this is off topic for this list, but in looking at code autoreloading options for mod_wsgi, the question arose in my mind as to what Ruby on Rails and similar for Ruby do to handle the issue of code changes made to live application. Do they have

[modwsgi] Re: http://google-code-updates.blogspot.com/2009/04/mercurial-support-for -project-hosting.html

2009-05-09 Thread William Dode
On 09-05-2009, gert wrote: Whohoo :-) if it's not enough http://hg-git.github.com/ -- William Dodé - http://flibuste.net Informaticien Indépendant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups modwsgi

[modwsgi] modwsgi for web service

2009-06-05 Thread William Dode
Hi, I did a web service, called from a php script. It's wsgi compliant. Now i wonder wich server i should take. Since the php script and my app runs on the same machine, i don't need apache for this, the php script call my app directly by localhost:. But if i run my app under mod_wsgi i

[modwsgi] Re: modwsgi for web service

2009-06-06 Thread William Dode
On 06-06-2009, gert wrote: On Jun 5, 11:00 am, William Dode w...@flibuste.net wrote: Hi, I did a web service, called from a php script. It's wsgi compliant. Now i wonder wich server i should take. Since the php script and my app runs on the same machine, i don't need apache

[modwsgi] Re: i just found the hg button :)

2009-07-24 Thread William Dode
On 24-07-2009, Graham Dumpleton wrote: This project isn't exactly one where many people are working on it, so it is not like it brings any needed features. I think there are a lot of people working on/with it that you don't see. mod_wsgi is a critical piece of software, it serve websites !

[modwsgi] Re: Status of Python 3 support.

2009-08-06 Thread William Dode
On 06-08-2009, Damjan wrote: Not very well. We are having another argument about WSGI specification and Python 3.0 at the moment on Python WEB-SIG list. The discussion seems to have exploded over night and have about 30 messages to read about it yet. If some sort of resolution isn't