Questions tagged [perf4j]

Perf4J is a set of utilities for calculating and displaying perfomance statistics for Java code. For developers who are familiar with logging frameworks such as log4j or java.util.logging, an analogy helps to describe Perf4J: Perf4J is to System.currentTimeMillis() as log4j is to System.out.println()

Relevant links:

49 questions
22
votes
3 answers

Have you used Perf4J to collect and analyze performance metrics in Java app?

Did you use Perf4J in your Java application to collect and analyze performance stats? What was the typical pattern (using log files, utilities, UI, JMX, etc.)? Did you use annotations and AOP-based features? Did you use any JMX integration? How…
topchef
  • 19,091
  • 9
  • 63
  • 102
9
votes
2 answers

How to configure load-time weaving with AspectJ and Tomcat?

I tried to configure load-time weaving (for doing profiling with Perf4J) in the next way: 1) I added aop.xml to META-INF folder. When deployed, META-INF is placed in the artifact root directory (i.e. MyAppDeployed/META-INF). 2) I put…
Roman
  • 64,384
  • 92
  • 238
  • 332
7
votes
6 answers

perf4j @Profiled annotation not working

I have gone thru the below link from perf4J site and have done same to same: http://perf4j.codehaus.org/devguide.html#Using_Spring_AOP_to_Integrate_Timing_Aspects Added the following in my spring.xml.
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
4
votes
1 answer

How does AspectJ's load-time-weaver find META-INF\aop.xml?

I am attempting to use load-time-weaving to tie perf4j into a program, but it does not seem to be finding aop.xml in my classpath. Either that or it is not weaving the aspect because it is not finding it. I have enabled verbose output from aop.xml…
user1228787
  • 41
  • 1
  • 3
4
votes
1 answer

Does Spring provide a class to measure performance of iterative code?

I need to measure performances on a specific part of my application. To calculate these measures, I use the Spring StopWatch class. In a method, there is a loop where I need to measure the execution of each iteration. What I would like is to have,…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
3
votes
1 answer

How to use Perf4J with Profiled annotation in Gradle project?

I have a Java Gradle project for which I am trying to use Perf4J. I found some examples of Perf4J only Maven. So, I modified one and ran it. Here is the Java class and Maven build file that works. package com.mycompany.testapplication; import…
Ankit
  • 6,772
  • 11
  • 48
  • 84
3
votes
0 answers

how to specify path to aop.xml using aspectj maven plugin

Hi My problem is pretty much same as AspectJ Plugin Aspect Config with Maven using external Jar for Aspect Here is my pom.xml org.apache.maven.plugins
hrishikeshp19
  • 8,838
  • 26
  • 78
  • 141
3
votes
1 answer

perf4j settings for logback.xml

hi folks I want to know exact config settings of logback.xml when it was using with perf4j. i create this configuration in logback.xml