WO2017219982A1 - 清除缓存的方法及装置 - Google Patents

清除缓存的方法及装置 Download PDF

Info

Publication number
WO2017219982A1
WO2017219982A1 PCT/CN2017/089375 CN2017089375W WO2017219982A1 WO 2017219982 A1 WO2017219982 A1 WO 2017219982A1 CN 2017089375 W CN2017089375 W CN 2017089375W WO 2017219982 A1 WO2017219982 A1 WO 2017219982A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
network management
data
management system
memory
Prior art date
Application number
PCT/CN2017/089375
Other languages
English (en)
French (fr)
Inventor
耿凯
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017219982A1 publication Critical patent/WO2017219982A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0891Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using clearing, invalidating or resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements

Definitions

  • the present disclosure relates to the field of communications, for example, to a method and apparatus for clearing a cache.
  • the network management system is a caching mechanism, that is, the interface is first opened, and the network management system caches data into the memory. When the interface is opened again, the network management system obtains data from the memory and speeds up the interface development. Because the cache occupies too much memory, it is sometimes close to the maximum memory limit of the Java Virtual Machine (JVM). The cache occupies more memory than the network management JVM is a memory overflow. Therefore, the network management device has an operation jam, which affects the user experience.
  • JVM Java Virtual Machine
  • the maximum memory of the 32-bit network management client in the related art is 930M.
  • one network element can be inserted into 400 boards, a medium engineering office has at least 50 stations, and complex services are configured, and a large amount of alarm reporting data, the amount of data is quite large.
  • the network management system cannot effectively handle large data volume caches. In the related art, the network management cache is unmanaged, the memory cannot be released, and the cache occupies too much memory of the network management system, causing the interface operation to be stuck, the operation is not smooth, and the user experience is affected.
  • the present disclosure provides a method and an apparatus for clearing a cache, which can solve the problem that the network management system cache is not managed in the related art, the memory cannot be released, and the cache occupies too much memory of the network management system, causing the interface operation to be stuck, the operation is not smooth, and the user experience is affected.
  • the problem can solve the problem that the network management system cache is not managed in the related art, the memory cannot be released, and the cache occupies too much memory of the network management system, causing the interface operation to be stuck, the operation is not smooth, and the user experience is affected. The problem.
  • the present disclosure provides a method for clearing a cache, including: determining a duration in which an application in an network management system is not used; and after determining that the application is not used for a duration exceeding a preset expiration time, clearing the application Cache data in the memory of the network management system.
  • clearing the cache data of the application in the memory of the network management system includes at least one of the following:
  • the thread of the application is switched to the background, set to a sleep state, and cleared In addition to the cached data of the application in the memory of the network management system;
  • the cache data of the application in the memory of the network management system is cleared when it is determined that the duration of the application is not used exceeds the preset expiration time and the window of the application is the closed state.
  • clearing the cache data of the application in the memory of the network management system includes: searching a port list of the lowest layer of the application, and clearing data in the port list and releasing memory occupied by the port list; as well as,
  • the cache data of the application in the memory of the network management system is cleared, and the method further includes: deleting at least one of the data corresponding to the data in the port list stored in the database of the network management system; deleting a listener object for listening to the application; and deleting a user interface object of the application.
  • clearing the cached data of the application in the memory of the network management system includes: not being used according to the application.
  • the duration, the name of the application, and the state of the window of the application encapsulate an execution command, wherein the execution command has a function recognized by the network management system;
  • the method further includes: updating the preset expiration time according to an update rule.
  • the present disclosure provides an apparatus for clearing a cache, comprising: a determining module configured to determine a duration in which an application in the network management system is not used; and
  • the clearing module is configured to clear the cached data of the application in the memory of the network management system after determining that the application is not used for a duration exceeding a preset expiration time.
  • the clearing module includes: a releasing unit, configured to be at least one of the following:
  • the releasing unit when releasing the cached data in the memory of the network management system, includes: a first searching subunit, configured to search for a list of ports of the lowest layer of the application; a unit, configured to clear the data in the port list and release the memory occupied by the port list; and the second search sub-unit is configured to search the board list and the network corresponding to the application step by step from the bottom layer a first deletion subunit, configured to delete a board list and a network element list corresponding to the application; a third search subunit, configured to search the application itself data list; and a second emptying subunit, set to Clearing the data in the application's own data list and releasing the memory occupied by the application's own data list.
  • the releasing unit further includes at least one of the following: a second deleting subunit, configured to delete data corresponding to data in the port list stored in a database of the network management system; and a third deleting subunit Set to remove the listener object for listening to the application; the fourth delete subunit is set to delete the listener object for listening to the application.
  • the clearing module includes: an encapsulating unit, configured to encapsulate an execution command according to a duration in which the application is not used, a name of the application, and a state of a window of the application, where the execution command is Having the function identified by the network management system; and a sending unit configured to send the execution command to the network management system, wherein the execution command is set to indicate that the network management system is not used according to the application.
  • an encapsulating unit configured to encapsulate an execution command according to a duration in which the application is not used, a name of the application, and a state of a window of the application, where the execution command is Having the function identified by the network management system
  • a sending unit configured to send the execution command to the network management system, wherein the execution command is set to indicate that the network management system is not used according to the application
  • the time, the name of the application, and the state of the window of the application clear the cached data of the application in the memory of the network management system.
  • the device further includes: an update module, configured to update the preset expiration time according to an update rule.
  • the present disclosure also provides a computer readable storage medium storing computer executable instructions arranged to perform the method of clearing a cache as described above.
  • the disclosure can clear the cache data applied in the memory of the network management system when the duration of the application is not used exceeds the expected time. Therefore, the network management cache can be unmanaged, the memory cannot be released, and the cache occupies too much network management memory.
  • the interface operation is stuck, the operation is not smooth, and the user experience is affected, thereby improving the operation efficiency of the network management and improving the user experience and smoothness.
  • FIG. 1 is a flowchart of a method for clearing a cache provided by this embodiment
  • FIG. 3 is a structural block diagram of an apparatus for clearing a cache provided by this embodiment.
  • FIG. 4 is a schematic diagram showing the hardware structure of an electronic device according to this embodiment.
  • FIG. 1 is a flowchart of a method for clearing a cache provided by this embodiment. As shown in FIG. 1, the method may include the following steps.
  • step 102 a determination is made as to the duration in which the application in the network management system is not being used. as well as,
  • step 104 after determining that the duration of the application is not used exceeds a preset expiration time, the cached data of the application in the memory of the network management system is cleared.
  • the application in the network management system refers to an application in the network management system.
  • the execution body of the foregoing steps may be a network management system or a processing device, and the processing device may be integrated in the network management system or may exist as a single device.
  • the method for clearing the cache provided in this embodiment can clear the cache data of the application in the memory of the network management system when the duration of the application is not used exceeds the expected time. Therefore, the network management cache can be unmanaged. The memory cannot be released. The cache occupies too much memory of the network management system, causing the interface to be stuck, the operation is not smooth, and the user experience is affected. The operation efficiency of the network management is improved, and the user experience and smoothness are improved.
  • clearing the cache data of the application in the memory of the network management system may include at least one of the following operations.
  • the thread of the application is switched to the background, set to the sleep state, and the application is cleared in the memory of the network management system. Cache data. as well as,
  • the method for clearing the cache may be applied to the following two scenarios.
  • the first scenario is for an application that is open for a long time but is not used. After the application is opened but the unused duration exceeds the preset expiration time, the application thread is switched to the background and set to the sleep state. When used, the thread can be activated from the sleep state, and the activation mode is not limited.
  • the second scenario is for an application that is closed and has not been reopened for a long time. After the application is closed and is not reopened for a long time, the application that has not been opened for a long time is counted, and the application is periodically deleted in the network management system. Cache data in .
  • the foregoing expiration time may be preset or may be processed according to a default time of the network management system, for example, a default of 6 hours.
  • the clearing of the cache data of the foregoing application in the memory of the network management system may include the following operations.
  • the board list and the NE list corresponding to the application are searched for, and the board list and the NE list corresponding to the application are deleted. as well as,
  • the lowest-level port list corresponding to the application is searched, the data in the searched port list is cleared, the memory occupied by the data in the port list is released, and the port list is null, and the port list itself is released.
  • Occupied memory search from the lowest level of the above application to the level-by-level search, find the board list and the NE list, switch the board list and the thread of the NE list to the background, set to sleep state, release the memory; find the application itself
  • the data list clears the application's own data list and assigns the application's own data list to null. Through the first-level search, you can find more data related to the above applications, so you can clear more caches and free up more space.
  • the clearing of the cached data of the foregoing application in the memory of the network management system may further include at least one of the following operations.
  • the related function statement may be called to delete the list data stored in the application database, and the user interface object may be destroyed, and the data memory occupied by the user interface is released;
  • a list or module in the application data is not complete, such an application will not be used in practice, and related function statements can also be called.
  • SQL Structured Query Language
  • clearing the cache data of the application in the memory of the network management system may include the following operations.
  • An execution command is encapsulated according to the duration in which the application is not used, the name of the application, and the state of the window of the application, wherein the execution command has a function recognized by the network management system. as well as,
  • the execution command is sent to the network management system, where the execution command is set to instruct the network management system to clear the cache data applied in the memory of the network management system according to the duration of the application being unused, the name of the application, and the status of the window of the application.
  • the execution body may be a processing device, and the processing device may associate the current operation object, the duration of the application not used, the name of the application, and the state of the application window according to the tree structure (not limited to the tree type)
  • the structure is set according to the parent-child structure, and is associated with the tree data structure, and the tree data structure is encapsulated into an execution command that can be recognized by the network management system, such as the F interface command currently used by the network management system, and the abstract syntax mark (Abstract Syntax) Notation One, ASN.1) object structure, using the message of the above object structure to notify the network management system to clear the cache.
  • the above-mentioned execution command structure may be composed of a plurality of attribute fields, including structural objects such as a network element, a board, a port, and application data, and each structure object is identified by an identifier ID as a unique keyword of the entire network.
  • the foregoing method for clearing the cache may further include the following operations.
  • the update operation may occur at any time.
  • the update operation of the expiration time may be performed, where the update rule may be diverse, for example, according to the application.
  • the change of importance level updates the overdue time (when the importance of an application becomes more important, it needs to extend the corresponding overdue time of the application appropriately), and can also update the overdue time according to the change of the application usage scenario, or other The way to update the overdue time.
  • FIG. 2 is a flowchart of operations for clearing a cache provided by this embodiment. As shown in FIG. 2, the operation flow may include the following steps.
  • step 210 the device is turned on.
  • step 220 the expiration time is set.
  • the solution in this embodiment can be applied to the network management system, and the timeout period can be set in advance, or can be processed according to the default time of the network management, such as 6 hours;
  • step 230 the time from the opening to the closing of the application interface in the network management system is analyzed.
  • the application interface is opened and closed, and the function framework can use the onClicked and onClosed keywords to record the current memory usage of each application.
  • step 240 the current activation state of the application window is analyzed.
  • the network management application window activation state is analyzed.
  • the current window belongs to the active state, the current window is marked as Active, and when the current window is in the closed state, the current window is marked as Closed.
  • step 250 the current operation object, the application name, the interface open to the close time, and the window activation state are associated to generate a data structure.
  • the current operation object, application name, interface open to close time, and window activation status can be recorded as key information.
  • step 260 the tree data structure is encapsulated into an execution command recognizable by the network management.
  • the network management system uses the F interface command, and the ASN1 object structure is used to notify the network management process of the packet of the object structure.
  • the interface command structure is composed of multiple attribute fields, including the network element, the board, the port, and in step 250. Structure objects such as associated application data, each object is identified by the ID as a unique keyword of the entire network; the execution command is sent by the client to the server to notify the solution server device (integrated in the network management server) to execute.
  • step 270 the network administrator parses the above execution command.
  • the application data attribute of the interface finds which specific application; after the solution finds the application, the time from the opening to the closing of the application interface is compared with the preset timeout period. If the interface is not closed, the time attribute setting is set. For infinity.
  • step 280 the execution command is broken down into execution units.
  • step 290 it is determined whether the duration of the application not being used exceeds a preset expiration time.
  • step 300 if the duration in which the application has not been used does not exceed the preset expiration time, the execution unit is skipped, that is, the operation of clearing the cache is not performed.
  • step 310 it is determined whether the application window is in an active state.
  • step 320 the application thread is set to sleep if the duration of the application is not used exceeds the preset expiration time and the window is activated.
  • the scheme removes the worker thread started by the application from the thread pool and sets it to sleep. After the thread sleeps, the memory occupied by the thread is released, and the memory is reallocated when the thread is started.
  • step 330 if the duration of the application is not used exceeds the preset expiration time, and the window is closed, the network administrator clears the cache data according to the execution unit, and releases the memory.
  • the solution searches for the lowest port list in the application scope, clears the data in the port list, releases the data occupied memory, and assigns the port list to null. The release of the port list itself occupies memory. If the data is also saved in the database, then the scheme calls the delete sql statement to delete the table data.
  • step 330 delete the object save list and release the memory.
  • the application also has a listener object, and the present disclosure deletes the listener object involved in the application.
  • the application also has a User Interface (UI) object, and the present disclosure performs a destroy operation on the UI object to release the memory.
  • UI User Interface
  • the disclosure performs the residual data deletion operation.
  • the delete sql statement is called to delete the corresponding residual data, and the occupied memory is released.
  • step 340 the cache clear is successful.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, or can also be hardware, the present disclosure can be a software product.
  • a computer software product stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions to make a terminal device (can be a mobile phone, computer, server, or network device, etc.)
  • a terminal device can be a mobile phone, computer, server, or network device, etc.
  • a device for clearing the cache is provided, and the device is used to implement the foregoing embodiments and implementation manners, and details are not described herein.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 3 is a structural block diagram of an apparatus for clearing a cache provided by this embodiment. As shown in FIG. 3, the apparatus may include a determining module 302 and a clearing module 304. among them,
  • the determining module 302 is configured to determine a duration in which the application in the network management system is not used.
  • the clearing module 304 is connected to the determining module 302, and is configured to clear the cached data of the application in the memory of the network management system after determining that the duration of the application is not used exceeds a preset expiration time.
  • the above-mentioned clearing module 304 includes a releasing unit, which is set to at least one of the following.
  • the cached data of the application in the memory of the network management system is cleared.
  • the above release unit may comprise the following subunits.
  • the first lookup subunit is set to look up the list of ports at the bottom of the application.
  • the first emptying subunit is set to clear the data in the above port list and release the memory occupied by the port list.
  • the second search sub-unit is configured to search for the board list and the network element list corresponding to the application from the lowermost layer.
  • the first deletion sub-unit is configured to delete the board list and the network element list corresponding to the application.
  • the third lookup subunit is set to look up the data list of the above application itself. as well as,
  • the second clearing subunit is configured to clear the data in the data list of the application itself and release the memory occupied by the data list of the application itself.
  • the releasing unit may further include at least one of the following.
  • a second deletion subunit configured to delete data corresponding to the data in the port list stored in the database of the network management system.
  • the third delete subunit is set to delete the listener object for listening to the above application. as well as,
  • the fourth delete subunit is set to delete the listener object for listening to the above application.
  • the clearing module 340 described above may include the following units.
  • the encapsulating unit is configured to encapsulate an execution command according to a duration in which the application is not used, a name of the application, and a state of a window of the application, where the execution command is configured by the network management system.
  • the sending unit is configured to send the execution command to the network management system, where the execution command is used to indicate that the network management system clears the application in the network management according to the duration of the application being unused, the name of the application, and the status of the window of the application.
  • the apparatus may further include an update module, the update module being configured to update the preset expiration time according to an update rule.
  • the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different combinations. In the processor.
  • Embodiments of the present disclosure also provide a computer readable storage medium.
  • the above storage medium may be set to store program code for performing the following steps.
  • step one the duration of the application in the network management system is determined to be unused. as well as,
  • step 2 after determining that the application is not used for a duration exceeding a preset expiration time, the cached data of the application in the memory of the network management system is cleared.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, and a magnetic
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk a magnetic
  • magnetic A variety of media that can store program code, such as a disc or a disc.
  • the processor performs the foregoing method for clearing the cache according to the stored program code in the storage medium.
  • the solution in this embodiment solves the problem that the network management cache cannot be cleared, greatly improves the operation efficiency of the network management system, and improves the operation experience and smoothness of the user.
  • the network management cache in the related art is unmanaged, and In this embodiment, the network management cache and the occupied memory can be managed in real time, and the unused memory is released.
  • the network management system uses less resources, so that the network management operation and other commands are faster.
  • the network management cache may be cleared.
  • the need for manual participation reduces the number of errors in manual participation, saves human resources, saves time and communication costs, and improves efficiency.
  • FIG. 4 is a schematic diagram showing the hardware structure of an electronic device according to the embodiment. As shown in FIG. 4, the electronic device includes: one or more processors 410 and a memory 420. One processor 410 is taken as an example in FIG.
  • the electronic device may further include an input device 430 and an output device 440.
  • the processor 410, the memory 420, the input device 430, and the output device 440 in the electronic device may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the input device 430 can receive input numeric or character information
  • the output device 440 can include a display device such as a display screen.
  • the memory 420 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 410 executes various functional applications and data processing by executing software programs, instructions, and modules stored in the memory 420 to implement any of the above embodiments to clear the cache.
  • the memory 420 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like. Further, the memory may include volatile memory such as random access memory, and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 420 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 420 can optionally include memory remotely located relative to processor 410, which can be connected to the electronic device over a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 430 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • Output device 440 can include a display device such as a display screen.
  • the various modules or steps of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be The executed program code is implemented such that they can be stored in a storage device by a computing device, and in some specific cases, the steps shown or described can be performed in a different order than here, or they can be Each of the integrated circuit modules is fabricated separately, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the disclosure can solve the problem that the network management cache is unmanaged, the memory cannot be released, the cache occupies too much network management memory, and the interface operation is stuck, the operation is not smooth, and the user experience is affected, thereby improving the operation efficiency of the network management system and improving the user operation experience and smoothness. Degree effect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

