CN105760281A - 一种对Linux系统服务器的性能数据进行监控分析的方法 - Google Patents

一种对Linux系统服务器的性能数据进行监控分析的方法 Download PDF

Info

Publication number
CN105760281A
CN105760281A CN201610113940.0A CN201610113940A CN105760281A CN 105760281 A CN105760281 A CN 105760281A CN 201610113940 A CN201610113940 A CN 201610113940A CN 105760281 A CN105760281 A CN 105760281A
Authority
CN
China
Prior art keywords
performance data
java
linux system
log
system server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610113940.0A
Other languages
English (en)
Inventor
张晓雷
吕毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610113940.0A priority Critical patent/CN105760281A/zh
Publication of CN105760281A publication Critical patent/CN105760281A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种对Linux系统服务器的性能数据进行监控分析的方法,属于一种性能数据监控分析方法,本发明解决如何对性能数据进行梳理使得能直观的展示出服务器负荷情况的问题。技术方案为:基于vmstat命令获取性能数据;通过vmstat命令,记录服务器性能数据到历史日志中;通过java的FtpClient类connect方法,连接服务器下载数据日志文件;通过java缓冲字符流BufferedReader和BufferedWriter对日志内容进行过滤、筛选并获得关键性指标数据;把整理后的关键性指标数据通过java写入excel模板后,进行图形展示。

Description

一种对Linux系统服务器的性能数据进行监控分析的方法
技术领域
本发明涉及一种性能数据监控分析方法,具体地说是一种对Linux系统服务器的性能数据进行监控分析的方法。
背景技术
Linux系统是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。
vmstat命令报告关于内核线程、虚拟内存、磁盘、陷阱和CPU活动的统计信息。由vmstat命令生成的报告可以用于平衡系统负载活动。
Linux系统的vmstat命令能够获取某时刻相关的进程、虚拟内存、页面交换空间、磁盘读写及CPU活动等相关数据,但这些原始数据并不能直观的展示出服务器负荷情况。
如何进一步对上述数据进行梳理,使得非专业人员也能看懂服务器负荷的历史变化情况,是技术人员目前迫切需要解决的问题。
发明内容
本发明的技术任务是针对以上不足之处,提供一种对Linux系统服务器的性能数据进行监控分析的方法,来解决如何对性能数据进行梳理使得能直观的展示出服务器负荷情况的问题。
本发明解决其技术问题所采用的技术方案是:
一种对Linux系统服务器的性能数据进行监控分析的方法,包括如下步骤:
(1)、基于vmstat命令获取性能数据;
(2)、通过vmstat命令,记录服务器性能数据到历史日志中;
(3)、通过java的FtpClient类connect方法,连接服务器下载数据日志文件;
(4)、通过java缓冲字符流BufferedReader和BufferedWriter对日志内容进行过滤、筛选并获得关键性指标数据;
(5)、把整理后的关键性指标数据通过java写入excel模板后,进行图形展示。
Linux系统服务器上配置定时任务调度监控脚本。
搜集性能数据脚本内容如下:
DT=FXPG_VM_`date"+%Y%m%d%H%M"`
VMLOG=/oracle/vmstat_log/
vmstat-t60720>>$VMLOG$DT.log。
执行java程序,对性能数据进行分析展示。
本发明的一种对Linux系统服务器的性能数据进行监控分析的方法和现有技术相比,具有以下有益效果:
1、对linux服务器关键性指标进行图形化展示,即使非专业人员也能看懂服务器负荷的历史变化情况;
2、通过图形分析,找出可能存在的资源瓶颈问题并进行优化,能够很好的提高服务器的可用性和稳定性。
具体实施方式
下面结合具体实施例对本发明作进一步说明。
实施例1:
一种对Linux系统服务器的性能数据进行监控分析的方法,包括如下步骤:
(1)、基于vmstat命令获取性能数据;
(2)、通过vmstat命令,记录服务器性能数据到历史日志中;
(3)、通过java的FtpClient类connect方法,连接服务器下载数据日志文件;
(4)、通过java缓冲字符流BufferedReader和BufferedWriter对日志内容进行过滤、筛选并获得关键性指标数据;
(5)、把整理后的关键性指标数据通过java写入excel模板后,进行图形展示。
实施例2:
一种对Linux系统服务器的性能数据进行监控分析的方法,包括如下步骤:
(1)、基于vmstat命令获取性能数据;
(2)、通过vmstat命令,记录服务器性能数据到历史日志中;
(3)、通过java的FtpClient类connect方法,连接服务器下载数据日志文件;
(4)、通过java缓冲字符流BufferedReader和BufferedWriter对日志内容进行过滤、筛选并获得关键性指标数据;
(5)、把整理后的关键性指标数据通过java写入excel模板后,进行图形展示。
Linux系统服务器上配置定时任务调度监控脚本。
搜集性能数据脚本内容如下:
DT=FXPG_VM_`date"+%Y%m%d%H%M"`
VMLOG=/oracle/vmstat_log/
vmstat-t60720>>$VMLOG$DT.log。
执行java程序,对性能数据进行分析展示。
通过上面具体实施方式,所述技术领域的技术人员可容易的实现本发明。但是应当理解,本发明并不限于上述的具体实施方式。在公开的实施方式的基础上,所述技术领域的技术人员可任意组合不同的技术特征,从而实现不同的技术方案。
除说明书所述的技术特征外,均为本专业技术人员的已知技术。

