thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dvir Volk <>
Subject Re: best solution for java client and python server maintaining high concurrents
Date Fri, 21 Jan 2011 11:45:38 GMT
I don't know about the compact transport, but just a python server tip -
use TBinaryProtocolAccelerated, handles serialization with C code which
makes it faster.
Also, try not to have more jmeter threads than max threads on the server.
I'm currently testing thrift with jmeter via a PHP proxy rest server, but
these tips should apply when testing directly with java, I guess.

On Fri, Jan 21, 2011 at 7:23 AM, dean forever <>wrote:

> When I use the default example settings for java client and python server(
> like tutorial shows) to do Jmeter Tests,lots of errors such as
> "TTransportException: Socket already connected"  "'Connection reset by
> peer"
> "Broken pipe"
> happened
> when i try TFramedTransport TCompactProtocol in java, it's all right
> in python  when I use TFramedTransport ,it shows that no listen and accept
> method in it.When I added them by
> def listen(self):
> return self.__trans.listen()
> the python server can run normally
> but when I start Java Client to request, the python server show lots of
> NameError in
> Anyone has a better solution  to this combine???Please help me find a best
> solution for java Client and python Server  maintaining
>  high concurrents

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message