bazel process does not go away

983 views
Skip to first unread message

Thiago Farina

unread,
Apr 14, 2015, 1:34:44 PM4/14/15
to bazel-...@googlegroups.com
Hi,

I thought or at least I think it was supposed that 'shutdown' would kill the java process, but at least on my machine, that does not seem to be happening:

$ sudo netstat -tulpn | grep bazel
tcp        0      0 0.0.0.0:5005            0.0.0.0:*               LISTEN      15410/bazel(tfarina

$ ./output/bazel shutdown
.......

Same thing, it is still there:

$ sudo netstat -tulpn | grep bazel
tcp        0      0 0.0.0.0:5005            0.0.0.0:*               LISTEN      15410/bazel(tfarina

To really kill it I had to do:

$ sudo fuser -k 5005/tcp
5005/tcp:            15410

Then netstat shows nothing for:
$ sudo netstat -tulpn | grep bazel

Am I missing something? Is 'shutdown' behaving correctly?

-- 
Thiago Farina

Damien Martin-guillerez

unread,
Apr 14, 2015, 1:37:46 PM4/14/15
to Thiago Farina, bazel-...@googlegroups.com
Wait, did you run the status server? I believe it might be broken so it is possible the socket doesn't get unbind when killing it (generally you have a timeout).

What does ps aux | grep bazel gives you after the shutdown?

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To post to this group, send email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFenBsa0scuhXwnOssK5GEOdwk2%3DFgnvFRdN7Eh9_oKJY4gThQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Laurent Le Brun

unread,
Apr 14, 2015, 1:55:46 PM4/14/15
to Damien Martin-guillerez, Thiago Farina, bazel-...@googlegroups.com
Hi,

Also make sure you run the shutdown from the same workspace
(directory) as you launched it.
You can get one Bazel server instance running per workspace.
> https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS8n1%3DVq-vYLJR%2BUpdaB2%2BHfnEdRjygu4oxUYX1XJcELKQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages