The invention discloses an office management system performance monitoring platform, including log collection subsystem, log analysis subsystem and warning and intervention system; log collection subsystem is divided into memory log collection module, data acquisition module and SQL execution thread log log collection module; log analysis performance bottleneck analysis thread of execution analysis module and memory analysis the modules, including the subsystem; warning and intervention system, including warning module and compulsory intervention module. The invention can timely analysis of the generation system is running, do not need to be deployed, without special dependence on the introduction of third party, only need to use the system is running on the JDK tools can be achieved at the same time, through the development of a log analysis tool to log intelligent analysis to assist the investigation, reason downtime and performance problems, the completion of data acquisition and monitoring, it has little effect on the system performance, which affects the production system of the tool itself is not monitored.
【技术实现步骤摘要】
本专利技术涉及一种基于java代理的一种sql语句的监控方法,以及继续线程日志的性能、宕机分析方法,尤其是指一种办公管理系统性能监控平台。
技术介绍
由于现有的公司的办公管理系统越来越复杂,用户的并发量也越来越大,使系统不稳定,容易宕机。因此系统的稳定性变得越来越重要,需要有一套好的机制来监控系统的运行状况,同时也需要有一套分析方法,能够事后快速定位宕机问题的原因,及时的修补标准产品的重大宕机bug,以保证系统的稳定性。当前已有的用于解决该稳定的工具为:第三方的jprofiler、btrace,这些工具比较重量级,部署复杂,甚至需要大量开发。现有技术中,由于没有很好的图形化界面,主要是通过命令行以及一些日志分析工具进行问题分析,主要通过用户技术开发人员分析系统宕机和性能问题。
技术实现思路
为了解决上述问题,本专利技术提供了一种办公管理系统性能监控平台,其目的在于解决现有技术不能很好地对办公系统的稳定性进行监控、分析的问题。一种办公管理系统性能监控平台,包括日志采集子系统、日志分析子系统和警告、干预子系统;所述日志采集子系统分为内存日志采集模块、线程日志采集模块和SQL执行日志采集模块;其中,内存日志采集模块,使用JVM Management API采集当前系统的JVM的内存信息,采集的信息包括:采集时间、临时代、年轻代、年老代、持久代、各代GC的次数和时间。SQL执行日志采集模块,采用java代理,动态修改字节码。考虑到要监控系统运行的sql语句,必须修改系统的数据库包装类,而不同的OA软件版本该包装类可能不一样,如果直接修改,就没办法通过直接覆盖的方式部 ...
【技术保护点】
一种办公管理系统性能监控平台,其特征在于:包括日志采集子系统、日志分析子系统和警告、干预子系统;所述日志采集子系统分为内存日志采集模块、线程日志采集模块和SQL执行日志采集模块;其中,内存日志采集模块,使用JVM Management API采集当前系统的JVM的内存信息,采集的信息包括:采集时间、临时代、年轻代、年老代、持久代、各代GC的次数和时间;线程日志采集模块,通过ManagementFactory.getThreadMXBean().getAllThreadIds() 可得到所有线程的信息;SQL执行日志采集模块,采用java代理,动态修改字节码,在保障类的excelSql的方法前后加上统计代码,统计SQL语句执行的时间,以及返回的数据量,通过两个过滤条件来过滤日志:时间超过10秒的sql和返回数据量操作10000条的sql,其中10和10000都是可配置的,打印日志的同时打印出当时的线程堆栈,判断sql语句具体在代码的位置;所述日志分析子系统包括性能瓶颈分析模块、线程执行分析模块和内存分析模块;其中,性能瓶颈分析模块,基于Jprofiler工具通过分析一段时间的线程日志,判 ...
【技术特征摘要】
1.一种办公管理系统性能监控平台,其特征在于:包括日志采集子系统、日志分析子系统和警告、干预子系统;所述日志采集子系统分为内存日志采集模块、线程日志采集模块和SQL执行日志采集模块;其中,内存日志采集模块,使用JVM Management API采集当前系统的JVM的内存信息,采集的信息包括:采集时间、临时代、年轻代、年老代、持久代、各代GC的次数和时间;线程日志采集模块,通过ManagementFactory.getThreadMXBean().getAllThreadIds() 可得到所有线程的信息;SQL执行日志采集模块,采用java代理,动态修改字节码,在保障类的excelSql的方法前后加上统计代码,统计SQL语句执行的时间,以及返回的数据量,通过两个过滤条件来过滤日志:时间超过10秒的sql和返回数据量操作10000条的sql,其中10和10000都是可配置的,打印日志的同时打印...
【专利技术属性】
技术研发人员:韦利东,
申请(专利权)人:上海泛微网络科技股份有限公司,
类型:发明
国别省市:上海;31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。