Claims (4)

1.一种对Linux系统服务器的性能数据进行监控分析的方法,其特征在于包括如下步骤:
(1)、基于vmstat命令获取性能数据;
(2)、通过vmstat命令,记录服务器性能数据到历史日志中;
(3)、通过java的FtpClient类connect方法,连接服务器下载数据日志文件;
(4)、通过java缓冲字符流BufferedReader和BufferedWriter对日志内容进行过滤、筛选并获得关键性指标数据;
(5)、把整理后的关键性指标数据通过java写入excel模板后,进行图形展示。
2.根据权利要求1所述的一种对Linux系统服务器的性能数据进行监控分析的方法,其特征在于Linux系统服务器上配置定时任务调度监控脚本。
3.根据权利要求1所述的一种对Linux系统服务器的性能数据进行监控分析的方法,其特征在于搜集性能数据脚本内容如下:
DT=FXPG_VM_`date"+%Y%m%d%H%M"`
VMLOG=/oracle/vmstat_log/
vmstat-t60720>>$VMLOG$DT.log。
4.根据权利要求1所述的一种对Linux系统服务器的性能数据进行监控分析的方法,其特征在于执行java程序,对性能数据进行分析展示。
CN201610113940.0A 2016-03-01 2016-03-01 一种对Linux系统服务器的性能数据进行监控分析的方法 Pending CN105760281A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113940.0A CN105760281A (zh) 2016-03-01 2016-03-01 一种对Linux系统服务器的性能数据进行监控分析的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610113940.0A CN105760281A (zh) 2016-03-01 2016-03-01 一种对Linux系统服务器的性能数据进行监控分析的方法

Publications (1)

Publication Number Publication Date
CN105760281A true CN105760281A (zh) 2016-07-13

Family

ID=56331580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113940.0A Pending CN105760281A (zh) 2016-03-01 2016-03-01 一种对Linux系统服务器的性能数据进行监控分析的方法

Country Status (1)

