grpc-java has a method in its ServerBuilder class to set the Executor. Is
there similar functionality for grpc-c++ ? I am running a C++ grpc server
and the number of executor threads it spawns is high and seems to never
decrease, even when connections stop.

On Wed, May 19, 2021 at 1:19 PM 'Mark D. Roth' via grpc.io <
[email protected]> wrote:

> The gRPC server synchronous API in C++ has a thread pool to manage polling
> and request handling.  The thread pool grows and shrinks as needed but
> always keeps some capacity around for new incoming requests that may show
> up at any time.  The threads should go away when you shut down the server.
>
> On Monday, May 17, 2021 at 8:39:59 AM UTC-7 Jeff wrote:
>
>> Hi,
>> I am running a grpc synchronous server impemented in C++. I notice when I
>> run that many threads named ‘default-executo’ are spawned. It seems that
>> even when clients cease to make connections, these threads still persist.
>> There are dozens of these threads, and I would like to know what they are
>> doing and what their lifespan is. Thanks!
>>
>> Jeff
>>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/35eef025-5c54-40f6-a577-bc36743ad834n%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/35eef025-5c54-40f6-a577-bc36743ad834n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAA-WHumJG%2BAJjWwV22HE%3DmrFdSSftpkcod%2BoSRq0UoRzZ3WJ0A%40mail.gmail.com.

Reply via email to