CN101944036A - Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system - Google Patents

Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system Download PDF

Info

Publication number
CN101944036A
CN101944036A CN2010102935585A CN201010293558A CN101944036A CN 101944036 A CN101944036 A CN 101944036A CN 2010102935585 A CN2010102935585 A CN 2010102935585A CN 201010293558 A CN201010293558 A CN 201010293558A CN 101944036 A CN101944036 A CN 101944036A
Authority
CN
China
Prior art keywords
interface
sub
internal memory
memory
monitoring system
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.)
Granted
Application number
CN2010102935585A
Other languages
Chinese (zh)
Other versions
CN101944036B (en
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 Guangge Technology Co Ltd
Original Assignee
SUZHOU GUANGGE EQUIPMENT 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 GUANGGE EQUIPMENT CO Ltd filed Critical SUZHOU GUANGGE EQUIPMENT CO Ltd
Priority to CN 201010293558 priority Critical patent/CN101944036B/en
Publication of CN101944036A publication Critical patent/CN101944036A/en
Application granted granted Critical
Publication of CN101944036B publication Critical patent/CN101944036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a memory optimization method on the basis of rich internet application (RIA) of an industrial monitoring system, comprising the following steps: (1) logging in a web server through a browser, and initializing and displaying a main interface and a default sub-interface; judging whether a new sub-interface opening requirement exits by a program; if yes, judging whether the sub-interface is displayed or not by the program, directly skipping to the sub-interface if the sub-interface is displayed, and judging whether the sub-interface exists in the memory if the sub-interface is not displayed; if the sub-interface exists, loading data for the sub-interface, initializing and displaying; if no sub-interface exists, distributing the memory to generate a new sub-interface; loading data; and initializing and displaying. When the sub-interface is closed, the sub-interface is hidden and is not destroyed, and the memory does not release. The invention utilizes assembly hiding to replace the destroying technology, and avoids multiple release and distribution of the memory when the assembly is opened and closed several times so as to effectively avoid memory leakage, thus realizing stable and reliable long-term operation of RIA in the industrial monitoring system.

Description

A kind of internal memory optimization method of using based on the RIA of industrial monitoring system
Technical field
The present invention relates to a kind of internal memory optimization technology, particularly a kind of method of internal memory optimization of the rich internet that is used for industrial monitoring system.
Background technology
RIA (Rich Internet Applications) rich internet is used the browser end program that belongs to the B/S mode configuration, characteristics are that development and maintenance is convenient, cost is low and are low to server requirement, in business system, be used widely, shortcoming is to be difficult to guarantee long-term, stable and operation reliably, has brought very big challenge for it is applied in industrial monitoring system.
The flow process of traditional browser end program is as follows:
1, by behind the browser login web server, initialization also shows main interface;
2, main interface comprises menu and Shipping Options Page assembly, clicks menu and opens sub-interface;
3, the browser end program is a sub-interface dynamic assigning memory behind the click menu, asks sub-interface desired data, shows behind the initial beggar interface;
4, information is operated or is checked at user's antithetical phrase interface;
5, click the X button at sub-interface behind user's complete operation, trigger sub-interface close event, destroy sub-interface, discharge the internal memory that it takies.
In the said process, because some characteristics of JavaScript and DOM, tend to cause memory overflow, open and close that memory overflow adds up in the cyclic process at sub-interface, cause it steady in a long-term not move, final browser collapse, general solution are the people for restarting browser, but this is definitely unallowed in the industrial monitoring field.
Summary of the invention
The present invention be directed to the deficiency of prior art existence, a kind of memory overflow that can effectively prevent browser end RIA application program is provided, to satisfy the internal memory optimization method of uninterrupted monitoring, long-term stability, reliability service requirement.
For achieving the above object, the technical solution used in the present invention is: a kind of internal memory optimization method of using based on the RIA of industrial monitoring system is provided, it is characterized in that may further comprise the steps:
(1) through browser login web server, initialization and main load interface and default sub-interface once are that required memory is distributed at main interface and default sub-interface;
(2) judge whether that new sub-interface opens request, if execution in step (3) is arranged, if execution in step (5) then not;
(3) judge whether sub-interface shows,, directly jump to sub-interface if show; If do not show, judge then whether this sub-interface has been arranged in the internal memory, if in the internal memory this sub-interface is arranged, then be its loading data, initialization also shows; If this sub-interface not in the internal memory then be its storage allocation, be written into data after generating new sub-interface, initialization is demonstration also;
(4) built-in function is carried out at user's antithetical phrase interface, returns step (2);
(5) judged whether to close the request of sub-interface,, then triggered sub-interface close event, hidden sub-interface, and do not destroy this sub-interface, returned step (2) if having if there is not execution in step (6);
(6) judged whether to close the request of main interface,, then finished internal memory optimization if having if then do not return step (2).
Described main interface comprises menu and Shipping Options Page assembly.
The present invention compared with prior art, technical solution of the present invention is owing to only create once at each sub-interface of optimizing the whole process in back, when creating behind the storage allocation, no longer be assembly application and releasing memory, therefore, its advantage is: no matter open and close sub-interface how many times, EMS memory occupation is all constant, this has just been avoided the dynamic application and the release of internal memory, thereby has effectively avoided memory overflow, can realize the steady in a long-term reliability service of RIA in industrial monitoring system.
Description of drawings
Fig. 1 is the process flow diagram based on the internal memory optimization method of the RIA application of industrial monitoring system that the embodiment of the invention provides.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described.
Embodiment one
The browser end program is generally single web page program, promptly realizes the function of total system on a webpage.A webpage inside is by the demonstration of layout realization state, menu, main viewing area and function button etc.Can make things convenient for the sub-interface of global administration like this, to server requirement still less, server only is required to be browser data necessary is provided than conventional web is powerful to make the browser end program function, uses page generation and the tasks such as displaying, request of data finished by RIA.
Referring to shown in Figure 1, in the process flow diagram of provide at present embodiment one the internal memory optimization method of using based on the RIA of industrial monitoring system as can be seen, technical scheme of the present invention is at first by the browser logon server, only main interface and default sub-interface storage allocation space, main load interface and default sub-interface when program brings into operation.
Program judges whether that new sub-interface opens request, and if had according to sub-interface identification in internal memory the viewing area search sub-interface, just jump to this sub-interface if found;
If do not find continuation in internal memory not the viewing area search sub-interface, if found the show state with regard to the bundle interface to change " demonstration " into, loading data also shows;
If still do not find in internal memory with regard to storage allocation, newly-built sub-interface is provided with show state for " demonstration ", puts into viewing area, and loading data also shows;
When the program judgement had the turn-off request at sub-interface, the show state mark at bundle interface changed " hiding " into, puts into not viewing area, and showed that no longer sub-interface is not destroyed, and internal memory does not discharge yet.
Prioritization scheme provided by the present invention, its sub-interface is kept in the internal memory once just creating always, and just state and data change, and do not have establishment again and destroy application repeatedly and the release that does not also just have internal memory.Owing to do not have the application repeatedly and the release of internal memory, through operation and operation for a long time, EMS memory occupation can obviously not increase, thereby guarantees the reliability service steady in a long-term of industrial monitoring system.Because the assembly of industrial monitoring system can be not too many, and the applicable internal memory of institute is all very big, far more than required memory, therefore, can once be all sub-interface storage allocations.
Industrial monitoring system requires very high to real-time, this method just shows it when needing a sub-interface from internal memory, and speed improves greatly, meets the requirement of industrial monitoring system.
The present invention hides with assembly the browser end program of this industrial monitoring system and replaces the destruction technology, the repeatedly release and the distribution of internal memory when avoiding repeatedly the closing and open of assembly, thus effectively having avoided the internal memory leakage, it is more reliable and more stable that RIA is used.

Claims (2)

1. internal memory optimization method of using based on the RIA of industrial monitoring system is characterized in that may further comprise the steps:
(1) through browser login web server, initialization and main load interface and default sub-interface are that required memory is distributed at main interface and default sub-interface;
(2) judge whether that new sub-interface opens request, if execution in step (3) is arranged, if execution in step (5) then not;
(3) judge whether sub-interface shows,, directly jump to sub-interface if show; If do not show, judge then whether this sub-interface has been arranged in the internal memory, if in the internal memory this sub-interface is arranged, then be its loading data, initialization also shows; If this sub-interface not in the internal memory then be its storage allocation, be written into data after generating new sub-interface, initialization is demonstration also;
(4) built-in function is carried out at the antithetical phrase interface, returns step (2);
(5) judged whether to close the request of sub-interface,, then triggered sub-interface close event, hidden sub-interface, and do not destroy this sub-interface, returned step (2) if having if there is not execution in step (6);
(6) judged whether to close the request of main interface,, then finished internal memory optimization if having if then do not return step (2).
2. a kind of internal memory optimization method of using based on the RIA of industrial monitoring system according to claim 1, it is characterized in that: described main interface comprises menu and Shipping Options Page assembly.
CN 201010293558 2010-09-27 2010-09-27 Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system Active CN101944036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010293558 CN101944036B (en) 2010-09-27 2010-09-27 Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010293558 CN101944036B (en) 2010-09-27 2010-09-27 Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system

Publications (2)

Publication Number Publication Date
CN101944036A true CN101944036A (en) 2011-01-12
CN101944036B CN101944036B (en) 2013-05-01

Family

ID=43436037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010293558 Active CN101944036B (en) 2010-09-27 2010-09-27 Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system

Country Status (1)

Country Link
CN (1) CN101944036B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320456A (en) * 2015-10-19 2016-02-10 网易(杭州)网络有限公司 Touch screen-based object information prompt interaction method
CN111258694A (en) * 2020-01-15 2020-06-09 广州虎牙科技有限公司 Interface loading method and device, user side and storage medium
CN112181554A (en) * 2020-09-08 2021-01-05 安徽鸿程光电有限公司 Interactive interface display method and device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6604194B1 (en) * 1998-12-18 2003-08-05 Lg Electronics Inc. Program updating method and apparatus for communication terminal system
WO2005066773A1 (en) * 2003-12-31 2005-07-21 Sandisk Corporation Flash memory system startup operation
US7376825B2 (en) * 2004-05-12 2008-05-20 Samsung Electronics Co., Ltd System and method for accessing vital data from memory
CN101192165A (en) * 2006-11-29 2008-06-04 中兴通讯股份有限公司 Master-slave mode multiprocessor system and software version loading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6604194B1 (en) * 1998-12-18 2003-08-05 Lg Electronics Inc. Program updating method and apparatus for communication terminal system
WO2005066773A1 (en) * 2003-12-31 2005-07-21 Sandisk Corporation Flash memory system startup operation
US7376825B2 (en) * 2004-05-12 2008-05-20 Samsung Electronics Co., Ltd System and method for accessing vital data from memory
CN101192165A (en) * 2006-11-29 2008-06-04 中兴通讯股份有限公司 Master-slave mode multiprocessor system and software version loading method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320456A (en) * 2015-10-19 2016-02-10 网易(杭州)网络有限公司 Touch screen-based object information prompt interaction method
CN111258694A (en) * 2020-01-15 2020-06-09 广州虎牙科技有限公司 Interface loading method and device, user side and storage medium
CN112181554A (en) * 2020-09-08 2021-01-05 安徽鸿程光电有限公司 Interactive interface display method and device, electronic device and storage medium

Also Published As

Publication number Publication date
CN101944036B (en) 2013-05-01

Similar Documents

Publication Publication Date Title
US8510371B2 (en) Method and system for creating IT-oriented server-based web applications
CN101699393B (en) Network-facing intelligent software interface dynamic generation method
US9703761B2 (en) Delayed code parsing for reduced startup latency
US20070220035A1 (en) Generating user interface using metadata
CN104903860B (en) Third-party application scripting capabilities
US20060288309A1 (en) Displaying available menu choices in a multimodal browser
CN102855142B (en) A kind of client framework structure based on RIA and its implementation
TWI536240B (en) Client application and web page integration
EP2973047A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
US20130067456A1 (en) Application configuration framework for enterprise resource planning application installation
CN102810057A (en) Log recording method
CN103645908A (en) Full life circle development achievement system of intemetware
US20110022943A1 (en) Document object model (dom) application framework
US20150234798A1 (en) System and method for changing a web ui application appearance based on state through css selector cascading
JP2006209759A (en) Method and system for digital device menu editor
CN102073525A (en) Method and device for dynamically upgrading Web service system based on Java platform
CN100465882C (en) Method and system of establishing culture sensitive control element for global application
CN111177613A (en) Page processing method, device, equipment and storage medium
JP2016502199A (en) How to provide different contents corresponding to widgets that change visually on the smart device screen
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN101944036B (en) Memory optimization method on basis of rich internet applications (RIA) of industrial monitoring system
CN104834715A (en) Website generating method and system based on components and container
CN101776997A (en) Interface processing method and device
González et al. Highly dynamic behaviour adaptability through prototypes with subjective multimethods
CN102868746B (en) Method for realizing mobile informationization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Xinghu street Suzhou Industrial Park in Jiangsu province 215123 No. 328 Creative Industry Park Building 2 room B704

Applicant after: Suzhou Guangge Equipment Co., Ltd.

Address before: 215021 143B-1, international science and Technology Park, 1355 Jinji Lake Avenue, Suzhou Industrial Park, Suzhou, Jiangsu, China

Applicant before: Suzhou Guangge Equipment Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Room b704, building 2, creative industry park, 328 Xinghu street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Guangge Technology Co.,Ltd.

Address before: Room b704, building 2, creative industry park, 328 Xinghu street, Suzhou Industrial Park, Jiangsu Province

Patentee before: SUZHOU GUANGGE EQUIPMENT Co.,Ltd.

CP01 Change in the name or title of a patent holder