CN104461832B - A kind of method and device for monitoring application server resource - Google Patents

A kind of method and device for monitoring application server resource Download PDF

Info

Publication number
CN104461832B
CN104461832B CN201510007538.XA CN201510007538A CN104461832B CN 104461832 B CN104461832 B CN 104461832B CN 201510007538 A CN201510007538 A CN 201510007538A CN 104461832 B CN104461832 B CN 104461832B
Authority
CN
China
Prior art keywords
resource
application server
data
performance
host
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.)
Active
Application number
CN201510007538.XA
Other languages
Chinese (zh)
Other versions
CN104461832A (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 Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510007538.XA priority Critical patent/CN104461832B/en
Publication of CN104461832A publication Critical patent/CN104461832A/en
Application granted granted Critical
Publication of CN104461832B publication Critical patent/CN104461832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a kind of method and device for monitoring application server resource, wherein method includes:The performance of application server is tested to the concurrent operations of operation system according to practical business situation analog subscriber;During application server carries out performance test, the first resource for collecting Java Virtual Machine operation by JVM monitoring modules uses data, and the Secondary resource for collecting application server host by host resource monitoring module uses data;Macro or mass analysis is carried out using data using data and Secondary resource to first resource, the data parameters of influence application server performance are drawn.The present invention improves the time of application server Performance tuning and accuracy reminder application server attendant is adjusted to relevant system parameters, or is adjusted by automated manner, so as to reach the purpose of optimization application server performance.

Description

A kind of method and device for monitoring application server resource
Technical field
The present invention relates to the side of the application server technology in middleware Technology, more particularly to monitoring application server resource Method and device.
Background technology
Middleware (Middleware) is that it shields bottom operation in the software between operating system and application program The complexity of system, makes application developer in face of a simple, unified development environment, to reduce the complexity of programming Property, it is primarily focused in business, it is not necessary to spend all brains for transplanting of the program on different system software, and reduce software Overlapping development so that simplify software development process, shorten the construction cycle, while decrease system maintenance, operation and manage The workload of reason, while also reducing the input of the overall expenses of computer application.
Middleware is listed as three big basic softwares with operating system, database.Middleware will be not only realized between them Interconnection, also to realize interoperability between they and application.The core of middleware Technology is application server (Application Server).With developing rapidly for information technology and Internet technology, the complicated journey of enterprise operation system Degree and portfolio are sharply increased.In order to simplify the development amount of application software, application server is widely used.Wherein, Java platform enterprise version (JEE, Java Platform Enterprise Edition) application server, be enterprise-level it is large-scale, Exploitation, deployment, operation and the management of huge application software provide strong instrument and platform.
At present, the performance issue of JEE application servers annoyings developer and the JEE application services of service application always The attendant of device.JEE application servers are general itself all to carry Java Virtual Machine (JVM, Java Virtual Machine) Monitoring module, some third party's developing instruments also accordingly support the monitoring to JEE application servers, such as Java development kits Two instruments Jconsole and Jvisualvm that (JDK, Java Developer's Kit) is carried.But, due to JEE applications The JVM of server is operated on operating system platform, therefore these above-mentioned instruments can only be realized and system CPU, internal memory and JVM are transported The monitoring of capable class, thread and Java databases connection (JDBC, Java DataBase Connection), and can not realize pair The monitoring of system disk and Internet resources.Monitoring resource instrument Spotlight be able to be realized to the real-time of server system resources Monitor, but its host resource that can not be monitored to JVM is monitored.
Accordingly, it is desirable to provide a kind of method for monitoring application server resource, can by JVM, Java monitoring modules with The function of both Spotlight monitoring tools is organically combined, to improve the machine being monitored to the resource of JEE application servers Energy and efficiency, so as to reach the purpose of optimization JEE application server performances.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of method and device for monitoring application server resource, can Improve the function and efficiency being monitored to the resource of JEE application servers.
In order to solve the above-mentioned technical problem, the invention provides a kind of device for monitoring application server resource, including according to Performance test module, JVM monitoring modules and the performance evaluation module of secondary connection;In addition, also include respectively with performance test mould Block and the host resource monitoring module of performance evaluation module connection, wherein:
Performance test module, for being answered according to practical business situation analog subscriber to test the concurrent operations of operation system With the performance of server;
JVM monitoring modules, the when Java Virtual Machine is run during the performance test for collecting application server One resource uses data, and exports and give performance evaluation module;
Host resource monitoring module, application server host during the performance test for collecting application server Secondary resource uses data, and exports and give performance evaluation module;
Performance evaluation module, collect point using data and Secondary resource for the first resource to input using data Analysis, draws the data parameters of influence application server performance.
Further, performance evaluation module provides resource according to the data parameters of the influence application server performance drawn and made Statistics icon shows.
Further, performance evaluation module provides performance according to the data parameters of the influence application server performance drawn and adjusted Excellent suggestion.
Further,
First resource during the Java Virtual Machine operation that JVM monitoring modules are collected includes CPU, internal memory, thread using data Pond, the one or more of Java database connection pools;
The Secondary resource for the application server host that host resource monitoring module is collected includes disk, read-write I/ using data O and the network bandwidth one or more.
Further,
Performance evaluation module is calculated according to the resource distributed for the Java Virtual Machine with first resource using data, The utilization rate of first resource when drawing JVM operations;Resource and Secondary resource according to being distributed for application server host use number According to being calculated, the Secondary resource utilization rate of application server host is drawn;Then the utilization rate of comprehensive analysis first resource and The utilization rate of Secondary resource draws the data parameters of influence application server performance.
In order to solve the above-mentioned technical problem, the invention provides a kind of method for monitoring application server resource, including:
The performance of application server is tested to the concurrent operations of operation system according to practical business situation analog subscriber;
During application server carries out performance test, Java Virtual Machine operation is collected by JVM monitoring modules First resource uses data, and the Secondary resource for collecting application server host by host resource monitoring module uses data;
Macro or mass analysis is carried out using data using data and Secondary resource to first resource, influence application server is drawn The data parameters of energy.
Further, this method also includes:
The statistics icon shows that resource is used are provided according to the data parameters of the influence application server performance drawn.
Further, this method also includes:
The Performance tuning suggestion of application server is provided according to the data parameters of the influence application server performance drawn.
Further, the first resource for the Java Virtual Machine operation collected by JVM monitoring modules using data include CPU, Internal memory, thread pool, the one or more of Java database connection pools;Application server host is collected by host resource monitoring module Secondary resource using data include disk, read-write I/O and the network bandwidth one or more.
Further, Macro or mass analysis is carried out using data using data and Secondary resource to first resource, show that influence should With the data parameters of server performance, specifically include:
Resource according to being distributed for the Java Virtual Machine is calculated with first resource using data, show that JVM is run When first resource utilization rate;Resource and Secondary resource according to being distributed for application server host are calculated using data, Draw the Secondary resource utilization rate of application server host;
The utilization rate of comprehensive analysis first resource and the utilization rate of Secondary resource draw the number of influence application server performance According to parameter.
The present invention is realized by JVM monitoring modules and host resource monitoring module runs resource to JEE application servers Overall monitor, the problem of influence JEE application server performances are drawn by the analyzing and processing of performance evaluation module parameter, whole prison Control process reduces the artificial time for collecting supplemental characteristic analysis, improves to time of JEE application server performance tunings simultaneously Remind JEE that application server attendant is adjusted to relevant system parameters exactly, or adjusted by automated manner It is whole, so as to reach the purpose of optimization JEE application server performances.
Brief description of the drawings
Fig. 1 is the building-block of logic of the device embodiment of the monitoring application server resource of the present invention;
Fig. 2 is the flow chart of the embodiment of the method for the monitoring application server resource of the present invention.
Embodiment
Technical scheme is set forth in preferred embodiment below in conjunction with the accompanying drawings.It should be understood that with Under the embodiment enumerated be merely to illustrate and explain the present invention, without constituting the limitation to technical solution of the present invention.
Fig. 1 illustrates the logical construction of the device embodiment of the monitoring application server resource of the present invention, including connects successively Performance test module, JVM monitoring modules and the performance evaluation module connect, in addition to respectively with performance test module and performance point The host resource monitoring module of module connection is analysed, wherein:
Performance test module, for being answered according to practical business situation analog subscriber to test the concurrent operations of operation system With the performance (also referred to as pressure test) of server;
JVM monitoring modules, the when Java Virtual Machine is run during the performance test for collecting application server One resource uses data, and exports and give performance evaluation module;
Host resource monitoring module, application server host during the performance test for collecting application server Secondary resource uses data, and exports and give performance evaluation module;
Performance evaluation module, collect point using data and Secondary resource for the first resource to input using data Analysis, draws the data parameters of influence application server performance;Data parameters according to drawing provide Performance tuning suggestion and/or to Go out the statistics icon shows that resource is used.
In said apparatus embodiment,
First resource during the Java Virtual Machine operation that JVM monitoring modules are collected includes CPU, internal memory, thread using data Pond, the one or more of Java database connection pools;
The Secondary resource for the application server host that host resource monitoring module is collected includes disk, read-write I/ using data O and the network bandwidth one or more.
In said apparatus embodiment,
Performance evaluation module is calculated according to the resource distributed for Java Virtual Machine and first resource using data, is drawn The utilization rate of first resource when JVM is run;According to the host assignment for JEE application servers (hereinafter referred to as application server) Resource calculated with Secondary resource using data, draw the Secondary resource utilization rate of main frame;Then comprehensive analysis first is provided The utilization rate in source and the utilization rate of Secondary resource draw the data parameters of influence application server performance.
The runnability of JEE application servers depends on the whether reasonable of JVM resource allocations, meanwhile, the money that JVM can be distributed Source again relies on host resource.Therefore JEE application services can just be optimized well by having grasped JVM and the service condition of host resource Device, below exemplified by illustrate the implementation process of this method:
Assuming that case environment JEE application servers are operated on the main frame of 32G internal memories, wherein network environment is 100,000,000 nets, Meanwhile, distribute to the interior of JVM operations and save as 2G, other resource informations are skipped over.
First, pressure test is carried out to the JEE application servers for needing tuning by performance test module;Mould is monitored by JVM Block obtain that first resource data Java Virtual Machine uses in save as 1.9G, Secondary resource number is obtained by host resource monitoring module According to the main frame of JEE application servers use in save as 4G, the network bandwidth take 98M.
Then show that JVM memory usages are 95% by performance evaluation module analysis first resource, analysis Secondary resource is obtained It is 12.5% to go out host memory utilization rate, and network bandwidth utilization rate is 98%.If pre-setting each resource utilization early warning (early warning value is the limitation of resource utilization percentage value to value, if the early warning value is exceeded, and there is influence JEE application server performances Risk), wherein internal memory early warning value be 90%, network bandwidth early warning value be 95%;Show that JVM internal memories are used according to data above Rate exceedes internal memory early warning value (95%>90%), network bandwidth utilization rate exceedes network bandwidth early warning value (98%>95%), thus Obtain influenceing two specific data parameters of performance:JVM low memories and the network bandwidth are limited.
There is the risk of internal memory spilling for above-mentioned JVM low memories, then need to distribute to the more internal memories of JVM, but close Key is to need to distribute to the how many internal memories of JVMWherein JVM internal memories, which are divided into, distributes to the heap memory that the application program of operation is used (Heap Memory) and run JVM itself non-heap memory (Non-heap Memory), for the two again this how to enter respectively Row distributionHere, performance evaluation module needs to integrate the memory value and internal memory service condition of JVM memory value and main frame, one Aspect, JVM low memories, JVM memory usages 95%, which exceed early warning value, to be needed to increase JVM internal memories;On the other hand, also need to determine Whether main frame has memory source to distribute to JVM, and host memory utilization rate is 12.5%, illustrates that host memory is sufficient, thus The more internal memories of JVM can be distributed to;On the other hand, JVM can normal work, can thereby determine that non-heap memory is temporarily enough, then The value of heap memory can be increased, to reach the purpose of optimization JEE application servers, it follows that first suggestion " JVM of tuning Memory usage reaches 95%, please increase JVM heap memory value ".
There is the risk that network congestion causes application server performance to decline for the network bandwidth is limited, due to the network bandwidth It is the resource of whole main frame, it is impossible to it is determined that should specifically distribute to the much bandwidth of application server.For above-mentioned case environment, obtain Network bandwidth utilization rate 98%, has resulted in serious network blockage, if at this moment knowing, the current network bandwidth of main frame is 100,000,000 nets, Can be by network upgrade gigabit, so as to draw the Article 2 suggestion " network bandwidth is limited, and please change kilomega network " of tuning;If knowing master The current network bandwidth of machine has been kilomega network, then can show that corresponding tuning suggestion " solves network by compressing file means Block ".
Resource is obtained according to data resources such as resource utilizations and uses statistics icon, normal resource such as thread, JDBC, disk I/O etc. shows that problem resource internal memory, network bandwidth etc. are shown with red chart with green chart, and provides building for above-mentioned tuning View.
The present invention is directed to said system embodiment, and the method for correspondingly additionally providing monitoring application server resource is implemented Example, its flow is as shown in Fig. 2 comprise the following steps:
110:The property of application server is tested to the concurrent operations of operation system according to practical business situation analog subscriber Energy;
120:During JVM monitoring modules and host resource monitoring module collect the performance test of application server respectively The first resource of JVM operations uses data using the Secondary resource of data and application server host;
First resource during the Java Virtual Machine operation that JVM monitoring modules are collected includes CPU, internal memory, thread using data Pond, the one or more of Java database connection pools;
The Secondary resource for the application server host that host resource monitoring module is collected includes disk, read-write I/ using data O and the network bandwidth one or more.
130:Macro or mass analysis is carried out using data using data and Secondary resource to first resource, influence application service is drawn The data parameters of device performance.
Above method embodiment also includes:
Data parameters according to influence application server performance is drawn provide Performance tuning suggestion and/or provide resource and use Statistics icon shows.
In this step, calculated, drawn using data according to the resource and first resource distributed for Java Virtual Machine The utilization rate of first resource when JVM is run;Data are used according to the resource of the host assignment for application server and Secondary resource Calculated, draw the Secondary resource utilization rate of main frame;Then the utilization rate of comprehensive analysis first resource and Secondary resource make The data parameters of influence application server performance are drawn with rate.
The present invention realizes that application server runs the comprehensive of resource by JVM monitoring modules and host resource monitoring module Monitoring, the problem of drawing influence application server performance by the analyzing and processing of performance evaluation module parameter, entirely monitors process The artificial time for collecting supplemental characteristic analysis is reduced, time and the accuracy of application server Performance tuning is improved.

