作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (24): 78-80. doi: 10.3969/j.issn.1000-3428.2009.24.026

• 软件技术与数据库 • 上一篇    下一篇

基于过滤器的垃圾Session数据清除器设计

罗作民1,朱 燕1,张静颐2,李 兵1   

  1. (1. 西安理工大学计算机科学与工程学院,西安 710048;2. 空军工程大学计算机科学与工程学院,西安 710082)

  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-12-20 发布日期:2009-12-20

Design of Rubbish Session Data Eliminator Based on Filter

LUO Zuo-min1, ZHU Yan1, ZHANG Jing-yi2, LI Bing1   

  1. (1. School of Computer Science and Engineering, Xi’an University of Technology, Xi’an 710048; 2. School of Computer Science and Engineering, Air Force Engineering University, Xi’an 710082)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-12-20 Published:2009-12-20

摘要: 针对某电信业务中多个业务操作切换产生大量Session数据不能被及时清除而导致系统性能瓶颈的问题,设计和实现一个基于Servlet过滤器的Session数据清除器,由管理器和过滤器构成。管理器创建对象存储域、保存业务Session数据对象副本,过滤器检查对象存储域、清除垃圾Session数据。通过压力测试验证该Session数据清除器的有效性,将其运用于实际环境中,也取得了较好的效果。

关键词: 数据清除, Session对象, Servlet过滤器, 存储域

Abstract: Aiming at the problem that the system performance bottle-neck caused by a large number of Session data failing to be eliminated in time occurred in the telecom business switching among a number of operations, this paper designs and realizes a Session eliminator based on Servlet filter, which is composed of the Session manager and Session filter. The Session manager can create an object storage area and save the copy of the business Session object. The Session filter is used to check the object storage area and eliminate the rubbish Session data. The validity of this method is proved by pressure test. The method is used in actual environment and achieves success.

Key words: data eliminating, Session object, Servlet filter, storage area

中图分类号: