Coder Social home page Coder Social logo

wjm0729 / app_monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from langke93/app_monitor

0.0 1.0 0.0 1019 KB

app_monitor是基于jetty嵌入式容器的java性能分析工具,内嵌H2 database,以图表形式直观展现应用当前性能数据

Shell 2.08% Java 76.59% CSS 8.03% HTML 0.52% JavaScript 12.78%

app_monitor's Introduction

app_monitor

app_monitor是基于jetty嵌入式容器的java性能分析工具,内嵌H2 database,以图表形式直观展现当前应用的性能数据 应用性能分析图表(https://raw.github.com/langke93/app_monitor/master/doc/img/monitor__report.png)

部署目录结构: \bin \lib \src \conf 启动服务端运行bin/restart_server.sh

客户端执行 sh performance_monitor.sh > performance_monitor.sh.log 2>&1 & 需要配置host:app.monitor.server指向服务端IP

#验证 hello servlet http://localhost:9009/servlet/test?helloworld=this-is-jetty-embed-http

#验证 jsp http://localhost:9009/index.jsp

#查看报表 http://localhost:9009/monitor/_report

#2013.1.20 整合UI、增加菜单管理

#1.javamelody集成Application 启动main函数加: new JavaMelodyMonitorServer(o.serverName(),o.getServerAddress().getHost(),o.getServerAddress().getPort());

spring 加: aop:aspectj-autoproxy/

<bean id="springDataSourceBeanPostProcessor" class="net.bull.javamelody.SpringDataSourceBeanPostProcessor">
</bean>

<bean id="wrappedDataSource" class="net.bull.javamelody.SpringDataSourceFactoryBean">
	<property name="targetName" value="dataSource" />
</bean>
<!-- javamelody  -->

需要的jar包 javamelody.jar jetty-6.1.26.jar jetty-util-6.1.26.jar jrobin-1.5.9.1.jar org.springframework.web-3.1.0.RELEASE.jar servlet-api-3.0.jar cglib-nodep-2.2.2.jar

#2.web集成: 在被监控项目web.xml中加入如下代码 monitoring net.bull.javamelody.MonitoringFilter monitoring /* net.bull.javamelody.SessionListener 将javamelody.jar,jrobin-1.5.9.1.jar复制到被监控项目的lib目录

通过http://localhost:8080/monitoring访问

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.