一种清除缓存的方法及装置,其中,该方法包括:确定网管系统中的应用未被使用的持续时间;在确定应用未被使用的持续时间超过预设的超期时间后,清除应用在网管系统的内存中的缓存数据。

Description

清除缓存的方法及装置 技术领域
本公开涉及通信领域,例如涉及一种清除缓存的方法及装置。
背景技术
随着通信网络技术的不断发展,通信业务量不断增长。智能型网管系统(也可以简称为网管)越来越多的应用在工程开局中。网管为缓存机制,即初次打开界面,网管会把数据缓存到内存中;再次打开界面,网管从内存中获取数据,加快界面展开的速度。由于缓存占用内存过多,有时已经接近网管Java虚拟机(Java Virtual Machine,JVM)最大内存限制,缓存占用内存超过网管JVM就是内存溢出。所以网管出现操作卡顿,从而影响用户体验。
在网管运行时间长,打开界面多的情况下,大量数据保存在内存中,相关技术中的网管客户端32位的最大内存为930M。另外,很多情况下,1个网元可以插400块单板,一个中等的工程局至少有50个站点,并且配置着复杂的业务,再加上大量的告警上报数据,数据量相当的大,网管不能有效的处理大数据量缓存。在相关技术中,网管缓存是不受管理的,内存不能释放,缓存占用网管内存过大,导致界面操作卡顿,操作不流畅,影响用户体验。
针对上述问题,相关技术中尚未提出有效的解决方案。
发明内容
本公开提供了一种清除缓存的方法及装置,可以解决相关技术中网管系统缓存不受管理,内存不能释放,缓存占用网管系统内存过大,导致界面操作卡顿,操作不流畅,影响用户体验的问题。
本公开提供了一种清除缓存的方法,包括:确定网管系统中的应用未被使用的持续时间;在确定所述应用未被使用的持续时间超过预设的超期时间后,清除所述应用在所述网管系统的内存中的缓存数据。
可选的,在确定所述应用未被使用的持续时间超过预设的所述超期时间后,清除所述应用在所述网管系统的内存中的缓存数据包括以下至少之一:
在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为激活状态时,将所述应用的线程切换到后台,设置为休眠状态,并清 除所述应用在所述网管系统的内存中的缓存数据;以及,
在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为关闭状态时,清除所述应用在所述网管系统的内存中的缓存数据。
可选的,清除所述应用在所述网管系统的内存中的缓存数据包括:查找所述应用最下层的端口列表,并清空所述端口列表中的数据以及释放所述端口列表占用的内存;以及,
从所述最下层开始向上逐级查找所述应用对应的单板列表和网元列表,并删除所述应用对应的单板列表和网元列表;以及,
查找所述应用本身数据列表,并清空所述应用本身数据列表中的数据以及释放所述应用本身数据列表占用的内存。
可选的,清除所述应用在所述网管系统的内存中的缓存数据,还包括以下至少之一:删除所述网管系统的数据库中存储的与所述端口列表中的数据对应的数据;删除用于监听所述应用的监听器对象;以及删除所述应用的用户界面对象。
可选的,在确定所述应用未被使用的持续时间超过预设的所述超期时间后,清除所述应用在所述网管系统的内存中的缓存数据包括:根据所述应用未被使用的持续时间、所述应用的名称、所述应用的窗口的状态封装一条执行命令,其中,所述执行命令具备被所述网管系统识别的功能;以及,
将所述执行命令发送给所述网管系统,其中,所述执行命令设置为指示所述网管系统根据所述应用未被使用的持续时间、所述应用的名称以及所述应用的窗口的状态清除所述应用在所述网管系统的内存中的缓存数据。
可选的,所述方法还包括:按照更新规则更新预设的所述超期时间。
本公开提供了一种清除缓存的装置,包括:确定模块,设置为确定网管系统中的应用未被使用的持续时间;以及,
清除模块,设置为在确定所述应用未被使用的持续时间超过预设的超期时间后,清除所述应用在所述网管系统的内存中的缓存数据。
可选的,所述清除模块包括:释放单元,设置为以下至少之一:
在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为激活状态时,将所述应用的线程切换到后台,设置为休眠状态,并清除所述应用在所述网管系统的内存中的缓存数据;以及,
在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用 的窗口为关闭状态时,清除所述应用在所述网管系统的内存中的缓存数据。
可选的,在释放所述应用在所述网管系统的内存中的缓存数据时,所述释放单元包括:第一查找子单元,设置为查找所述应用最下层的端口列表;第一清空子单元,设置为清空所述端口列表中的数据以及释放所述端口列表占用的内存;第二查找子单元,设置为从所述最下层开始向上逐级查找所述应用对应的单板列表和网元列表;第一删除子单元,设置为删除所述应用对应的单板列表和网元列表;第三查找子单元,设置为查找所述应用本身数据列表;以及第二清空子单元,设置为清空所述应用本身数据列表中的数据以及释放所述应用本身数据列表占用的内存。
可选的,所述释放单元还包括以下至少之一:第二删除子单元,设置为删除所述网管系统的数据库中存储的与所述端口列表中的数据对应的数据;第三删除子单元,设置为删除用于监听所述应用的监听器对象;第四删除子单元,设置为删除用于监听所述应用的监听器对象。
可选的,所述清除模块包括:封装单元,设置为根据所述应用未被使用的持续时间、所述应用的名称和所述应用的窗口的状态封装一条执行命令,其中,所述执行命令具备被所述网管系统识别的功能;以及发送单元,设置为将所述执行命令发送给所述网管系统,其中,所述执行命令设置为指示所述网管系统根据所述应用未被使用的持续时间、所述应用的名称和所述应用的窗口的状态清除所述应用在所述网管系统的内存中的缓存数据。
可选的,所述装置还包括:更新模块,设置为按照更新规则更新预设的所述超期时间。
本公开还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述清除缓存的方法。
本公开可以在应用未被使用的持续时间超过预期的时间时,清除应用在网管系统的内存中的缓存数据,因此,可以解决网管缓存不受管理,内存不能释放,缓存占用网管内存过大,导致界面操作卡顿,操作不流畅,影响用户体验的问题,达到提高网管的运行效率,提高用户操作体验和流畅度的效果。
附图说明
此处所说明的附图用来提供对本公开的理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。 在附图中:
图1是本实施例提供的清除缓存的方法流程图;
图2是本实施例提供的清除缓存的操作流程图;
图3是本实施例提供的清除缓存的装置结构框图;以及,
图4是本实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
图1是本实施例提供的清除缓存的方法流程图,如图1所示,该方法可以包括如下步骤。
在步骤102中,确定网管系统中的应用未被使用的持续时间。以及,
在步骤104中,在确定上述应用未被使用的持续时间超过预设的超期时间后,清除上述应用在网管系统的内存中的缓存数据。
其中,网管系统中的应用是指网管系统中的应用程序。上述步骤的执行主体可以为网管系统,也可以是处理设备,该处理设备可以集成在网管系统中,也可以作为一个单独的设备而存在。
本实施例提供的清除缓存的方法,由于在应用未被使用的持续时间超过预期的时间的情况下,清除了应用在网管系统的内存中的缓存数据,因此,可以解决网管缓存不受管理,内存不能释放,缓存占用网管内存过大,导致界面操作卡顿,操作不流畅,影响用户体验的问题,达到提高网管的运行效率,提高用户操作体验和流畅度的效果。
在一个可选的实施例中,在确定上述应用未被使用的持续时间超过预设的超期时间后,清除上述应用在网管系统的内存中的缓存数据可以包括以下操作的至少之一。
在确定上述应用未被使用的持续时间超过预设的超期时间且上述应用的窗口为激活状态时,将应用的线程切换到后台,设置为休眠状态,并清除上述应用在网管系统的内存中的缓存数据。以及,
在确定上述应用未被使用的持续时间超过预设的超期时间且上述应用的窗 口为关闭状态时,清除应用在网管系统的内存中的缓存数据。
在本实施例中,上述清除缓存的方法可以适用于以下两种场景。
第一种场景是针对长期打开但是不用的应用,在应用打开后但未被使用的持续时间超过了预设的超期时间的情况下,将该应用的线程切换到后台,设置为休眠状态,再次使用时可以将线程从休眠状态中激活,激活方式不限。
第二种场景是针对关闭掉且长时间没有再打开的应用,在应用关闭后且长时间没有再打开的情况下,统计上述长时间没有再打开的应用,定期删除上述应用在网管系统的内存中的缓存数据。
可选的,上述超期时间可以预先设置,也可以按照网管系统默认的时间处理,例如:默认的6小时。
在一个可选的实施例中,清除上述应用在网管系统的内存中的缓存数据可以包括以下操作。
查找上述应用最下层的端口列表,并清空端口列表中的数据以及释放端口列表占用的内存。
从上述应用最下层开始向上逐级查找应用对应的单板列表和网元列表,并删除上述应用对应的单板列表和网元列表。以及,
查找上述应用本身数据列表,并清空应用本身数据列表中的数据以及释放应用本身数据列表占用的内存。
上述实施例中,查找应用对应的最下层的端口列表,将查到的端口列表中的数据清除掉,释放端口列表中数据占用的内存,并将上述端口列表赋值为空,释放掉端口列表本身占用的内存;从上述应用最下层开始向上逐级查找,找到单板列表和网元列表,并将单板列表和网元列表的线程切换到后台,设置为休眠状态,释放内存;查找应用本身数据列表,将应用本身数据列表清除掉,并将应用本身数据列表赋值为空。通过一级一级的查找,能够查找到更多的与上述应用相关的数据,从而可以清除更多的缓存,释放更多的空间。
在一个可选的实施例中,清除上述应用在网管系统的内存中的缓存数据,还可以包括以下操作的至少之一。
删除所述网管系统的数据库中存储的与所述端口列表中的数据对应的数据。
删除用于监听所述应用的监听器对象。以及,
删除所述应用的用户界面对象。
上述实施例中,如果相关列表数据在数据库中也有保存,可以调用相关函数语句将应用数据库中存储的列表数据删除,还可以对用户界面对象执行破坏操作,释放上述用户界面占用的数据内存;如果应用数据中某个列表或者模块不全,这样的应用不会被实际使用,还可以调用相关函数语句,比如根据数据库中数据表的主键,调用结构化查询语言(Structured Query Language,SQL)中的删除语句,删除残缺的应用数据,释放内存。
在一个可选的实施例中,在确定上述应用未被使用的持续时间超过预设的超期时间后,清除上述应用在网管系统的内存中的缓存数据可以包括以下操作。
根据上述应用未被使用的持续时间、应用的名称和应用的窗口的状态封装一条执行命令,其中,执行命令具备被上述网管系统识别的功能。以及,
将上述执行命令发送给网管系统,其中,上述执行命令设置为指示网管系统根据应用未被使用的持续时间、应用的名称和应用的窗口的状态清除应用在网管系统的内存中的缓存数据。
在上述实施例中,执行主体可以是处理设备,该处理设备可以将当前操作对象、应用未被使用的持续时间、应用的名称以及应用的窗口的状态根据树型结构关联起来(不限于树型结构),按照父子结构设置优先级,关联成树型数据结构,将上述树型数据结构封装成一条网管系统可以识别的执行命令,比如网管系统目前使用的F接口命令,抽象语法标记(Abstract Syntax Notation One,ASN.1)对象结构,使用上述对象结构的报文通知网管系统进行清除缓存的处理。上述执行命令结构可以由多个属性字段构成,包括网元、单板、端口以及应用数据等结构对象,每个结构对象由标识符ID作为全网唯一关键字标识。
在一个可选的实施例中,上述清除缓存的方法还可以包括以下操作。
按照更新规则更新预设的超期时间。
在本实施例中,该更新操作可以发生在任意时刻,当确定需要更新上述超期时间后,便可以执行对超期时间的更新操作,其中,上述更新规则可以是多样的,例如,可以根据应用的重要程度的变化更新超期时间(当某应用的重要程度变得更为重要时,需要适当的延长该应用对应的超期时间),还可以根据应用的使用场景的变化更新超期时间,也可以采用其他的方式更新超期时间。
图2是本实施例提供的清除缓存的操作流程图,如图2所示,该操作流程可以包括如下步骤。
在步骤210中,打开装置。
在步骤220中,设置超期时间。
本实施例中的方案可以应用于网管系统,可以预先设置超期时间,也可以按照网管默认的时间处理,如6小时;
在步骤230中,分析网管系统中的应用界面从打开到关闭的时间。
应用程序界面打开、关闭,功能框架可以分别用onClicked,onClosed关键字记录,分析各应用当前内存占用情况。
在步骤240中,分析应用窗口当前的激活状态。
分析网管应用窗口激活状态,在当前窗口属于激活状态的情况下,将当前窗口标记为Active,在当前窗口属于关闭状态的情况下,将当前窗口标记为Closed。
在步骤250中,将当前操作对象、应用名称、界面打开到关闭时间和窗口激活状态关联生成一个数据结构。可以将当前操作对象、应用名称、界面打开到关闭时间和窗口激活状态记为关键信息。
将当前操作对象、应用名称、界面打开到关闭时间和窗口激活状态,按照树型结构关联起来(不拘泥于树型结构),按父子节点设置优先级(EMS、Group、NE、Rack、Shelf、Board、TP),关联生成一个树型数据结构。
在步骤260中,将树型数据结构封装成网管可识别的执行命令。
例如网管目前使用的是F接口命令,ASN1对象结构,用这种对象结构的报文通知网管处理;接口命令结构由多个属性字段构成,包括网元、单板、端口、以及在步骤250中关联的应用数据等结构对象,每个对象由ID作为全网唯一关键字标识;执行命令由客户端发送给服务器,通知本方案服务器装置(集成在网管服务器中)执行。
在步骤270中,网管解析上述执行命令。
根据执行命令的属性,界面的应用数据属性找到具体哪个应用;本方案找到应用后,将该应用界面从打开到关闭的时间与预设的超期时间进行比较,如果界面没有关闭,那么时间属性设置为无穷大。
在步骤280中,将执行命令分解为执行单元。
在步骤290中,判断应用未被使用的持续时间是否超过预设的超期时间。
在步骤300中,在应用未被使用的持续时间未超过预设的超期时间的情况下,跳过该执行单元,即不执行清除缓存的操作。
在步骤310中,判断应用窗口是否为激活状态。
在步骤320中,在应用未被使用的持续时间超过预设的超期时间,并且窗口激活的情况下,将该应用线程设置为休眠。
如果超期,并且窗口处于激活状态,那么本方案将该应用启动的工作线程从线程池移除,并设置为休眠。线程休眠后,该线程占用的内存会释放掉,再启动线程时重新分配内存。
在步骤330中,在应用未被使用的持续时间超过预设的超期时间,并且窗口关闭的情况下,网管根据该执行单元清除缓存数据,释放内存。
如果超期,并且窗口处于关闭状态,那么本方案在该应用范围内,查找最下层的端口列表,将端口列表中的数据清除(clear)掉,释放数据占用内存,并将端口列表赋值为null,释放掉端口列表本身占用内存,如果数据在数据库也有保存,那么本方案调用delete sql语句,删除表数据。
向上逐级查找,找到单板列表和网元列表,如步骤330方法删除对象保存列表,释放内存。
查找应用模块本身数据列表(对应于上述的应用本身数据列表),将应用本身数据列表中的数据清空(clear),并将应用本身数据列表赋值为null。
该应用还有监听器对象,本公开将该应用涉及到的监听器对象删除(delete)。该应用还有用户界面(User Interface,UI)对象,本公开将UI对象执行破坏(destroy)操作,释放内存。
如果应用模块数据残缺不全,这种数据也不会实际应用,那么本公开做残余数据删除操作,根据数据库表主键,调用delete sql语句,删除对应的残余数据,释放占用内存。
在步骤340中,缓存清除成功。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,或者也可以通过硬件,本公开可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
在本实施例中还提供了一种清除缓存的装置,该装置用于实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。
图3是本实施例提供的清除缓存的装置的结构框图,如图3所示,该装置可以包括确定模块302和清除模块304。其中,
确定模块302,设置为确定网管系统中的应用未被使用的持续时间。
清除模块304,连接至上述确定模块302,设置为在确定上述应用未被使用的持续时间超过预设的超期时间后,清除上述应用在网管系统的内存中的缓存数据。
在一个可选的实施例中,上述清除模块304包括释放单元,设置为以下至少之一。
在确定上述应用未被使用的持续时间超过预设的超期时间且应用的窗口为激活状态的情况下,将上述应用的线程切换到后台,设置为休眠状态,并清除上述应用在网管系统的内存中的缓存数据。以及,
在确定上述应用未被使用的持续时间超过预设的超期时间且应用的窗口为关闭状态时,清除上述应用在网管系统的内存中的缓存数据。
在一个可选的实施例中,上述释放单元可以包括以下子单元。
第一查找子单元,设置为查找上述应用最下层的端口列表。
第一清空子单元,设置为清空上述端口列表中的数据以及释放端口列表占用的内存。
第二查找子单元,设置为从最下层开始向上逐级查找上述应用对应的单板列表和网元列表。
第一删除子单元,设置为删除上述应用对应的单板列表和网元列表。
第三查找子单元,设置为查找上述应用本身数据列表。以及,
第二清空子单元,设置为清空上述应用本身数据列表中的数据以及释放上述应用本身数据列表占用的内存。
在一个可选的实施例中,上述释放单元还可以包括以下至少之一。
第二删除子单元,设置为删除上述网管系统的数据库中存储的与所述端口列表中的数据对应的数据。
第三删除子单元,设置为删除用于监听上述应用的监听器对象。以及,
第四删除子单元,设置为删除用于监听上述应用的监听器对象。
在一个可选的实施例中,上述清除模块340可以包括以下单元。
封装单元,设置为根据上述应用未被使用的持续时间、应用的名称和应用的窗口的状态封装一条执行命令,其中,上述执行命令具备被所述网管系统识 别的功能。以及,
发送单元,设置为将上述执行命令发送给上述网管系统,其中,上述执行命令用于指示网管系统根据上述应用未被使用的持续时间、应用的名称和应用的窗口的状态清除应用在所述网管系统的内存中的缓存数据。
在一个可选的实施例中,上述装置还可以包括更新模块,该更新模块设置为按照更新规则更新预设的上述超期时间。
上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本公开的实施例还提供了一种计算机可读存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码。
在步骤一中,确定网管系统中的应用未被使用的持续时间。以及,
在步骤二中,在确定所述应用未被使用的持续时间超过预设的超期时间后,清除所述应用在所述网管系统的内存中的缓存数据。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述清除缓存的方法。
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
通过本实施例中的方案,一方面解决了网管缓存不能清除的问题,大大提高了网管的运行效率,提高了用户的操作体验和流畅度,相关技术中的网管缓存是不受管理的,而本实施例中的网管缓存及其占用内存可以实时管理,释放不用的内存,网管占用系统资源减少,使得网管操作和执行其他命令变快;另一方面本实施例中在清除网管缓存时可以不需要人工参与,减少了人工参与出现差错的情况,并节省了人力资源,节省了时间和沟通成本,提高了效率。
图4是本实施例提供的一种电子设备的硬件结构示意图,如图4所示,该电子设备包括:一个或多个处理器410和存储器420。图4中以一个处理器410为例。
所述电子设备还可以包括:输入装置430和输出装置440。
所述电子设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或者其他方式连接,图8中以通过总线连接为例。
输入装置430可以接收输入的数字或字符信息,输出装置440可以包括显示屏等显示设备。
存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种清除缓存的方法。
存储器420可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括随机存取存储器等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
存储器420可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器420可选包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。
输入装置430可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。
本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在一些特定情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
工业实用性
本公开可以解决网管缓存不受管理,内存不能释放,缓存占用网管内存过大,导致界面操作卡顿,操作不流畅,影响用户体验的问题,达到提高网管的运行效率,提高用户操作体验和流畅度的效果。

