Re: [PyWrapper-devel] GENERATING_CONTENT_FAILED withparallel
Status: Alpha
Brought to you by:
jatorre
From: <m.d...@BG...> - 2007-06-15 09:23:36
|
It might or should. but im not 100% sure and it can be quite some work = if you have to compile the fastcgi module for apache yourself. on linux = its probably part of the distribution. see here: http://trac.pywrapper.org/pywrapper/wiki/InstallationGuide#Behindawebserv= erviaFastCGI There is also a cherrypy configuration in config/pywrapper.cfg that has = this line: server.thread_pool =3D 3 try increasing the thread pool. that should allow the cherrypy server to = answer more requests simultaneously. markus -----Original Message----- From: pyw...@li... on behalf of Shunde = Zhang Sent: Thu 6/14/2007 2:45 AM To: PyWrapper Developers mailing list Cc:=09 Subject: Re: [PyWrapper-devel] GENERATING_CONTENT_FAILED withparallel = queries Hi Markus, I am using cherrypy for testing. could you please tell me how to use = production mode? would it be solved if I use apache? thanks again. Cheers, Shunde. Quoting Markus D=F6ring <m.d...@bg...>: > shunde, > are you running pywrapper behind apache via fastcgi or standalone via > cherrypy? if cherrypy, are you using the produciton mode? > -- > Markus > > > > On 13.06.2007, at 02:10, Shunde Zhang wrote: > > > Hi all, > > > > I've written a program using multi-threads to send queries at the > > same time. I > > was working before. Yesterday I put in more records to my database > > (~300000). > > Today I ran my program, I found that it works if I send one only > > query at one > > time. If I sent 2 queries at the same time, it gives me an error. > > > > <!-- CONTENT START --> > > <error xmlns=3D"http://rs.tdwg.org/tapir/1.0" time=3D"2007-06-07 > > 11:13:10.23" > > level=3D"ERROR">Response preparation and data retrieval = error</error> > > <!-- CONTENT END --> > > <diagnostics> > > <diagnostic time=3D"2007-06-07T11:13:02.44" level=3D"INFO">Reading > > request</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:02.49" level=3D"INFO">Read = model > > http://rs.tdwg.org/tapir/cs/abcd/2.06/model/abcd206.xml</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:02.51" level=3D"INFO">Request = fully > > parsed</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:02.51" level=3D"INFO">Get = distinct > > records...</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:02.52" level=3D"INFO">Executing > > SQL: "SELECT > > DISTINCT TaxonName.Genus, TaxonName.Species FROM TaxonName AS > > TaxonName > > ORDER BY TaxonName.Genus, TaxonName.Species LIMIT 21 OFFSET 0"</ > > diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:03.47" level=3D"INFO">Parsed > > response structure > > contains 991 leaf concepts with type out of 1663 nodes in = total</diag > > nostic> > > <diagnostic time=3D"2007-06-07T11:13:04.14" level=3D"INFO">Request = fully > > parsed</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:04.15" level=3D"INFO">Init = model > > ACBD 2.06 with > > datasource preferences</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:04.55" level=3D"INFO">Model = init > > finished. The > > model contains 1324 mapped concepts for datasource 'avh' out of 1324 = m > > odel nodes mapped.</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:04.55" level=3D"INFO">Update = model > > structure > > with datasource preferences</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:10.17" level=3D"INFO">DB query > > finished</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:10.17" > > level=3D"ERROR">GENERATING_CONTENT_FAILED</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:10.23" level=3D"ERROR">Response > > preparation and > > data retrieval error</diagnostic> > > <diagnostic time=3D"2007-06-07T11:13:10.24" > > level=3D"ERROR">GENERATING_CONTENT_FAILED</diagnostic> > > > > Strangely, i sent one inventory and one search, but the errors I > > got are the > > same, which is like doing an inventory query as above. Could you > > please give me > > some idea of how to solve it? thanks a lot. > > > > Cheers, > > Shunde. > > > > > > > > > > = ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > PyWrapper-devel mailing list > > PyW...@li... > > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel > > > = -------------------------------------------------------------------------= > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > PyWrapper-devel mailing list > PyW...@li... > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel > -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ PyWrapper-devel mailing list PyW...@li... https://lists.sourceforge.net/lists/listinfo/pywrapper-devel |