Claims (8)

1. it is a kind of monitor application server resource device, including be sequentially connected performance test module, JVM monitoring modules and Performance evaluation module;Characterized in that, also including the host resource being connected respectively with performance test module and performance evaluation module Monitoring module, wherein:
Performance test module, for being tested the concurrent operations of operation system using clothes according to practical business situation analog subscriber The performance of business device;
JVM monitoring modules, the first money when Java Virtual Machine is run during the performance test for collecting application server Source uses data, and exports and give performance evaluation module;
Host resource monitoring module, the second of application server host during the performance test for collecting application server Resource uses data, and exports and give performance evaluation module;
Performance evaluation module, Macro or mass analysis is carried out for the first resource to input using data and Secondary resource using data, Draw the data parameters of influence application server performance;
First resource during the Java Virtual Machine operation that the JVM monitoring modules are collected includes CPU, internal memory, thread using data Pond, the one or more of Java database connection pools;
The Secondary resource for the application server host that the host resource monitoring module is collected includes disk, read-write I/ using data O and the network bandwidth one or more.
2. according to the device described in claim 1, it is characterised in that the performance evaluation module should according to the influence drawn The statistics icon shows that resource is used are provided with the data parameters of server performance.
3. according to the device described in claim 1, it is characterised in that the performance evaluation module should according to the influence drawn Performance tuning suggestion is provided with the data parameters of server performance.
4. according to the device described in any one of claims 1 to 3, it is characterised in that
The performance evaluation module is calculated according to the resource distributed for the Java Virtual Machine with first resource using data, The utilization rate of first resource when drawing JVM operations;Resource according to being distributed for the application server host makes with Secondary resource Calculated with data, draw the Secondary resource utilization rate of the application server host;Then comprehensive analysis first resource Utilization rate and the utilization rate of Secondary resource draw the data parameters of influence application server performance.
5. a kind of method for monitoring application server resource, including:
The performance of application server is tested to the concurrent operations of operation system according to practical business situation analog subscriber;
During application server carries out performance test, the first of Java Virtual Machine operation is collected by JVM monitoring modules Resource uses data, and the Secondary resource for collecting application server host by host resource monitoring module uses data;
Macro or mass analysis is carried out using data using data and Secondary resource to first resource, influence application server performance is drawn Data parameters;
The first resource for the Java Virtual Machine operation collected by JVM monitoring modules using data include CPU, internal memory, thread pool, The one or more of Java database connection pools;The Secondary resource for collecting application server host by host resource monitoring module makes Include the one or more of disk, read-write I/O and the network bandwidth with data.
6. in accordance with the method for claim 5, in addition to:
The statistics icon shows that resource is used are provided according to the data parameters of the influence application server performance drawn.
7. in accordance with the method for claim 5, in addition to:
Built according to the Performance tuning that the data parameters of the influence application server performance drawn provide the application server View.
8. according to the method described in any one of claim 5 to 7, it is characterised in that described to use data and the to first resource Two resources carry out Macro or mass analysis using data, draw the data parameters of influence application server performance, specifically include:
Resource according to being distributed for the Java Virtual Machine is calculated with first resource using data, the when drawing JVM operations The utilization rate of one resource;Resource according to being distributed for the application server host is calculated with Secondary resource using data, Draw the Secondary resource utilization rate of the application server host;
The utilization rate of comprehensive analysis first resource and the utilization rate of Secondary resource draw the number of the influence application server performance According to parameter.
CN201510007538.XA 2015-01-07 2015-01-07 A kind of method and device for monitoring application server resource Active CN104461832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510007538.XA CN104461832B (en) 2015-01-07 2015-01-07 A kind of method and device for monitoring application server resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510007538.XA CN104461832B (en) 2015-01-07 2015-01-07 A kind of method and device for monitoring application server resource

Publications (2)

Publication Number Publication Date
CN104461832A CN104461832A (en) 2015-03-25
CN104461832B true CN104461832B (en) 2017-09-12

Family

ID=52907927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510007538.XA Active CN104461832B (en) 2015-01-07 2015-01-07 A kind of method and device for monitoring application server resource

Country Status (1)

Country Link
CN (1) CN104461832B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656698B (en) * 2016-03-24 2019-03-19 鞠洪尧 A kind of network application system intelligent monitoring structure and method
CN107066372A (en) * 2017-03-03 2017-08-18 九次方大数据信息集团有限公司 Backstage resource monitoring method and device in system performance testing
CN108874546B (en) * 2018-06-26 2021-09-28 郑州云海信息技术有限公司 Linux system and method for optimizing resource use
CN112905418A (en) * 2021-03-02 2021-06-04 湖南快乐阳光互动娱乐传媒有限公司 JVM (JVM) tuning method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853206A (en) * 2010-06-18 2010-10-06 北京九合创胜网络科技有限公司 Software performance detection method and device
CN103106134A (en) * 2011-11-10 2013-05-15 阿里巴巴集团控股有限公司 Detecting method, device and system for performance deficiency
CN103186412A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Performance optimization method based on JVM (java virtual machine) server
DE202013102179U1 (en) * 2012-12-25 2013-08-01 Kaspersky Lab, Zao System to detect malicious code executed by a virtual machine
CN103577328A (en) * 2013-11-20 2014-02-12 北京奇虎科技有限公司 Method and device for analyzing performance of application
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
CN103955423A (en) * 2013-12-25 2014-07-30 中软信息系统工程有限公司 Test evaluation method of domestic JVM (Java Virtual Machine)

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853206A (en) * 2010-06-18 2010-10-06 北京九合创胜网络科技有限公司 Software performance detection method and device
CN103106134A (en) * 2011-11-10 2013-05-15 阿里巴巴集团控股有限公司 Detecting method, device and system for performance deficiency
CN103186412A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Performance optimization method based on JVM (java virtual machine) server
DE202013102179U1 (en) * 2012-12-25 2013-08-01 Kaspersky Lab, Zao System to detect malicious code executed by a virtual machine
CN103577328A (en) * 2013-11-20 2014-02-12 北京奇虎科技有限公司 Method and device for analyzing performance of application
CN103955423A (en) * 2013-12-25 2014-07-30 中软信息系统工程有限公司 Test evaluation method of domestic JVM (Java Virtual Machine)
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method

Also Published As

Publication number Publication date
CN104461832A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN105049268B (en) Distributed computing resource distribution system and task processing method
US10116534B2 (en) Systems and methods for WebSphere MQ performance metrics analysis
CN100451989C (en) Software testing system and testing method
US20130254196A1 (en) Cost-based optimization of configuration parameters and cluster sizing for hadoop
CN104050042B (en) The resource allocation methods and device of ETL operations
CN104298550B (en) A kind of dynamic dispatching method towards Hadoop
CN108595316B (en) Lifecycle management method, manager, device, and medium for distributed application
KR20180017198A (en) METHOD, APPARATUS, SYSTEM, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM
CN104461832B (en) A kind of method and device for monitoring application server resource
CN103593192B (en) A kind of algorithm integration based on SLURM scheduling and evaluating system and method
CN104778124A (en) Automatic testing method for software application
CN108038239A (en) A kind of heterogeneous data source method of standardization management, device and server
CN106210124B (en) Unified cloud data center monitoring system
CN112052082B (en) Task attribute optimization method, device, server and storage medium
CN106354729A (en) Graph data handling method, device and system
US7444350B1 (en) Method and apparatus for processing management information
CN109828790A (en) A kind of data processing method and system based on Shen prestige isomery many-core processor
CN114610497A (en) Container scheduling method, cluster system, device, electronic equipment and storage medium
KR20160096313A (en) Apparatus and method for monitoring analysis application for analyzing big data
KR20040027270A (en) Method for monitoring database system
CN111221698A (en) Task data acquisition method and device
CN114356714A (en) Resource integration monitoring and scheduling device based on Kubernetes intelligent board card cluster
CN103678425A (en) Integrated analysis for multiple systems
JP6768989B1 (en) Memory allocation in data analysis system
CN111177239A (en) Unified log processing method and system based on HDP big data cluster

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant