【问题标题】:jprofiler cannot be instrumented due to excessive method size由于方法大小过大,无法检测 jprofiler
【发布时间】:2014-01-09 12:56:29
【问题描述】:

我在 jprofiler 运行中看到以下警告

[warning]Filtered calls in <method name>
cannot be instrumented due to excessive method size.
If needed, please switch to sampling or remove appropriate filters.

jprofiler 版本是旧的 4.2。该方法不是那么大〜500行,只是填充一些地图。

我想知道错误的可能原因。

【问题讨论】:

  • 你的问题是什么?
  • 我想知道错误的可能原因。 (在我评估新版本之前..)

标签: java jprofiler


【解决方案1】:

如果方法字节码的最大大小限制将通过添加检测超过,就会发生这种情况。见

Maximum size of a method in java?

为类添加过滤器可以减少这个问题。在更新版本的 JProfiler 中,您还可以将该方法添加到忽略的方法列表中,然后根本不会对其进行检测。而且,正如消息中所说,当您使用采样而不是检测时,这不是问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-31
    • 2016-03-22
    • 2014-02-06
    • 1970-01-01
    • 2022-01-16
    • 2022-10-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多