librelist archives

« back to archive

radicale server hangs after a while

radicale server hangs after a while

From:
Vladimir Elisseev
Date:
2012-02-20 @ 12:37
Hello,

I have had radicale process hanging two times (each time after a  
couple of days), so only "kill -9" helps. The point is that I can't  
see the way to debug as it simply doesn't respond at all... Please let  
me know if you need any additional details (python version, etc.).

Regards,
Vlad.

Re: [radicale] radicale server hangs after a while

From:
Guillaume Ayoub
Date:
2012-02-20 @ 12:59
Le lundi 20 février 2012 à 13:37 +0100, Vladimir Elisseev a écrit :
> Hello,

Hello!

> I have had radicale process hanging two times (each time after a  
> couple of days), so only "kill -9" helps. The point is that I can't  
> see the way to debug as it simply doesn't respond at all... Please let  
> me know if you need any additional details (python version, etc.).

It sometimes happen to me too. I'm pretty sure that it comes from the
internal HTTP server of Python, that is definitely not real-life-ready.
It's quite easy to make the server hang, by sending a lot of concurrent
requests, or opening HTTP connections without closing them.

I've tried to debug this, but that's hard as it can't be reproduced.
There's nothing in the logs, no load (ie no infinite loop), no real
clue. If you find something, I'll be really interested to know!

Regards,
-- 
Guillaume

Re: [radicale] radicale server hangs after a while

From:
Vladimir Elisseev
Date:
2012-02-20 @ 13:02
Thanks for explaining this issue! Is this applicable to both versions  
of python 2.x and 3.x (I have only 2.7.x installed)?

Vlad.

----- Message from Guillaume Ayoub <guillaume.ayoub@kozea.fr> ---------
     Date: Mon, 20 Feb 2012 13:59:31 +0100
     From: Guillaume Ayoub <guillaume.ayoub@kozea.fr>
Reply-To: radicale@librelist.com
  Subject: Re: [radicale] radicale server hangs after a while
       To: radicale@librelist.com


> Le lundi 20 février 2012 à 13:37 +0100, Vladimir Elisseev a écrit :
>> Hello,
>
> Hello!
>
>> I have had radicale process hanging two times (each time after a
>> couple of days), so only "kill -9" helps. The point is that I can't
>> see the way to debug as it simply doesn't respond at all... Please let
>> me know if you need any additional details (python version, etc.).
>
> It sometimes happen to me too. I'm pretty sure that it comes from the
> internal HTTP server of Python, that is definitely not real-life-ready.
> It's quite easy to make the server hang, by sending a lot of concurrent
> requests, or opening HTTP connections without closing them.
>
> I've tried to debug this, but that's hard as it can't be reproduced.
> There's nothing in the logs, no load (ie no infinite loop), no real
> clue. If you find something, I'll be really interested to know!
>
> Regards,
> --
> Guillaume


----- End message from Guillaume Ayoub <guillaume.ayoub@kozea.fr> -----


Re: [radicale] radicale server hangs after a while

From:
Guillaume Ayoub
Date:
2012-02-20 @ 13:50
Le lundi 20 février 2012 à 14:02 +0100, Vladimir Elisseev a écrit :
> Thanks for explaining this issue! Is this applicable to both versions  
> of python 2.x and 3.x (I have only 2.7.x installed)?

That's a good question. For my "production" installation, I'm stuck with
Python 2.7 because I use the LDAP authentication module. The 3.x version
may be better, but it will never be as good as a "real" HTTP server.

Regards,
-- 
Guillaume

> ----- Message from Guillaume Ayoub <guillaume.ayoub@kozea.fr> ---------
>      Date: Mon, 20 Feb 2012 13:59:31 +0100
>      From: Guillaume Ayoub <guillaume.ayoub@kozea.fr>
> Reply-To: radicale@librelist.com
>   Subject: Re: [radicale] radicale server hangs after a while
>        To: radicale@librelist.com
> 
> 
> > Le lundi 20 février 2012 à 13:37 +0100, Vladimir Elisseev a écrit :
> >> Hello,
> >
> > Hello!
> >
> >> I have had radicale process hanging two times (each time after a
> >> couple of days), so only "kill -9" helps. The point is that I can't
> >> see the way to debug as it simply doesn't respond at all... Please let
> >> me know if you need any additional details (python version, etc.).
> >
> > It sometimes happen to me too. I'm pretty sure that it comes from the
> > internal HTTP server of Python, that is definitely not real-life-ready.
> > It's quite easy to make the server hang, by sending a lot of concurrent
> > requests, or opening HTTP connections without closing them.
> >
> > I've tried to debug this, but that's hard as it can't be reproduced.
> > There's nothing in the logs, no load (ie no infinite loop), no real
> > clue. If you find something, I'll be really interested to know!
> >
> > Regards,
> > --
> > Guillaume
> 
> 
> ----- End message from Guillaume Ayoub <guillaume.ayoub@kozea.fr> -----
> 
> 
> 

Re: [radicale] radicale server hangs after a while

From:
Vladimir Elisseev
Date:
2012-02-20 @ 16:08
So, if I understand correctly this problem doesn't appear if you use
mod_wsgi with apache, right?

Regards,
Vlad.

On Mon, 2012-02-20 at 14:50 +0100, Guillaume Ayoub wrote:
> Le lundi 20 février 2012 à 14:02 +0100, Vladimir Elisseev a écrit :
> > Thanks for explaining this issue! Is this applicable to both versions  
> > of python 2.x and 3.x (I have only 2.7.x installed)?
> 
> That's a good question. For my "production" installation, I'm stuck with
> Python 2.7 because I use the LDAP authentication module. The 3.x version
> may be better, but it will never be as good as a "real" HTTP server.
> 
> Regards,

Re: [radicale] radicale server hangs after a while

From:
Guillaume Ayoub
Date:
2012-02-20 @ 16:49
If the problem really comes from the HTTP server (and I think it does),
using mod_wsgi should fix the problem.

Regards,
-- 
Guillaume

Le lundi 20 février 2012 à 17:08 +0100, Vladimir Elisseev a écrit :
> So, if I understand correctly this problem doesn't appear if you use
> mod_wsgi with apache, right?
> 
> Regards,
> Vlad.
> 
> On Mon, 2012-02-20 at 14:50 +0100, Guillaume Ayoub wrote:
> > Le lundi 20 février 2012 à 14:02 +0100, Vladimir Elisseev a écrit :
> > > Thanks for explaining this issue! Is this applicable to both versions  
> > > of python 2.x and 3.x (I have only 2.7.x installed)?
> > 
> > That's a good question. For my "production" installation, I'm stuck with
> > Python 2.7 because I use the LDAP authentication module. The 3.x version
> > may be better, but it will never be as good as a "real" HTTP server.
> > 
> > Regards,
>