thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dean forever <deanforwever2...@gmail.com>
Subject Re: best solution for java client and python server maintaining high concurrents
Date Mon, 24 Jan 2011 15:03:28 GMT
thanks , Dvir!
finally ,by testing the server, I found the server didnot perform well.Only
10% CPU usage,comparing to 100%  CPU usage of Java Tomcat
I think i need to find a better server program instead of the thrift default
server.


2011/1/21 Dvir Volk <dvirsky@gmail.com>

> 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 <deanforwever2010@gmail.com
> >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 TCompactProtocol.py
> >
> > Anyone has a better solution  to this combine???Please help me find a
> best
> > solution for java Client and python Server  maintaining
> >  high concurrents
> >
>

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