Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

XML-RPC(using SimpleXMLRPCServer) slow on the first call

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


begin.middle.end at gmail

Oct 12, 2009, 2:58 PM

Post #1 of 4 (309 views)
Permalink
XML-RPC(using SimpleXMLRPCServer) slow on the first call

Hello all,I have an xml-rpc server running on a machine in the same LAN as
the client. Both the server and the client are in Python.

When I have a series of xmlrepc calls from the client to the server, the
first call usually takes much longer than it should - orders of magnitude.
The latency is usually sub-10ms on the other calls, but the first call takes
up to 10 seconds or so. This are very simple functions, with almost no
computation.

Do you have any ideas?
Thank you,


gagsl-py2 at yahoo

Oct 13, 2009, 8:52 PM

Post #2 of 4 (273 views)
Permalink
Re: XML-RPC(using SimpleXMLRPCServer) slow on the first call [In reply to]

En Mon, 12 Oct 2009 18:58:45 -0300, Mahi Haile
<begin.middle.end [at] gmail> escribió:

> Hello all,I have an xml-rpc server running on a machine in the same LAN
> as
> the client. Both the server and the client are in Python.
>
> When I have a series of xmlrepc calls from the client to the server, the
> first call usually takes much longer than it should - orders of
> magnitude.
> The latency is usually sub-10ms on the other calls, but the first call
> takes
> up to 10 seconds or so. This are very simple functions, with almost no
> computation.
>
> Do you have any ideas?

I doubt this is a Python problem. I'd look into the network: DNS
resolution, IPv6 (Windows XP has some timeout issues with IPv6 enabled).

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


begin.middle.end at gmail

Oct 14, 2009, 9:58 AM

Post #3 of 4 (267 views)
Permalink
Re: XML-RPC(using SimpleXMLRPCServer) slow on the first call [In reply to]

---------- Forwarded message ----------
> From: "Gabriel Genellina" <gagsl-py2 [at] yahoo>
> To: python-list [at] python
> Date: Wed, 14 Oct 2009 00:52:13 -0300
> Subject: Re: XML-RPC(using SimpleXMLRPCServer) slow on the first call
> En Mon, 12 Oct 2009 18:58:45 -0300, Mahi Haile <begin.middle.end [at] gmail>
> escribió:
>
> Hello all,I have an xml-rpc server running on a machine in the same LAN as
>> the client. Both the server and the client are in Python.
>>
>> When I have a series of xmlrepc calls from the client to the server, the
>> first call usually takes much longer than it should - orders of magnitude.
>> The latency is usually sub-10ms on the other calls, but the first call
>> takes
>> up to 10 seconds or so. This are very simple functions, with almost no
>> computation.
>>
>> Do you have any ideas?
>>
>
> I doubt this is a Python problem. I'd look into the network: DNS
> resolution, IPv6 (Windows XP has some timeout issues with IPv6 enabled).
>
> --
> Gabriel Genellina
>
> That seems to be correct. The machine is behind a NAT, so that is probably
why. Thank you.


rafalgulinski at gmail

Nov 5, 2009, 8:17 AM

Post #4 of 4 (224 views)
Permalink
Re: XML-RPC(using SimpleXMLRPCServer) slow on the first call [In reply to]

On 14 Paź, 04:52, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> wrote:
> En Mon, 12 Oct 2009 18:58:45 -0300, Mahi Haile  
> <begin.middle....@gmail.com> escribió:
>
> > Hello all,I have an xml-rpc server running on a machine in the same LAN  
> > as
> > the client. Both the server and the client are in Python.
>
> > When I have a series of xmlrepc calls from the client to the server, the
> > first call usually takes much longer than it should - orders of  
> > magnitude.
> > The latency is usually sub-10ms on the other calls, but the first call  
> > takes
> > up to 10 seconds or so. This are very simple functions, with almost no
> > computation.
>
> > Do you have any ideas?
>
> I doubt this is a Python problem. I'd look into the network: DNS  
> resolution, IPv6 (Windows XP has some timeout issues with IPv6 enabled).
>
> --
> Gabriel Genellina

Hi,

I had quite similar issue and it was caused by some DNS settings. I
solved it by changing host name to host ip (f.e. for 'localhost' it
was '127.0.0.1'). I hope it will help you.

Regards,
Rafal
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.