Claims (13)

  1. 一种清除缓存的方法,包括:
    确定网管系统中的应用未被使用的持续时间;以及,
    在确定所述应用未被使用的持续时间超过预设的超期时间后,清除所述应用在所述网管系统的内存中的缓存数据。
  2. 根据权利要求1所述的方法,其中,所述在确定所述应用未被使用的持续时间超过预设的所述超期时间后,清除所述应用在所述网管系统的内存中的缓存数据,包括以下至少之一:
    在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为激活状态时,将所述应用的线程切换到后台,设置为休眠状态,并清除所述应用在所述网管系统的内存中的缓存数据;以及,
    在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为关闭状态时,清除所述应用在所述网管系统的内存中的缓存数据。
  3. 根据权利要求2所述的方法,其中,所述清除所述应用在所述网管系统的内存中的缓存数据,包括:
    查找所述应用最下层的端口列表,并清空所述端口列表中的数据以及释放所述端口列表占用的内存;以及,
    从所述最下层开始向上逐级查找所述应用对应的单板列表和网元列表,并删除所述应用对应的单板列表和网元列表;以及
    查找所述应用本身数据列表,并清空所述应用本身数据列表中的数据以及释放所述应用本身数据列表占用的内存。
  4. 根据权利要求3所述的方法,其中,所述清除所述应用在所述网管系统的内存中的缓存数据,还包括以下至少之一:
    删除所述网管系统的数据库中存储的与所述端口列表中的数据对应的数据;
    删除用于监听所述应用的监听器对象;以及,
    删除所述应用的用户界面对象。
  5. 根据权利要求1所述的方法,其中,所述在确定所述应用未被使用的持续时间超过预设的所述超期时间后,清除所述应用在所述网管系统的内存中的缓存数据,包括:
    根据所述应用未被使用的持续时间、所述应用的名称以及所述应用的窗 口的状态封装一条执行命令,其中,所述执行命令具备被所述网管系统识别的功能;以及,
    将所述执行命令发送给所述网管系统,其中,所述执行命令设置为指示所述网管系统根据所述应用未被使用的持续时间、所述应用的名称以及所述应用的窗口的状态清除所述应用在所述网管系统的内存中的缓存数据。
  6. 根据权利要求1所述的方法,还包括:
    按照更新规则更新预设的所述超期时间。
  7. 一种清除缓存的装置,包括:
    确定模块,设置为确定网管系统中的应用未被使用的持续时间;以及,清除模块,设置为在确定所述应用未被使用的持续时间超过预设的超期时间后,清除所述应用在所述网管系统的内存中的缓存数据。
  8. 根据权利要求7所述的装置,其中,所述清除模块包括:
    释放单元,设置为以下至少之一:
    在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为激活状态时,将所述应用的线程切换到后台,设置为休眠状态,并清除所述应用在所述网管系统的内存中的缓存数据;以及,
    在确定所述应用未被使用的持续时间超过预设的所述超期时间且所述应用的窗口为关闭状态时,清除所述应用在所述网管系统的内存中的缓存数据。
  9. 根据权利要求8所述的装置,其中,所述释放单元包括:
    第一查找子单元,设置为查找所述应用最下层的端口列表;
    第一清空子单元,设置为清空所述端口列表中的数据以及释放所述端口列表占用的内存;
    第二查找子单元,设置为从所述最下层开始向上逐级查找所述应用对应的单板列表和网元列表;
    第一删除子单元,设置为删除所述应用对应的单板列表和网元列表;
    第三查找子单元,设置为查找所述应用本身数据列表;以及,
    第二清空子单元,设置为清空所述应用本身数据列表中的数据以及释放所述应用本身数据列表占用的内存。
  10. 根据权利要求9所述的装置,其中,所述释放单元还包括以下至少之一:
    第二删除子单元,设置为删除所述网管系统的数据库中存储的与所述端口列表中的数据对应的数据;
    第三删除子单元,设置为删除用于监听所述应用的监听器对象;以及,
    第四删除子单元,设置为删除用于监听所述应用的监听器对象。
  11. 根据权利要求7所述的装置,其中,所述清除模块包括:
    封装单元,设置为根据所述应用未被使用的持续时间、所述应用的名称和所述应用的窗口的状态封装一条执行命令,其中,所述执行命令具备被所述网管系统识别的功能;以及,
    发送单元,设置为将所述执行命令发送给所述网管系统,其中,所述执行命令设置为指示所述网管系统根据所述应用未被使用的持续时间、所述应用的名称和所述应用的窗口的状态清除所述应用在所述网管系统的内存中的缓存数据。
  12. 根据权利要求7所述的装置,还包括:
    更新模块,设置为按照更新规则更新预设的所述超期时间。
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。
PCT/CN2017/089375 2016-06-21 2017-06-21 清除缓存的方法及装置 WO2017219982A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610454882.8 2016-06-21
CN201610454882.8A CN107526690B (zh) 2016-06-21 2016-06-21 清除缓存的方法及装置

Publications (1)

Publication Number Publication Date
WO2017219982A1 true WO2017219982A1 (zh) 2017-12-28

Family

ID=60735347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089375 WO2017219982A1 (zh) 2016-06-21 2017-06-21 清除缓存的方法及装置

Country Status (2)

Country Link
CN (1) CN107526690B (zh)
WO (1) WO2017219982A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669706A (zh) * 2018-12-24 2019-04-23 麒麟合盛网络技术股份有限公司 应用的管理方法及装置
CN116662222A (zh) * 2022-11-22 2023-08-29 荣耀终端有限公司 缓存管理方法及相关设备
CN116737358A (zh) * 2022-10-28 2023-09-12 荣耀终端有限公司 内存刷新方法和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043238A (ja) * 2010-08-20 2012-03-01 Toyo Electric Mfg Co Ltd プログラマブルコントローラのリテインメモリ保存方法
CN103209212A (zh) * 2013-03-22 2013-07-17 烽火通信科技股份有限公司 基于RIA的Web网管客户端中的数据缓存方法及系统
CN104298612A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中清理内存的方法、装置和移动终端
CN104298549A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中应用程序的清理方法、装置和移动终端
CN104461746A (zh) * 2014-12-30 2015-03-25 中科创达软件股份有限公司 一种基于Android系统的内存空间优化方法及系统
CN104714895A (zh) * 2015-03-23 2015-06-17 努比亚技术有限公司 一种移动终端及其提高运行速度的方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008108195A (ja) * 2006-10-27 2008-05-08 Canon Inc デバイス監視システム、管理サーバ、監視装置、デバイス監視方法、記憶媒体、プログラム
CN105045723A (zh) * 2015-06-26 2015-11-11 深圳市腾讯计算机系统有限公司 一种缓存数据处理方法、装置和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043238A (ja) * 2010-08-20 2012-03-01 Toyo Electric Mfg Co Ltd プログラマブルコントローラのリテインメモリ保存方法
CN103209212A (zh) * 2013-03-22 2013-07-17 烽火通信科技股份有限公司 基于RIA的Web网管客户端中的数据缓存方法及系统
CN104298612A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中清理内存的方法、装置和移动终端
CN104298549A (zh) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 移动终端中应用程序的清理方法、装置和移动终端
CN104461746A (zh) * 2014-12-30 2015-03-25 中科创达软件股份有限公司 一种基于Android系统的内存空间优化方法及系统
CN104714895A (zh) * 2015-03-23 2015-06-17 努比亚技术有限公司 一种移动终端及其提高运行速度的方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669706A (zh) * 2018-12-24 2019-04-23 麒麟合盛网络技术股份有限公司 应用的管理方法及装置
CN116737358A (zh) * 2022-10-28 2023-09-12 荣耀终端有限公司 内存刷新方法和电子设备
CN116737358B (zh) * 2022-10-28 2024-05-17 荣耀终端有限公司 内存刷新方法和电子设备
CN116662222A (zh) * 2022-11-22 2023-08-29 荣耀终端有限公司 缓存管理方法及相关设备

Also Published As

Publication number Publication date
CN107526690B (zh) 2022-12-02
CN107526690A (zh) 2017-12-29

Similar Documents

Publication Publication Date Title
JP6755325B2 (ja) 状態制御方法及び装置
CN105074698B (zh) 并行地执行连续事件处理(cep)查询
CN107104824B (zh) 一种网络拓扑确定方法和装置
CN102571420B (zh) 一种网元数据管理方法及系统
TW201703485A (zh) 編排實體與虛擬交換器以執行安全邊界之系統及方法
Bollapragada et al. Inside cisco ios software architecture
US11361027B2 (en) Historical state management in databases
WO2017219982A1 (zh) 清除缓存的方法及装置
CN108123820A (zh) 一种网络设备信息采集方法和装置
CN107797859B (zh) 一种定时任务的调度方法及一种调度服务器
CN103595566A (zh) 一种检测空闲ip地址的方法及装置
CN106302638B (zh) 一种数据管理方法、转发设备及系统
US20220358108A1 (en) Historical graph database
CN115039385A (zh) 可配置的物联网通信系统
US11012542B2 (en) Data processing method and apparatus
US8224933B2 (en) Method and apparatus for case-based service composition
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
US10693705B2 (en) Show command service aka CLI relay
CN115002028B (zh) 一种报文处理方法、装置及介质
JP2018517994A (ja) アラートを解除する方法及びサーバー
CN115118615A (zh) 一种网络监控数据处理方法及装置
CN111400060B (zh) 设备联动方法、装置、服务器和介质
WO2017028554A1 (zh) 一种信息防骚扰实现方法及系统
WO2017001916A1 (en) System and method for reacquiring a running service after restarting a configurable platform instance
CN110764882A (zh) 分布式管理方法、分布式管理系统及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17814720

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17814720

Country of ref document: EP

Kind code of ref document: A1