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.
CN106201830AInactive Publication Date: 2016-12-07中电福富信息科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
中电福富信息科技有限公司
Publication Date
2016-12-07
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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