【发布时间】:2012-12-16 16:43:03
【问题描述】:
在 websphere 7 中,有什么方法可以限制详细的类加载以仅记录某些包中的类。假设我只想查看从包 com.mycompany.* 加载的类?
【问题讨论】:
标签: java websphere classloader websphere-7 verbose
在 websphere 7 中,有什么方法可以限制详细的类加载以仅记录某些包中的类。假设我只想查看从包 com.mycompany.* 加载的类?
【问题讨论】:
标签: java websphere classloader websphere-7 verbose
在IBM SDK and Runtime Environment Java Technology Edition Version 6 的Class-loader runtime diagnostics 部分中指定(Java WebSphere 使用该部分)
您可以设置-Dibm.cl.verbose=<class_expression> 变量以执行您想要的操作,在您的情况下为-Dibm.cl.verbose=com.mycompany.*
在 Application servers > server1 > Process definition > Java Virtual Machine 下的 WebSphere 管理控制台中,而不是检查 Verbose class loading,只需将变量添加到 Generic JVM arguments 就可以了
【讨论】: