On Fri, Nov 19, 2021 at 8:30 AM ChrisFisher <yangfishe...@gmail.com> wrote:

> Hey Guys, I want to do a micro benchmark, and I have one master machine
> and one worker machine. The master machine sends out rpcs concurrently to
> the worker, and after the worker receive the rpc, it starts to do some
> commands using exec.Command. Here are parts of my code. master code
> <https://play.golang.org/p/lN3WxPfkqyw> and, worker code
> <https://play.golang.org/p/WxhPoztrWOn>. I use a channel of size 12 to
> simulate there are only 12 threads in worker machine. But the whole
> procedure stuck at the point of
> cmd.Run() and I don't know why because the command is just simply echo a
> hello. I did some experiments on rpc and exec.Command, they worked out
> perfectly without each other. But when I combined them, it stuck. I don't
> know, does anyone know what happen?
>

Insufficient data since your playground worker example does not include the
rpc components or a `main()` function. I would start by killing the worker
process with SIGABRT. That should produce Go stack traces which are likely
to provide useful clues.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8RHKwqcNipUn4io7uDoOTAeG%3Dh3X2PyASR491ria_d4g%40mail.gmail.com.

Reply via email to