How did you replace a Thrift server with Tomcat?

On Mon, Jan 24, 2011 at 7:03 AM, dean forever <[email protected]>wrote:

> 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 <[email protected]>
>
> > 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 <
> [email protected]
> > >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
> > >
> >
>

Reply via email to