TopNB


Лицензия

Лицензия

Группа

Группа

io.leopard
Идентификатор

Идентификатор

topnb
Последняя версия

Последняя версия

0.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

TopNB
TopNB
Ссылка на сайт

Ссылка на сайт

https://github.com/tanhaichao/topnb

Скачать topnb

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.leopard/topnb/ -->
<dependency>
    <groupId>io.leopard</groupId>
    <artifactId>topnb</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/io.leopard/topnb/
implementation 'io.leopard:topnb:0.0.4'
// https://jarcasting.com/artifacts/io.leopard/topnb/
implementation ("io.leopard:topnb:0.0.4")
'io.leopard:topnb:jar:0.0.4'
<dependency org="io.leopard" name="topnb" rev="0.0.4">
  <artifact name="topnb" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.leopard', module='topnb', version='0.0.4')
)
libraryDependencies += "io.leopard" % "topnb" % "0.0.4"
[io.leopard/topnb "0.0.4"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
commons-logging : commons-logging jar 1.2
commons-lang : commons-lang jar 2.6
org.springframework : spring-aop jar 4.0.5.RELEASE
org.freemarker : freemarker jar 2.3.20
javax.servlet : servlet-api jar 3.0.1
org.springframework : spring-webmvc jar 4.0.5.RELEASE
org.springframework : spring-context-support jar 4.0.5.RELEASE
com.google.inject : guice jar 3.0

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

TopNB

Leopard监控系统,包含方法耗时监控、请求耗时监控、线程数量统计等功能。

方法耗时监控:可以按入口(URL)查看统计数据。

官网使用文档http://leopard.io/modules/topnb

Leopard官网的TopNB例子

http://leopard.io/topnb/index.leo

pom.xml配置

	<dependencies>
		...
		<dependency>
			<groupId>io.leopard.topnb</groupId>
			<artifactId>topnb-profiler</artifactId>
			<version>0.0.2</version>
		</dependency>
		<dependency>
		    <groupId>javax.servlet</groupId>
    		<artifactId>javax.servlet-api</artifactId>
    		<version>3.1.0</version>
    	</dependency>
		...
	</dependencies>

#启用方法耗时监控

在Spring配置加入

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
...
	<import resource="classpath:/topnb/config.xml" />
...
</beans>

#如果你的webserver不支持@WebServlet、@WebListener 请在web.xml加入

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
		 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
	...
	<absolute-ordering>
		<name>topnb_webfragment</name>
		<others />
	</absolute-ordering>
	...
</web-app>

#查看统计数据 http://localhost/topnb/index.leo

Версии библиотеки

Версия
0.0.4