Code Monkey home page Code Monkey logo

Comments (8)

LinShunKang avatar LinShunKang commented on May 27, 2024

你好,你看看 catalina.out

from myperf4j.

sheldon-xie avatar sheldon-xie commented on May 27, 2024

刚又部署在centos系统上了,也是没有日志;但是,在catalina.log里有;

from myperf4j.

LinShunKang avatar LinShunKang commented on May 27, 2024

嗯,因为你把 metrics.export 配置为了 log.stdout,这个配置值的意思是把指标输出到标准输出中,在 tomcat 里就是 catalina.out 文件;如果你想要输出到指定的文件中,应该配置为 log.standard

from myperf4j.

JiaRG avatar JiaRG commented on May 27, 2024

@LinShunKang filter.packages.include = com.*;org.apache; 监控 tomcat 本身的时候会报错 ClassNotFoundException

我调试了下发现 org/apache/ 包下的类,在构造 ClassWriter 的时候用 ClassWriter.COMPUTE_MAXS 就好使了

from myperf4j.

JiaRG avatar JiaRG commented on May 27, 2024

public static boolean isNotNeedInject(String innerClassName) {
if (innerClassName == null) {
return false;
}
if (innerClassName.indexOf('$') >= 0) {
return true;
}
return isMatch(innerClassName, excludePackagePrefix, excludePackageExp);
}

还有这块为啥要把内部类给过滤掉呢?

from myperf4j.

LinShunKang avatar LinShunKang commented on May 27, 2024

这个问题和 Tomcat 内置的类加载器有关,你使用的 Tomcat 是什么版本?

from myperf4j.

LinShunKang avatar LinShunKang commented on May 27, 2024

public static boolean isNotNeedInject(String innerClassName) {
if (innerClassName == null) {
return false;
}
if (innerClassName.indexOf('$') >= 0) {
return true;
}
return isMatch(innerClassName, excludePackagePrefix, excludePackageExp);
}

还有这块为啥要把内部类给过滤掉呢?

一般场景下没有对内部类有监控的需求;还有就是不对匿名内部类做监控

from myperf4j.

JiaRG avatar JiaRG commented on May 27, 2024

这个问题和 Tomcat 内置的类加载器有关,你使用的 Tomcat 是什么版本?

8.5.87

from myperf4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.