That is certainly odd. What's the latency when using the kafka console producers and consumers? Is it much faster? If it is, I would just strace the kafka-topics command to see where it is spending the time.
On Thu, Dec 8, 2016 at 7:21 AM, Stephen Cresswell < stephen.cressw...@gmail.com> wrote: > I followed the quickstart instructions at > https://kafka.apache.org/quickstart and everything seems to be working ok, > except that commands take a long time to run, e.g. > > $ time bin/kafka-topics.sh --list --zookeeper localhost:2181 > > real 0m11.751s > user 0m1.540s > sys 0m0.273s > > The zookeeper logging shows that the request is processed in a few > milliseconds, so I think it's related to the kafka JVM configuration. If I > remove com.sun.management.jmxremote it's takes 6 seconds but this is still > much longer than I would have expected. > > Any suggestions on how to speed things up? >