If you telnet into a THsHaServer, you are extremely likely to crash the server, so don't do that.
On Sun, Feb 27, 2011 at 10:36 AM, King JKing <[email protected]> wrote: > Dear all, > > My service use Thrift050, THsHaServer, and based on Java. > Here is my server code: > QueueServer server = new QueueServer(); > QueueService.Processor processor = new QueueService.Processor( > server); > TNonblockingServerSocket socket = new TNonblockingServerSocket( > listenPort); > THsHaServer.Options options = new THsHaServer.Options(); > TServer serverEngine = new THsHaServer(processor, socket, options); > > Here is my client code: > TTransport socket = new TSocket(host, port); > TTransport transport = new TFramedTransport(socket); > TProtocol protocol = new TBinaryProtocol(transport); > transport.open(); > > My system run rather well in 6 month ago. But two weeks ago, my system run > bad. Sometime my service hang up (timeout exception always throw when > connect to my service) > > I've checked my system log. The request to my system equals to six months > ago. CPU and RAM still good. No code change. > > Anybody have the same problem with me? > Could you give me the way to fix this? > > I know if the service use TThreadPoolServer, when you telnet to this and > type something, the service will stop with exception OOM. Maybe the same > problem when use THsHaServer? > > Thank a lot for support. > Best regards. >
