Tag: perf4j

如何使用AspectJ和Tomcat配置加载时编织?

我试着用下一种方式配置加载时织入(用于使用Perf4J进行分析): 1)我将aop.xml添加到META-INF文件夹。 部署时,META-INF放置在工件根目录(即MyAppDeployed/META-INF )中。 2)我将aspectjrt-1.6.1.jar , aspectjweaver-1.6.1.jar , commons-jexl-1.1.jar , commons-logging.jar放到Tomcat/lib文件夹中(起初我尝试了MyAppDeployed/WEB-INF/libs但它也没有用)。 3)我在启动Tomcat时向VM选项添加了-javaagent:C:\apache-tomcat-6.0.33\lib\aspectjweaver-1.6.1.jar 。 4)我的aop.xml : 我没有看到任何迹象表明装载时编织发生。 既没有错误报告也没有必要的结果。 我唯一的错误信息是: Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file: C:\apache-tomcat-6.0.33\lib\wrong-jar.jar 如果我在指定javaagent参数时在aspectjweaver-1.6.1.jar名称中输入错误。 如果写得正确 – 不会打印错误信息。 任何想法,我做错了什么? PS我使用Java 5,我尝试使用1.5.4版本的aspectj完全相同的结果。

logback.xml的perf4j设置

大家好,我想知道在使用perf4j时logback.xml的确切配置设置。 我在logback.xml中创建此配置 firstBlock,secondBlock <!– The NotificationThresholds param configures the sending of JMX notifications when statistic values exceed specified thresholds. This config states that the firstBlock max value should be between 0 and 800ms, and the secondBlock max value should be less than 1500 ms. You can also set thresholds on the Min, Mean, StdDev, Count […]