On Sun, Nov 16, 2014 at 12:20 PM, Roberto De Ioris <[email protected]> wrote:
> > > Hi, > > > > I'm running OpenERP/Odoo (version 7) with uwsgi. > > > > The emperor uwsgi is started by supervisord. > > This is the vassals ini file: > > > > [uwsgi] > > socket = 127.0.0.1:9090 > > module = wsgi:application > > chdir = /home/openerp/v7_openerp > > home = /home/openerp/.virtualenvs/v7_openerp > > ;pythonpath = > > /home/openerp/.virtualenvs/v7_openerp/lib/python2.7/site-packages > > env = OPENERP_CONFIGRC=/home/openerp/etc/v7_openerp_rc > > processes = 2 > > threads = 1 > > enable-thread = true > > memory-report = true > > stats = 127.0.0.1:9191 > > vacuum = True > > master-fifo = /tmp/uwsgi.v7.fifo > > lazy-apps = true > > uid = openerp > > gid = openerp > > > > As expected uwsgitop shows 2 nodes. This stays as is. > > > > If I open htop, and filter on the uwsgi processes for v7_openerp, I see 3 > > processes. Two of these have the process numbers shown under uwsgitop, > the > > third is mysterious to me. > > > > its the master > > > > > After the first request another 13 uwsgi vassal processes show up in > htop, > > but not in uwsgitop. The number of uwsgi processes increases with each > > request. > > > > > i do not think this is something related to uWSGI (infact uwsgitop does > not even know about those 13 processes), more likely you have configured > openerp wrongly (or it is doing something requiring this behaviour). Do > you see the request counter (in uwsgitop) increasing while making request > to the site ? And more important, are you sure those are processes and not > threads ? > This might sound to be a dumb question, but how do I know if it's a process or a thread? In htop each of the uwsgi lines have their own pid. On the other hand, in tree view of htop, the new uwsgi lines are under one of the uwsgi vassal processes. The request counter increases with each request. Even if they are threads, shouldn't they stop, and disappear after a while? I could not find any docs on openerp threading, and thread configuration. The only thing I notice is that openerp can't make more new connections to DB: *OperationalError: FATAL: remaining connection slots are reserved for non-replication superuser connections. *and I presume that there are plenty of open connections in those processes/threads. I know this is an OpenERP specific error, not uwsgi related, but it would be nice to handle this from the uwsgi side, as OpenERP is much harder to debug and configure properly. > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