Country Link
CN (1) CN105760281A (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294070A (zh) * 2016-08-10 2017-01-04 浪潮软件集团有限公司 对服务器内存cpu及硬盘使用率的监控方法
CN108763043A (zh) * 2018-05-28 2018-11-06 郑州云海信息技术有限公司 一种存储设备中压力测试数据的获取方法、装置及系统
CN109962792A (zh) * 2017-12-22 2019-07-02 南京欣网互联网络科技有限公司 一种基于大数据的全链路监控系统
CN109960621A (zh) * 2017-12-22 2019-07-02 南京欣网互联网络科技有限公司 一种基于大数据可视化监控平台的数据抽取方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707632A (zh) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 一种动态监控服务器集群性能并实时报警的方法
CN104461563A (zh) * 2014-12-24 2015-03-25 浪潮电子信息产业股份有限公司 一种在linux下远程定时检测FTP服务器新增文件的方法
CN105183604A (zh) * 2015-10-29 2015-12-23 浪潮(北京)电子信息产业有限公司 一种对服务器性能进行测试的方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707632A (zh) * 2009-10-28 2010-05-12 浪潮电子信息产业股份有限公司 一种动态监控服务器集群性能并实时报警的方法
CN104461563A (zh) * 2014-12-24 2015-03-25 浪潮电子信息产业股份有限公司 一种在linux下远程定时检测FTP服务器新增文件的方法
CN105183604A (zh) * 2015-10-29 2015-12-23 浪潮(北京)电子信息产业有限公司 一种对服务器性能进行测试的方法及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JAMIESUN: "《百度文库》", 22 August 2012 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294070A (zh) * 2016-08-10 2017-01-04 浪潮软件集团有限公司 对服务器内存cpu及硬盘使用率的监控方法
CN109962792A (zh) * 2017-12-22 2019-07-02 南京欣网互联网络科技有限公司 一种基于大数据的全链路监控系统
CN109960621A (zh) * 2017-12-22 2019-07-02 南京欣网互联网络科技有限公司 一种基于大数据可视化监控平台的数据抽取方法
CN108763043A (zh) * 2018-05-28 2018-11-06 郑州云海信息技术有限公司 一种存储设备中压力测试数据的获取方法、装置及系统

Similar Documents

Publication Publication Date Title
US11782989B1 (en) Correlating data based on user-specified search criteria
US10877986B2 (en) Obtaining performance data via an application programming interface (API) for correlation with log data
US10019496B2 (en) Processing of performance data and log data from an information technology environment by using diverse data stores
US10318541B2 (en) Correlating log data with performance measurements having a specified relationship to a threshold value
US8584098B2 (en) Component statistics for application profiling
US6996807B1 (en) Consolidation and reduction of usage data
US10997191B2 (en) Query-triggered processing of performance data and log data from an information technology environment
US8850403B2 (en) Profiling data snapshots for software profilers
US20170169134A1 (en) Gui-triggered processing of performance data and log data from an information technology environment
US10346357B2 (en) Processing of performance data and structure data from an information technology environment
JP4436036B2 (ja) 情報処理装置、トレース処理方法、プログラム及び記録媒体
US7747986B2 (en) Generating static performance modeling factors in a deployed system
US7243046B1 (en) System and method for preparing trace data for analysis
US20070157177A1 (en) Methods and apparatus to analyze processor systems
US9442817B2 (en) Diagnosis of application server performance problems via thread level pattern analysis
CN105760281A (zh) 一种对Linux系统服务器的性能数据进行监控分析的方法
CN108268546B (zh) 一种优化数据库的方法及装置
JPH08286958A (ja) ジョブスケジューリング解析方法
KR101255060B1 (ko) 맵리듀스 기반 분산 병렬 개체 추출 시스템 및 방법
JP2016100006A (ja) パフォーマンス試験のためのベンチマーク・アプリケーションを生成する方法および装置
US20070050683A1 (en) Virtual flight recorder hosted by system tracing facility
Kumar et al. A comprehensive review of straggler handling algorithms for mapreduce framework
Ren et al. Otus: resource attribution in data-intensive clusters
KR101830936B1 (ko) 데이터베이스와 애플리케이션을 위한 웹기반 성능개선 시스템
CN104461832A (zh) 一种监控应用服务器资源的方法及装置

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160713

WD01 Invention patent application deemed withdrawn after publication