【问题标题】:Use JProfiler8 to profile camel routes使用 JProfiler8 分析骆驼路线
【发布时间】:2013-09-08 10:17:22
【问题描述】:

我在我的项目中使用 Apache Camel。路由定义如下所示:

  class RouteBuilder() {
        public void configure() {
            // populate the message queue with some messages
            from("direct:input").
             choice().
               when(body().isEqual("A")).
                 beanRef('aProcessorBean').
               otherwise().
                 beanRef('bProcessorBean').
              end().  
            to("direct:output");
        }
    };

这是一个非常原始的示例,它仅使用来自org.apache.camel.model 包的FromDefinitionChoiceDefinitionProcessorDefinition

在现实世界中的路线可能更复杂。我想知道如何衡量在每条路线上花费的时间。基本上我认为我需要监控所有XXXDefinitionorg.apache.camel.model 包。如何设置 JProfiler 这样做?

【问题讨论】:

    标签: apache-camel jprofiler


    【解决方案1】:

    打开会话设置并转到“过滤器设置”选项卡。删除所有默认的独占过滤器,并将项目的顶级包添加为包含过滤器。还要添加org.apache.camel.model. 作为包含过滤器。

    【讨论】:

      猜你喜欢
      • 2018-09-05
      • 2011-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多