`

Profiling Java Performance With Perf4j

阅读更多

Recently, a new java profiling tool (http://perf4j.codehaus.org/ ) gets more and more attentions. It is pretty interesting and lightweight tool and may give us more thoughts on our profiling log framework.

  • The goal of the Perf4j project
    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()
  • Feature List:
    • A simple stop watch mechanism for succinct timing statements.
    • A command line tool for parsing log files that generates aggregated statistics and performance graphs.
    • Easy integration with the most common logging frameworks and facades: log4j, java.util.logging, Apache Commons Logging and SLF4J.
    • Custom log4j appenders to generate statistics and graphs in a running application (custom java.util.logging handlers coming soon).
    • The ability to expose performance statistics as JMX attributes, and to send notifications when statistics exceed specified thresholds.
    • A servlet for exposing performance graphs in a web application.
    • A @Profiled annotation and a set of custom aspects that allow unobstrusive timing statements when coupled with an AOP framework such as AspectJ or Spring AOP.
    • An extensible architecture.
  • simple demo
    http://perf4j.codehaus.org/images/meanChart.png
    http://perf4j.codehaus.org/images/tpsChart.png
分享到:
评论

相关推荐

    Profiling and Testing with Test and Performance Tools Platform.pdf

    《Profiling and Testing with Test and Performance Tools Platform》是一份由IBM Canada的Eugene Chan和Jonathan West共同撰写的文档,主要介绍了TPTP(Test and Performance Tools Platform)平台的配置步骤及其...

    Java.EE.7.Performance.Tuning.and.Optimization.178217642X

    Boost the efficiency of your enterprise applications by performance tuning and optimization with Java Overview Learn to plan a performance investigation in enterprise applications Build a performance...

    WPF Performance Profiling Tools

    WPF 提供了一套性能分析工具,允许您分析应用程序的运行时行为并确定可以应用的性能优化类型。下表列出了 Windows SDK 工具 WPFPerf 中包含的五个性能分析工具: 本主题包含以下部分。 使用性能分析工具 ...

    Linux perf user guide

    perf 的核心机理是基于硬件性能计数器(Hardware Performance Counters,HPC),它可以对 CPU 的性能进行监控和分析。perf 还可以从其他来源收集信息,如高精度定时器(hrtimers)、静态跟踪点(static tracepoints...

    Deep Learning: Practical Neural Networks with Java 完整高清英文azw3版

    Deep Learning: Practical Neural Networks with Java by Yusuke Sugomori English | 8 Jun. 2017 | ASIN: B071GC77N9 | 1057 Pages | AZW3 | 20.28 MB Build and run intelligent applications by leveraging key ...

    prentice.java.performance.0137142528

    Chapter 4 JVM Performance Monitoring Chapter 5 Java Application Profiling Chapter 6 Java Application Profiling Tips and Tricks Chapter 7 Tuning the JVM, Step by Step Chapter 8 Benchmarking Java ...

    PostgreSQL 源码性能诊断(perf profiling)指南

    4. 执行 `make world -j64` 进行编译。 5. 执行 `make install-world` 安装编译好的程序。 在性能诊断过程中,确定优化目标是关键的第一步。例如,可以针对数据库的某个特定操作,如insert-only操作,来进行性能...

    precise power delay profiling with commodity PPT

    本文介绍了一种利用普通Wi-Fi设备进行精确的功率延迟分析的技术,具体来说,是通过商品化的Wi-Fi设备,即我们日常使用的无线网络设备,来进行精确的功率延迟剖面(Power Delay Profile, PDP)分析。...

    Profiling all paths

    However, existing path profiling techniques often struggle with handling loops effectively, limiting their application to acyclic paths or a small number of loop iterations. A recent study published...

    Linux Profiling at Netflix.pdf

    在这个背景下,"Linux Profiling at Netflix"探讨了如何利用perf_events(也称为"perf")进行高效的性能分析。 1. 为什么需要Linux性能分析? Linux性能分析的主要目标是快速全面地理解CPU使用情况。Netflix使用...

    JavaPerformanceTuning-Oreilly.pdf

    《Java Performance Tuning》是一本由O'Reilly出版社出版的专业书籍,主要聚焦于Java应用程序的性能优化技术。本书详细介绍了如何诊断和解决Java应用程序中的性能瓶颈,并提供了一系列实用的工具和技术,帮助开发者...

    Systems Performance:Enterprise and the Cloud

    Programming language issues related to performance — including application profiling for C, C++, Java, and node.js Benchmarking strategies and pitfalls, including custom microbenchmarking

    Java.EE.Development.with.Eclipse.2nd.Edition.178528534

    Develop, debug, test, and troubleshoot Java EE 7 applications rapidly with Eclipse About This Book Go beyond simply learning Java EE APIs and explore the complete workflow of developing enterprise ...

    Clojure High Performance Programming(PACKT,2ed,2015)

    Identify performance issues in Clojure programs using different profiling tools Master techniques to achieve numerical performance in Clojure Use Criterium library to measure latency of Clojure ...

    通过日志监控并收集Java应用程序性能数据

    针对JVM的CPU使用及内存占用的性能分析,已经有各种剖析...本文将介绍如何集成Perf4j到Java应用程序中并生成性能数据。系统日志是应用程序问题诊断及运行维护的重要工具。Logback、Log4j是常用于Java平台的日志记录API.

    Data Profiling and Pipeline Processing with Spark

    本文将重点介绍如何利用Spark进行数据剖析(Data Profiling)和管道处理(Pipeline Processing),并通过一个具体案例来探讨这一过程。 #### 数据剖析概述 数据剖析是指通过一系列统计分析方法来了解数据集的基本...

Global site tag (gtag.js) - Google Analytics