Ian Bicking wrote:
> On Wed, 2002-09-25 at 07:16, Max Ischenko wrote:
> > I have a problem: sometimes my servlet got request which it couldn't
> > handle in a finite time. This leads to the situation when whole
> > appserver becomes unavailable and just "hangs", not responding to new
> > requests.
> What kind of processing is going on at this time? It sounds like the
> long-running code is holding onto the GIL (global interpreter lock), and
> not letting other threads continue. If this is the case, I think the
> only solution is to run that in another process.
The exact situation is not clear to me yet.
In summary, job of the servlet is to fetch some data from RDBMS
(using pyPgSQL driver), format it into XML and pass to the client.
When requested dataset is too much, something bad is happens and can't
figure what it is exactly. It seems like my servlet doesn't notice when
DBMS finally finished serving SQL and it continues to wait for something
(forever) while postmaster has returned to idle. Moreover, AppServer is
lock as well (as I said earilier).
Not-so-lengthy requests are handled just fine.
Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph.