CN211087228U - Processing system for displaying large text logs based on web - Google Patents

Processing system for displaying large text logs based on web Download PDF

Info

Publication number
CN211087228U
CN211087228U CN201922287361.XU CN201922287361U CN211087228U CN 211087228 U CN211087228 U CN 211087228U CN 201922287361 U CN201922287361 U CN 201922287361U CN 211087228 U CN211087228 U CN 211087228U
Authority
CN
China
Prior art keywords
file
component
server
web
terminal computer
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
CN201922287361.XU
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201922287361.XU priority Critical patent/CN211087228U/en
Application granted granted Critical
Publication of CN211087228U publication Critical patent/CN211087228U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The utility model provides a processing system for displaying large text logs based on web, a terminal computer is in communication connection with a server; the terminal computer is in communication connection with the server in a wired or wireless mode; the processor acquires a file to be acquired through the input and output device; the processor sends the file to be acquired to the server through the communication network card; the server judges whether the file to be acquired exceeds a threshold value, if so, the file to be acquired of the processor is converted into a PDF file by an iText component; the PDFJS component divides the PDF file into pieces according to a preset size; the web component sends a preview PDF access path to the processor; and the terminal computer displays the fragmented file through the input and output device and the preview PDF access path, so as to realize the fragment preview of the log. The size of the log content of the single request is reduced, thereby shortening the response time of the single request.

Description

Processing system for displaying large text logs based on web
Technical Field
The utility model relates to a log file handles the field, especially relates to a processing system based on web show big text log.
Background
In a computer system, logs are always effective means for monitoring the running state of the system and quickly and accurately positioning system faults, and based on the purpose, a log analysis and display method is particularly critical. Various mature and easy-to-use web log management systems are generated at present, the web system mainly displays logs in a streaming mode, but for larger log files, the display mode has obvious performance bottleneck, long waiting time, easy occurrence of blocking and poor user experience.
Disclosure of Invention
In order to overcome the not enough among the above-mentioned prior art, the utility model provides a processing system based on big text log of web show, include: a terminal computer and a server;
the terminal computer is in communication connection with the server in a wired or wireless mode;
the terminal computer is provided with an input/output device, a communication network card, a processor and a memory;
the processor acquires a file to be acquired through the input and output device;
the processor sends the file to be acquired to the server through the communication network card;
the server is configured with an iText component, a PDFJS component and a web component;
the server judges whether the file to be acquired exceeds a threshold value, if so, the file to be acquired of the processor is converted into a PDF file by an iText component;
the PDFJS component divides the PDF file into pieces according to a preset size;
the web component sends a preview PDF access path to the processor;
and the terminal computer displays the fragmented file through the input and output device and the preview PDF access path, so as to realize the fragment preview of the log.
Preferably, the storage of the terminal computer is configured with a WinRAR compression component;
the processor obtains the file to be sent through the input/output device, compresses the file through the WinRAR compression assembly, and sends the compressed file to the server.
Preferably, the server is configured with a WinRAR decompression component;
and the server decompresses the received file through the WinRAR decompression component.
Preferably, the terminal computer and the server are in communication connection in a wireless mode and adopt a bluetooth communication mode, a WiFi communication mode or a GSM communication mode.
Preferably, the server is configured with a server processor and a server memory;
the iText component, the PDFJS component and the web component are stored in the server memory.
Preferably, the terminal computer is also provided with an android system or a WINDOWS system;
the terminal computer is also provided with a Pushlet component, an Http communication component, a Socket communication component and WebView communication.
According to the technical scheme, the utility model has the advantages of it is following:
according to the processing system for displaying the large text log based on the web, the large text log is converted into PDF through iText, then the log is subjected to fragment preview through PDFJS asynchronous loading, and the log is displayed at a browser end, so that the size of the log content of a single request is reduced, and the response time of the single request is shortened; user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description will be briefly introduced 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 that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a processing system for web-based presentation of large text logs;
FIG. 2 is a schematic diagram of an embodiment of a processing system for web-based presentation of large text logs.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the following embodiments and drawings are applied to clearly and completely describe the technical solution protected by the present invention, and obviously, the embodiments described below are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the scope of protection of this patent.
The utility model provides a processing system based on web show big text log, as shown in FIG. 1 to 2, include: a terminal computer 2 and a server 1; the terminal computer 2 is in communication connection with the server 1 in a wired or wireless mode;
the terminal computer 2 is in wireless communication connection with the server 1 by adopting a Bluetooth communication mode, a WiFi communication mode or a GSM communication mode; the Bluetooth communication mode adopts a PCBA board integrating the Bluetooth chip function; a wireless network protocol IEEE802.11b.g.n protocol stack and a TCP/IP protocol stack are configured in the WiFi communication mode; the GSM communication mode is configured with a GSM radio frequency chip.
The terminal computer 2 is provided with an input/output device 21, a communication network card 22, a processor 23 and a memory 24; the processor 23 receives the file to be acquired through the input and output device 21; the processor 23 sends the file to be acquired to the server 1 through the communication network card 22; the server 1 is configured with an iText component 12, a PDFJS component 13, and a web component 14; the server judges whether the file to be acquired exceeds a threshold value, if so, the file to be acquired of the processor is converted into a PDF file by an iText component; the PDFJS component 13 divides the PDF file into pieces according to a preset size; the web component 14 sends the preview PDF access path to the processor 23; the terminal computer 2 displays the fragmented file through the input/output device 21 and the preview PDF access path, and realizes fragment preview of the log. The input/output device 21 includes a mouse, a keyboard, and a display. In the slicing process according to the preset size, the preset size can be divided according to the data processing amount of the system or based on the file dividing requirement.
The iText component 12 is a Java component in the art that generates PDF reports. The PDFJS component 13 is a plug-in to the browser side in the art to load the PDF. The Web component 14 is an entity for encapsulating data and methods of the Web, and may include a JavaBean component, so as to conveniently process business logic.
The implementation mode of the system is that after a preview request is initiated, a server receives the preview request, firstly, the size of the content of the file is judged, if the size exceeds a threshold V1 (such as 10M), the file is sliced, the content of each file fragment is ensured to be within the threshold V2 (such as 1M), and the content of the first fragment and the information of the next fragment are returned at the same time. After receiving the response, the terminal computer firstly displays the content of the first fragment, then judges whether the content of the next fragment needs to be continuously requested according to a certain strategy, if so, the request is continuously requested, otherwise, the request is ended; if only partial fragment content is downloaded and the user has the operation of continuing browsing, the user continues to request the rest fragments according to the information of the last fragment request.
In the concrete implementation mode, the method comprises the following steps of,
(1) the terminal computer initiates a file preview/fragment request;
(2) the server judges the request to be a preview request or a fragment request; if the request is a preview request, executing the step (3), and if the request is a slicing request, executing the step (5);
(3) inquiring file information, comparing the file information with a file size threshold V1, if the file is larger than the threshold V1, executing the step (4), otherwise, executing the step (6);
(4) calling a fragmentation unit to fragment the file, wherein the size of each fragment is a threshold value V2, and each fragment comprises fragment content and an adjacent fragment pointer; the head/tail fragments contain start/end marks; and returning the first fragment information.
(5) Inquiring the fragment content according to the fragment information, and returning to the terminal computer;
(6) the terminal computer displays/appends the response content;
(7) the client judges whether the file is read completely according to the end mark in the response message, and if the file is read completely, the polling is ended; if not, executing step (8);
(8) calling a strategy, judging whether the remaining fragments need to be continuously requested or not, and executing the step (1) if the remaining fragments need to be continuously requested; if step (9) is not required;
the strategy calling mode is that the system presets threshold page average stay time R1, bandwidth R2 and log file size R3, sets priority (for example, R1> R2> R3), and judges whether the request fragmentation needs to be continued according to the threshold and the priority.
And reading the average residence time of the terminal computer page, comparing with the set threshold average residence time of the page R1, and continuing slicing if the average residence time of the terminal computer page is greater than R1.
And acquiring the bandwidth of the terminal computer, comparing the bandwidth with the bandwidth R2, and continuing slicing if the bandwidth is greater than the bandwidth R2.
The acquired file is compared with the log file size R3, and if the acquired file is larger than R3, the fragmentation is continued.
(9) Monitoring whether a user continues to preview (such as clicking a mouse and rolling a mouse wheel), and if so, executing the step (1);
the terminal computer 2 may include additional hardware components, such as one or more processors 23 and the like. Furthermore, the unit, module, component, application, and component devices, systems, described herein and/or mobile devices may include hardware and software, may also include firmware, may perform various operations including those described herein, may be combined or remain separate, and may be stored on one or more storage devices or computer-readable media. Although described herein as a mobile device, it is not required to be limited in this respect, such that the mobile device may be a smartphone, tablet, laptop, desktop, or the like.
The server 1 is provided with a server processor 11 and a server memory 16; the iText component 12, the PDFJS component 13 and the web component 14 are stored in the server memory 16. The server processor 11 is used to execute the components and program software in the server memory 16. The server 1 may be a computer, desktop computer, or the like.
The server 1 can be realized by adopting Java technology, and the JSP operation component, the Servlet operation component, the PDFJS operation component, the FlexpPaper operation component and other operation components realize the functions of data management, PDF document processing and the like.
The server 1 integrates a Pushlet operation component, an Oracle database operation component, a PDFJS operation component and an Http communication operation component, the advantages of the operation components are fully played, and the experience degree is improved.
In order to increase the data throughput of the communication process, the memory 24 of the terminal computer 2 is provided with a WinRAR compression component 25; the processor 23 obtains the file to be sent through the input/output device 21, compresses the file through the WinRAR compression component 25, and sends the compressed file to the server 1. The server 1 is configured with a WinRAR decompression component 15; the server 1 decompresses the received file through the WinRAR decompression component 15.
The terminal computer 2 is also provided with an android system or a WINDOWS system; of course, not limited to these two systems. The terminal computer 2 is also configured with a Pushlet component, an Http communication component, a Socket communication component and WebView communication.
The terminal computer 2 may be implemented using C # technology, and may be configured with PictureBox and the like. And the data conversion and preview interface display are realized by adopting a Base64 data coding technology, a DOM technology and a WebView technology.
According to the method for achieving asynchronous loading and displaying of the large text log based on the iText + PDFJS, the large text log is converted into PDF through the iText, then fragment preview of the log is achieved through asynchronous loading of the PDFJS, displaying is conducted at a browser end, and user experience is greatly improved.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A processing system for web-based presentation of large text logs, comprising: a terminal computer and a server;
the terminal computer is in communication connection with the server in a wired or wireless mode;
the terminal computer is provided with an input/output device, a communication network card, a processor and a memory;
the processor receives a file to be acquired through the input and output device;
the processor sends the file to be acquired to the server through the communication network card;
the server is configured with an iText component, a PDFJS component and a web component;
the server judges whether the file to be acquired exceeds a threshold value, if so, the file to be acquired of the processor is converted into a PDF file by an iText component;
the PDFJS component divides the PDF file into pieces according to a preset size;
the web component sends a preview PDF access path to the processor;
and the terminal computer displays the fragmented file through the input and output device and the preview PDF access path, so as to realize the fragment preview of the log.
2. The web-exposed large text log-based processing system of claim 1,
a WinRAR compression component is configured in a storage of the terminal computer;
the processor obtains the file to be sent through the input/output device, compresses the file through the WinRAR compression assembly, and sends the compressed file to the server.
3. The web-exposed large text log-based processing system of claim 2,
the server is provided with a WinRAR decompression component;
and the server decompresses the received file through the WinRAR decompression component.
4. The web-exposed large text log-based processing system of claim 1,
the terminal computer and the server are in communication connection in a wireless mode and adopt a Bluetooth communication mode, a WiFi communication mode or a GSM communication mode.
5. The web-exposed large text log-based processing system of claim 1,
the server is provided with a server processor and a server memory;
the iText component, the PDFJS component and the web component are stored in the server memory.
6. The web-exposed large text log-based processing system of claim 1,
the terminal computer is also provided with an android system or a WINDOWS system;
the terminal computer is also provided with a Pushlet component, an Http communication component, a Socket communication component and WebView communication.
CN201922287361.XU 2019-12-18 2019-12-18 Processing system for displaying large text logs based on web Active CN211087228U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201922287361.XU CN211087228U (en) 2019-12-18 2019-12-18 Processing system for displaying large text logs based on web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201922287361.XU CN211087228U (en) 2019-12-18 2019-12-18 Processing system for displaying large text logs based on web

Publications (1)

Publication Number Publication Date
CN211087228U true CN211087228U (en) 2020-07-24

Family

ID=71642274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201922287361.XU Active CN211087228U (en) 2019-12-18 2019-12-18 Processing system for displaying large text logs based on web

Country Status (1)

Country Link
CN (1) CN211087228U (en)

Similar Documents

Publication Publication Date Title
EP3013015B1 (en) Packet compression method and apparatus
US10552508B2 (en) Method and apparatus for processing a webpage
CN108845816B (en) Application program updating method, system, computer device and storage medium
US8224970B2 (en) Web-screen sharing system, web-screen sharing terminals, and sharing program thereof
US10069894B2 (en) Electronic device, storage medium and file transferring method
CN109922049B (en) Verification device and method based on block chain
US20140359084A1 (en) Electronic device, storage medium and file transferring method
EP2863593A1 (en) A method, apparatus and computer program for modifying messages in a communications network
US20140095579A1 (en) System and method for increasing web site serving performance
CN111585785B (en) Method and device for shielding alarm information, computer equipment and storage medium
CN111966647A (en) Cloud storage method and device for small files, server and storage medium
CN211087228U (en) Processing system for displaying large text logs based on web
CN106897052B (en) APK file compression method and device
CN113157480A (en) Error information processing method, device, storage medium and terminal
CN113297453A (en) Network request response method and device, electronic equipment and storage medium
CN113138969A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN109710783B (en) Picture loading method and device, storage medium and server
CN107318129B (en) Data processing method and device and terminal
CN107679063B (en) Picture display method, server and computer-readable storage medium
CN115563424A (en) Method, device, system and medium for generating dynamic PDF document
KR100866746B1 (en) System and method for high speed web browsing service via mobile communication network
CN114520807A (en) File uploading and downloading method and device, computer equipment and storage medium
CN111355767B (en) Remote control method, server, client and electronic equipment
US20150089013A1 (en) Information processing apparatus, and information processing method
CN112769730B (en) Page compression method, device, client and server

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant