Write data monitoring method and system based on EPOLL

A technology for writing data and data dictionary, applied in the field of writing data monitoring based on EPOLL, it can solve the problems of exhaustion of server resources, program crash, consumption of server resources, etc., and achieve the effect of reducing the time of investigation.

Inactive Publication Date: 2016-12-07
中电福富信息科技有限公司
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

We need to temporarily store the unsent data in the waiting list, so there is a hidden danger, that is, when the client only sends but does not r

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Write data monitoring method and system based on EPOLL
  • Write data monitoring method and system based on EPOLL

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Such as figure 1 Shown, the present invention writes the method for data monitoring based on EPOLL, comprises the steps:

[0020] Step 1. The Epoll server accepts the connection from the client;

[0021] Step 2. After the connection is successful, the socket data dictionary saves the socket object. Create an independent monitoring thread to regularly monitor each socket object in the socket data dictionary;

[0022] Step 3. Check the size of the unsent buffer in the socket object at a limited time interval. If it exceeds the limited threshold, the Epoll server will notify the operation and maintenance personnel to process the client.

[0023] Such as figure 2 Shown, the present invention is based on the system of EPOLL write data monitoring, comprises following module:

[0024] Connection module, the Epoll server accepts the connection from the client;

[0025] After the monitoring module is successfully connected, the socket data dictionary will save the socket o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a write data monitoring method and system based on EPOLL. The method comprises the following steps: the Epoll server-side accepting the connection of a client; after the connection is successful, a socket data dictionary saving a socket object; creating an independent monitoring thread to monitor each socket object in the socket data dictionary at fixed time; checking the size of unsent cache area in the socket object at limited time intervals, if the size of the unsent cache exceeds a threshold value, processing the corresponding client. The invention further provides a write data monitoring system based on EPOLL. The system is used for monitoring the server source and immediately adjusting the server source.

Description

technical field [0001] The invention relates to a method and system for monitoring data written based on EPOLL. Background technique [0002] epoll is a poll improved by the Linux kernel to handle a large number of file descriptors. It is an enhanced version of the multiplexed IO interface select / poll under Linux; it can significantly improve the program in the case of only a small number of active connections in a large number of concurrent connections. The CPU utilization of the system. [0003] However, the edge trigger (ET) mode has fewer system calls than the level trigger (LT). If the send buffer is not full, epoll will notify the write event until the developer fills the send buffer, and then epoll will send the buffer next time Notify the write event when it changes from full to not full. When the socket is not writable. We need to temporarily store the unsent data in the waiting list, so there is a hidden danger, that is, when the client only sends but does not r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/30
CPCG06F11/3051
Inventor 傅树萍
Owner 中电福富信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products