是否可以在 VisualVM 中分析 apache 风暴拓扑?

Is it possible to profile apache storm topology in VisualVM?

我的 Apache Storm 拓扑越来越慢。我想知道哪些方法最耗时并减慢了拓扑结构。我可以分析 Apache Storm 拓扑以了解性能瓶颈在哪里吗,例如使用 visualvm 来显示消耗大量时间的方法,如下所示:

或者是否有任何其他标准/首选/推荐方法?

是的,您可以像任何其他 Java 进程一样分析 Storm。 describes the settings you need to set on the JVMs (ignore the Docker parts). You can add these parameters to your worker JVMs by setting the topology.worker.childopts configuration setting。之后,您应该能够将 VisualVM 附加到您要查看的每个工作进程。

关于查找瓶颈的其他方法,您可以在 capacity metric 的 Storm UI 中查找您的螺栓。您的瓶颈很可能具有高容量。