improve java thrift server performance