CN107317873B - Session processing method and device - Google Patents
Session processing method and device Download PDFInfo
- Publication number
- CN107317873B CN107317873B CN201710600145.9A CN201710600145A CN107317873B CN 107317873 B CN107317873 B CN 107317873B CN 201710600145 A CN201710600145 A CN 201710600145A CN 107317873 B CN107317873 B CN 107317873B
- Authority
- CN
- China
- Prior art keywords
- information
- session
- log
- connection
- log information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a session processing method and a device, wherein the session processing method comprises the following steps: querying a process of a server to determine information about the process; acquiring log information corresponding to the related information according to the related information; and analyzing the log information so as to determine the connection condition of the session. According to the method and the device, the process of the server is inquired, so that the relevant information of the process is determined, the log information corresponding to the relevant information is obtained according to the relevant information, and finally the log information is analyzed, so that the connection condition of the session is determined, the connection of the session can be displayed in real time, the connection condition of the client computer can be counted in real time, and the positioning and tracking are facilitated.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a session processing method and apparatus.
Background
VNC (Virtual Network Console) is an excellent remote control tool software developed by the well-known european research laboratory of AT & T. In addition, the VNC is free open source software based on UNIX and Linux operating systems, has strong remote control capability, high efficiency and practicability, and has performance comparable to any remote control software in Windows and MAC.
Furthermore, because the VNC is free and available to a large number of different operating systems, its simplicity, reliability and backwards compatibility advantages have evolved into the most widely used remote control software. Meanwhile, for remote control software, multi-platform support is very important for a network administrator, and the network administrator can manage almost all systems by using one tool. In addition, for some platforms with high remote connection service, the resource of remote connection is precious, so the statistics and analysis of the number of connections are also vital.
However, there are not many better software or databases for performing statistical analysis on the existing market, and an administrator may only view the process in a background command-knocking manner and then view the usage one by one, so as to count the number of connections of the session, for example, to view or count the specific usage of the session.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
The invention provides a session processing method and a session processing device aiming at the problems in the related art.
The technical scheme of the invention is realized as follows:
according to an aspect of the present invention, there is provided a session processing method.
The session processing method comprises the following steps: querying a process of a server to determine information about the process; acquiring log information corresponding to the related information according to the related information; and analyzing the log information so as to determine the connection condition of the session.
According to one embodiment of the invention, the related information comprises: a session number and a user name.
According to an embodiment of the present invention, acquiring log information corresponding to session information according to the related information includes: acquiring directory information of a client corresponding to the user name according to the user name; and inquiring the log corresponding to the session number in the directory information according to the session number so as to acquire log information.
According to an embodiment of the present invention, parsing the log information to determine the connection status of the session includes: analyzing the log information to obtain the time information of the session and/or the connection number information of the session; and determining the connection condition of the session according to the time information and/or the connection quantity information.
According to one embodiment of the invention, the connection number information is a number of session connections between the client and the rendering server.
According to another aspect of the present invention, a session processing apparatus is provided.
The session processing apparatus includes: the query module is used for querying the process of the server so as to determine the relevant information of the process; the acquisition module is used for acquiring the log information corresponding to the relevant information according to the relevant information; and the analysis module is used for analyzing the log information so as to determine the connection condition of the session.
According to one embodiment of the invention, the related information comprises: a session number and a user name.
According to one embodiment of the invention, the acquisition module comprises: the first obtaining sub-module is used for obtaining the directory information of the client corresponding to the user name according to the user name; and the query submodule is used for querying the log corresponding to the session number in the directory information according to the session number so as to acquire log information.
According to one embodiment of the invention, the parsing module comprises: the second acquisition submodule is used for analyzing the log information and acquiring the time information of the session and/or the connection quantity information of the session; and the determining module is used for determining the connection condition of the session according to the time information and/or the connection quantity information.
According to one embodiment of the invention, the connection number information is a number of session connections between the client and the rendering server.
The invention has the beneficial technical effects that:
according to the method and the device, the process of the server is inquired, so that the relevant information of the process is determined, the log information corresponding to the relevant information is obtained according to the relevant information, and finally the log information is analyzed, so that the connection condition of the session is determined, the connection of the session can be displayed in real time, the connection condition of the client computer can be counted in real time, and the positioning and tracking are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow diagram of a session processing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a desktop cloud visualization architecture according to an embodiment of the present invention;
fig. 3 is a block diagram of a session processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
According to an embodiment of the present invention, there is provided a session processing method.
As shown in fig. 1, the session processing method according to the embodiment of the present invention includes:
step S101, inquiring the process of the server so as to determine the relevant information of the process;
step S103, acquiring log information corresponding to the relevant information according to the relevant information;
step S105, analyzing the log information to determine the connection condition of the session.
By means of the technical scheme, the process related information of the process is determined by inquiring the process of the server, then the log information corresponding to the related information is obtained according to the related information, and finally the log information is analyzed, so that the connection condition of the session is determined, the connection of the session can be displayed in real time, the connection condition of the client can be counted in real time, and the positioning and tracking are facilitated.
According to one embodiment of the invention, the related information comprises: a session number and a user name.
According to an embodiment of the present invention, acquiring log information corresponding to session information according to the related information includes: acquiring directory information of a client corresponding to the user name according to the user name; and inquiring the log corresponding to the session number in the directory information according to the session number so as to acquire log information.
According to an embodiment of the present invention, parsing the log information to determine the connection status of the session includes: analyzing the log information to obtain the time information of the session and/or the connection number information of the session; and determining the connection condition of the session according to the time information and/or the connection quantity information.
According to one embodiment of the invention, the connection number information is a number of session connections between the client and the rendering server.
In order to better describe the technical solution of the present invention, the following detailed description of the technical solution of the present invention is provided by specific examples.
As shown in fig. 2, it discloses a NICE DCV (Desktop Cloud Visualization) architecture, which is referred to as DCV architecture for short, and is a lightweight remote Desktop protocol, which is intended to provide real workstation experience for super-critical 3D applications, and in addition, it enables users to remotely access Linux and Windows applications only by means of a software client supporting multiple displays and ultra-high screen resolution. In addition, by utilizing dynamic adjustment of image compression, super-optimal management can be provided for various network bandwidths and time delays, and the super-optimal management can cooperate with other users in real time to adopt independent bandwidth control for each user.
Further, the DCV framework includes: a rendering server (or server) and an end workstation (or user side), wherein the rendering server is equipped with one or more GPUs for OpenGL (Open Graphics Library) rendering; the terminal workstation may be one or more, for example, fig. 2 shows 2 terminal workstations, which are only operated for visualization, and furthermore, the terminal workstation and the rendering server are connected through a network, for example, the terminal workstation and the rendering server may be connected through a LAN network, a WAN network and a VPN network, so that the balanced quality VS frame rate can be optimized.
In addition, the specific processing flow of the conversation processing method is as follows:
step S1, starting the service of the rendering server, and connecting the terminal workstation to the rendering server;
step S2, querying a vnc process of the rendering server, and acquiring a user name and a conversation number corresponding to the vnc process;
step S3, traversing a plurality of terminal workstations according to the acquired user names, and analyzing log files corresponding to session numbers under the directory of the corresponding terminal workstations;
in step S4, the connection status of the client is analyzed according to the log file record, so as to determine the connection status of the session.
According to the embodiment of the invention, the invention also provides a session processing device.
As shown in fig. 3, a session processing apparatus according to an embodiment of the present invention includes: a query module 31, configured to query a process of the server, so as to determine relevant information of the process; the obtaining module 32 is configured to obtain log information corresponding to the relevant information according to the relevant information; and the analysis module 33 is configured to analyze the log information, so as to determine a connection condition of the session.
According to one embodiment of the invention, the related information comprises: a session number and a user name.
According to one embodiment of the invention, the obtaining module 32 comprises: a first obtaining sub-module (not shown) for obtaining the directory information of the client corresponding to the user name according to the user name; and an inquiry submodule (not shown) configured to inquire, according to the session number, a log corresponding to the session number in the directory information, so as to obtain log information.
According to one embodiment of the invention, the parsing module 33 comprises: a second obtaining sub-module (not shown) for analyzing the log information and obtaining the time information of the session and/or the connection number information of the session; and a determining module (not shown) for determining the connection condition of the session according to the time information and/or the connection quantity information.
According to one embodiment of the invention, the connection number information is a number of session connections between the client and the rendering server.
In summary, with the above technical solution of the present invention, a process of a server is queried to determine relevant information of the process, then log information corresponding to the relevant information is obtained according to the relevant information, and finally the log information is analyzed to determine a connection condition of the session, so that connection of the session can be displayed in real time, and a connection condition of a client can be counted in real time, thereby facilitating location tracking.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (6)
1. A session processing method, comprising:
querying a vnc process of a server so as to determine relevant information of the vnc process;
acquiring log information corresponding to the relevant information according to the relevant information;
analyzing the log information so as to determine the connection condition of the session;
wherein the related information comprises: a session number and a user name; according to the related information, acquiring the log information corresponding to the session information comprises:
acquiring directory information of a client corresponding to the user name according to the user name;
and inquiring a log corresponding to the session number in the directory information under the vnc directory according to the session number, so as to obtain the log information.
2. The method of claim 1, wherein parsing the log information to determine the connection status of the session comprises:
analyzing the log information to acquire the time information of the session and/or the connection quantity information of the session;
and determining the connection condition of the session according to the time information and/or the connection quantity information.
3. The session processing method according to claim 2, wherein the connection number information is a number of session connections between the client and the rendering server.
4. A session processing apparatus, comprising:
the query module is used for querying the vnc process of the server so as to determine the relevant information of the vnc process;
the acquisition module is used for acquiring the log information corresponding to the relevant information according to the relevant information;
the analysis module is used for analyzing the log information so as to determine the connection condition of the session;
wherein the related information comprises: a session number and a user name;
the acquisition module includes:
the first obtaining sub-module is used for obtaining the directory information of the client corresponding to the user name according to the user name;
and the query submodule is used for querying a log corresponding to the conversation number in the vnc directory according to the conversation number so as to obtain the log information.
5. The session processing apparatus according to claim 4, wherein the parsing module comprises:
the second obtaining submodule is used for analyzing the log information and obtaining the time information of the session and/or the connection quantity information of the session;
and the determining module is used for determining the connection condition of the session according to the time information and/or the connection quantity information.
6. The session processing apparatus according to claim 5, wherein the connection number information is a number of session connections between the client and the rendering server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710600145.9A CN107317873B (en) | 2017-07-21 | 2017-07-21 | Session processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710600145.9A CN107317873B (en) | 2017-07-21 | 2017-07-21 | Session processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107317873A CN107317873A (en) | 2017-11-03 |
CN107317873B true CN107317873B (en) | 2020-08-11 |
Family
ID=60178634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710600145.9A Active CN107317873B (en) | 2017-07-21 | 2017-07-21 | Session processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107317873B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135911A (en) * | 2011-03-23 | 2011-07-27 | 中国工商银行股份有限公司 | Method, device and system for starting and stopping server process |
CN103999052A (en) * | 2011-09-21 | 2014-08-20 | 亚马逊技术有限公司 | Remote process execution management |
CN104298492A (en) * | 2013-07-18 | 2015-01-21 | 工业和信息化部软件与集成电路促进中心 | Remote control method and system for mobile terminal |
CN105139139A (en) * | 2015-08-31 | 2015-12-09 | 国家电网公司 | Data processing method, device and system for operation and maintenance audit |
CN105589905A (en) * | 2014-12-26 | 2016-05-18 | ***股份有限公司 | User interest data analysis and collection system and method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1229728C (en) * | 1999-06-30 | 2005-11-30 | 三得利株式会社 | WEB application system having management/distributed management function and mechanism for operating the same |
US7320032B2 (en) * | 2001-05-21 | 2008-01-15 | Hewlett-Packard Development Company, L.P. | Methods and structure for reducing resource hogging |
CN1150717C (en) * | 2001-06-21 | 2004-05-19 | 华为技术有限公司 | Journal management system of integrated network manager |
CN103178982A (en) * | 2011-12-23 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Method and device for analyzing log |
-
2017
- 2017-07-21 CN CN201710600145.9A patent/CN107317873B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135911A (en) * | 2011-03-23 | 2011-07-27 | 中国工商银行股份有限公司 | Method, device and system for starting and stopping server process |
CN103999052A (en) * | 2011-09-21 | 2014-08-20 | 亚马逊技术有限公司 | Remote process execution management |
CN104298492A (en) * | 2013-07-18 | 2015-01-21 | 工业和信息化部软件与集成电路促进中心 | Remote control method and system for mobile terminal |
CN105589905A (en) * | 2014-12-26 | 2016-05-18 | ***股份有限公司 | User interest data analysis and collection system and method |
CN105139139A (en) * | 2015-08-31 | 2015-12-09 | 国家电网公司 | Data processing method, device and system for operation and maintenance audit |
Also Published As
Publication number | Publication date |
---|---|
CN107317873A (en) | 2017-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109284334B (en) | Real-time database synchronization method and device, electronic equipment and storage medium | |
US10177999B2 (en) | System and method for real-time visualization of website performance data | |
CN109508344B (en) | Service data query method and device, electronic equipment and storage medium | |
CN102484740B (en) | Systems and methods for managing video data | |
US20110113117A1 (en) | Asynchronous Collection and Correlation of Trace and Communications Event Data | |
CN112954311B (en) | Performance test method and system for live streaming media | |
CN112286774A (en) | Operation and maintenance monitoring data display method and device, storage medium and computing equipment | |
CN108933801B (en) | Method and device for establishing cloud desktop channel and cloud desktop communication | |
CN110620699B (en) | Message arrival rate determination method, device, equipment and computer readable storage medium | |
KR20160092136A (en) | Virtual Desktop Providing Method and Virtual Desktop Providing Server thereof | |
CN112115114A (en) | Log processing method, device, equipment and storage medium | |
CN110737676A (en) | Data query method and device | |
US20200366967A1 (en) | Method and system for monitoring quality of streaming media | |
WO2009038384A1 (en) | Query processing system and methods for a database with packet information by dividing a table and query | |
CN110727564A (en) | Real-time monitoring method for test data of server performance pressure test | |
US20190384691A1 (en) | Methods for providing an enterprise synthetic monitoring framework | |
CN107317873B (en) | Session processing method and device | |
CN108540439B (en) | Data analysis method, system, device and storage medium | |
CN109800136A (en) | A kind of long-range redis performance data method of sampling and its system | |
US9049111B2 (en) | Progressive charting of network traffic flow data | |
CN113641735A (en) | Visual display method of federal cluster data, electronic equipment and storage medium | |
CN113068057B (en) | Barrage processing method and device, computing equipment and medium | |
US7657617B1 (en) | Method and system for collecting performance related information for a remote device | |
CN107404458B (en) | Image acquisition method, server-side equipment and client-side equipment | |
CN115562935A (en) | Monitoring method and device for data processing platform, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211011 Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing Patentee after: Dawning Information Industry (Beijing) Co.,Ltd. Patentee after: ZHONGKE SUGON INFORMATION INDUSTRY CHENGDU Co.,Ltd. Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing Patentee before: Dawning Information Industry (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |