Java simon--Performance Bottleneck analysis tool

Source: Internet
Author: User

With AOP and Java instrument, Java has a lot of good performance monitoring tools that can help us analyze system bottlenecks effectively. For example, using JVISUALVM GUI to connect the JVM application can monitor the various states of the application, you can see the execution time of each function, but many times we do not have JVISUALVM GUI to help debug, this time I prefer to use Javasimon, The service layer method call time can be monitored through an AOP configuration, the JDBC call time is monitored, and the time required for the Web HTTP request can be monitored, with the web dashboard intact. Let's talk about how to use Java Simon in spring related projects.

For more details, refer to http://blog.csdn.NET/cloud_ll/article/details/43603241

Javasimon is mainly used for performance testing when viewing system bottlenecks, if you want to achieve real-time monitoring of the system, we recommend the use of Yahoo Metrics

Reference Javasimon dependencies:

[HTML]View PlainCopy
  1. <dependency>
  2. <groupId>org.javasimon</groupId>
  3. <artifactid>javasimon-spring</artifactid>
  4. <version>${project-javasimonversion}</version>
  5. </Dependency>
  6. <dependency>
  7. <groupId>org.javasimon</groupId>
  8. <artifactid>javasimon-console-embed</artifactid>
  9. <version>${project-javasimonversion}</version>
  10. </Dependency>
  11. <dependency>
  12. <groupId>org.javasimon</groupId>
  13. <artifactid>javasimon-jdbc4</artifactid>
  14. <version>${project-javasimonversion}</version>
  15. </Dependency>
  16. <dependency>
  17. <groupId>org.javasimon</groupId>
  18. <artifactid>javasimon-javaee</artifactid>
  19. <version>${project-javasimonversion}</version>
  20. </Dependency>


Data Source Monitoring:

[HTML]View PlainCopy
    1. <Bean id= "realhikaricpdatasource" class="Com.zaxxer.hikari.HikariDataSource " destroy-method="Shutdown">
    2. <constructor-arg ref="hikariconfig" />
    3. </Bean>
    4. <Bean id= "hikaricpdatasource" class="Org.javasimon.jdbcx4.WrappingSimonDataSource" >
    5. <property name= "dataSource" ref="Realhikaricpdatasource"/>
    6. </Bean>

Java simon--Performance Bottleneck analysis tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.