[Twisted-Python] AMP Client disconnecting from server on high memory usage

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Mar 24 11:16:37 EDT 2011

On 22 Mar, 05:48 pm, danb.lists at googlemail.com wrote:
>Hey Guys,
>Some issue I've met recently when experimenting with AMP.
>Have created an AMP client connecting to a server and stay there
>connected (using tap services).
>The issues I am getting is that as soon as I load some more serious
>data into twisted process (about 700MB on a virtual machine with 3GB
>of ram available) the AMP Client does not longer stay connected to the
>server. The data is loaded at startup using another service (loading
>data by simulating it - adding random strings to some tuple).  I am
>using twisted 10.2 out of pypi packages.
>I should mention that with small amount of data in memory the
>connection stays stable just fine. In logs there is nothing except
>seeing the client connecting and disconnecting in the same second.
>Any of you know any memory configuration somewhere in the code?

There are some limits on the length of individual values you can send 
with AMP, but there shouldn't be any limits on how much memory your 
process can use overall.


More information about the Twisted-Python mailing list