Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

LXI instrument service monitoring method

A monitoring method and instrument technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of occupying process table entries and system resources, waste of server resources, etc., to reduce waiting time, reduce storage and operation space , the effect of fast running speed

Active Publication Date: 2013-05-22
HARBIN INST OF TECH
View PDF2 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] The present invention solves the problem that existing service methods are designed to serve concurrently (1) inactive processes still occupy entries in the process table and system resources, resulting in waste of internal resources in the server; (2) the same start-up process is repeated , needs more storage and running space, thus providing a service monitoring method for LXI instruments

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
  • LXI instrument service monitoring method
  • LXI instrument service monitoring method
  • LXI instrument service monitoring method

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0043] Specific implementation mode 1. Combination figure 1 This specific embodiment will be described. A service monitoring method of an LXI instrument, which includes a monitoring process A and a service process B:

[0044] The monitoring process A includes the following steps:

[0045] A1: Preparatory steps for listening to service requests;

[0046] A2: Steps for reading the configuration file and creating a socket descriptor according to the configuration file: reading the configuration file, parsing to obtain the attributes of each service request, and creating a corresponding socket for each service request according to the parsing result Descriptor;

[0047] A3: Steps for adding socket descriptors to a descriptor set;

[0048] A4: Steps for binding the port number and wildcard IP address of the requested service to the socket interface of the corresponding server;

[0049] A5: a step for calling listen to accept a service request by the socket interface;

[0050]...

specific Embodiment approach 2

[0093] Embodiment 2. This embodiment is different from Embodiment 1 in that the step A1 for preparing the service monitoring program includes the following steps:

[0094] A11 is a step for initializing global variables;

[0095] A12 is used to convert the process into a daemon process;

[0096] A13 steps for modifying process resource limits;

[0097] A14 Steps for installing signal processing functions.

[0098] The daemon process, also known as the daemon process (daemon), is a process that runs in the background and is not associated with any control terminal, and is a process with a long life span.

[0099] Because each process can query and change its own resource limit through the getrlimit (soft limit) and setrlimit (hard limit) functions. The operand of these two functions is a pointer to the following structure:

[0100]

[0101] The present invention sets the soft limit to ensure that the soft limit of the process is not RLIM_INFINITY, and rlim_cur is set to ...

specific Embodiment approach 3

[0110] Specific embodiment three, the difference between this specific embodiment and specific embodiment two is that the step A8 and the step A12 both include the following steps:

[0111] C1 is used to call umask to set the file mode creation mask to 0; this step is to prevent the inherited file mode creation mask from denying certain permissions;

[0112] C2 is used to call fork to create a child process and make the parent process exit; since the ID number of the child process is inherited from the process group ID of the parent process, it is not necessarily the leader process of the process group;

[0113] C3 is used to call setsid to create a session; through this step, the process becomes the first process of a new session, becomes the leader process of a new process group, and has no control terminal;

[0114] C4 is used to set the current working directory as the root directory; this step is to avoid that when the parent process works in a mounted file system, the work...

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 relates to the field of LXI instrument development and discloses an LXI instrument service monitoring method. The method solves the problem that more storage and operating space is needed caused by that same starting processes are performed repeatedly due to resource waste inside a server caused by the phenomenon that non-working processes still occupy table entries and system resources of a process list due to the fact that existing service methods are designed into a concurrent service mode. The method includes: monitoring preparation of a service request; adding socket descriptors to a descriptor set according to configuration file common socket descriptors; binding a port number and a wildcard IP (internet protocol) address to a socket interface of a corresponding server; and by the socket interface, invoking listen to accept the service request, invoking select for scanning, invoking accept for receiving, invoking fork to create a subprocess, converting the subprocess into a daemon process, and invoking exec to execute monitoring processes and specific service processes of the corresponding service process.

Description

technical field [0001] The invention belongs to an instrument network service monitoring method and relates to the field of LXI instrument development. Background technique [0002] In LXI instruments, the service manager mainly manages services that have independent network ports and need to interact with users to establish master-slave network connections. Its main task is to provide these services with preliminary preparations for establishing network connections with users, and to monitor the status of all service ports. When a service request comes, the service manager creates a new service process for the port to serve the user , and the service manager still keeps monitoring the service port so as to serve subsequent user requests. [0003] The service manager consists of two parts, one part is the service listener, which is used to monitor the status of all service ports, when a user request arrives, it will start the corresponding service process according to the 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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L29/08
Inventor 刘兆庆乔立岩张毅刚潘邵武满源彭喜元
Owner HARBIN INST OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products