[grpc-io] Re: gRPC vs RST a naive performance test

2017-05-15 Thread 'Carl Mastrangelo' via grpc.io
Hey, It looks like this needs to be rewritten. There are a lot of factors that the code doesn't account for (like memory allocation). You should consider rewriting your benchmark with a benchmarking harness like JMH or Caliper. On Monday, May 15, 2017 at 11:57:11 AM UTC-7, Dharshana

[grpc-io] Re: onStreamAllocated was not called, but it seems the stream is active Error

2017-05-15 Thread 'Eric Anderson' via grpc.io
This is a bug in gRPC. That exception is checking our internal state and somehow it's gotten confused. I filed https://github.com/grpc/grpc-java/issues/3007 for tracking On Mon, May 15, 2017 at 3:43 PM, Carl Mastrangelo wrote: > +Eric > > > On Saturday, May 13, 2017 at

[grpc-io] Re: onStreamAllocated was not called, but it seems the stream is active Error

2017-05-15 Thread 'Carl Mastrangelo' via grpc.io
+Eric On Saturday, May 13, 2017 at 4:09:11 PM UTC-7, gar...@rave.io wrote: > > Hey, > > I'm getting this cryptic error message and would like some help figuring > out what's causing it. > > We have a GRPC service written in Clojure/Java and after running the > service for a while our logs will

Re: [grpc-io] (Python) gRPC Server leaking connections with infinite response stream

2017-05-15 Thread eric
Thanks for the back-and-forth. Here is a minimal example you can play around with to see the behavior: https://gist.github.com/efritz/1417921e3d646184ee42606c069f7ada. It's difficult to demonstrate it in a single program as I need to forcefully disconnect a client. It needs at least two

Re: [grpc-io] (Python) gRPC Server leaking connections with infinite response stream

2017-05-15 Thread 'Nathaniel Manista' via grpc.io
(This is also being discussed in this StackOverflow question .) On Sun, May 14, 2017 at 1:15 PM, wrote: > I'm having an issue with client disconnection using a

[grpc-io] gRPC vs RST a naive performance test

2017-05-15 Thread Dharshana Ratnayake
Hi guys.. Ive very recently discovered the world of gRPC and im super enthusiastic about how i can use it.. Just so i can understand the potential benefits. i set up the following benchmark test.. track 1: JSON over http1 using a spring boot app running on a google compute engine. public

[grpc-io] grpc Naive implementation performance

2017-05-15 Thread darthshana
Hi guys.. Ive very recently discovered the world of gRPC and im super enthusiastic about how i can use it.. Just so i can understand the potential benefits. i set up the following benchmark test.. track 1: JSON over http1 using a spring boot app running on a google compute engine. public

[grpc-io] Re: [grpc-go] Multiple concurrent clients and bidirectional streaming

2017-05-15 Thread mbi
I am also correcting the error in my original post: the actual code we're using for spawning concurrent clients is this: var wg sync.WaitGroup wg.Add(n) for i := 0; i < n; i++ { go func() { defer wg.Done() runMyProtocolClient() }() } wg.Wait() -- You received this message because

[grpc-io] Re: [grpc-go] Multiple concurrent clients and bidirectional streaming

2017-05-15 Thread mancabizjak93
I'm also pasting logs from the server and concurrent clients: *Server log:* 2017/05/15 13:27:02 Registering services 2017/05/15 13:27:02 Instantiating new protocol server 2017/05/15 13:27:02 Starting GRPC server on port 7000 2017/05/15 13:27:03 [Server 0xc82022e000] spawned, stream=0xc8201ba120