一种基于深度学习日志分析模型的压力测试算法
A Stress Testing Algorithm Based on Deep Learning Log Analysis Model
摘要: 软件新系统上线前,常常需要对生产运行的系统开展压力测试,以规避系统因突发巨量客户端访问或生产过程中多用户集中操作,而出现报错及系统崩溃等严重问题。本文提出了一种基于深度学习日志分析模型的压力测试算法,该算法基于现有生产日志数据创建双向长短期记忆循环神经网络(Bi-LSTM)的分析模型,搭建并预测基于生产日志规律的闭环测试场景,模拟预测生产环境的理论测试场景,作为传统基于规则压力测试方法的补充。实验结果表明,使用本文所提双向LSTM分析模型可以有效地模拟生产日志的规律,使得压力测试更贴近真实场景,能有效观察系统运行状况,多维度了解系统性能的极限和缺陷。
Abstract:
Before launching a new software system, stress testing on the production-environment system is necessary. It could avoid serious problems such as system errors and system crashes caused by sudden massive client access or concurrent operations by multiple users during the production process. This paper proposes a deep learning log analysis model-based stress testing algorithm. The algorithm first creates a bi-directional long and short-term memory recurrent neural network (Bi-LSTM) analysis model based on existing production log data, then builds and predicts a closed-loop test scenario based on production log patterns, and finally simulates a theoretical test scenario of the production environment. This method can be served as a supplement to the traditional rule-based stress testing method. The experimental results show that using the proposed bi-directional LSTM analysis model in this paper can effectively simulate the pattern of production logs, which makes the stress testing closer to the real scenario. In this case, developers can effectively observe the system operation condition and understand the limits and defects of the system performance in multiple dimensions.
参考文献
|
[1]
|
王宏. 基于最小业务单元的Web系统性能测试调优[J]. 信息技术与信息化, 2020(1): 25-27.
|
|
[2]
|
朱靖君, 吴海燕, 高国柱, 程志锐. 一种基于日志分析的Web负载测试方法[J]. 计算机工程, 2010, 36(23): 25-27.
|
|
[3]
|
张世瑛, 梁晔华. 商业银行大数据性能容量测试探索与实践[J]. 中国金融电脑, 2022(1): 91-94.
|
|
[4]
|
冯瑶, 孙骏亚, 刘跃光, 王智忠. 基于交易日志的自动化测试技术在功能测试中的应用[J]. 中国金融电脑, 2018(11): 55-56.
|
|
[5]
|
钟雅, 郭渊博. 基于机器学习的日志解析系统设计与实现[J]. 计算机应用, 2018, 38(2): 352-356.
|
|
[6]
|
闫力, 夏伟. 基于机器学习的日志异常检测综述[J]. 计算机系统应用, 2022, 31(9): 57-69.
|
|
[7]
|
尹慧, 花嵘, 郭宁, 尹韬. 基于深度学习的分布式安全日志分析方法[J]. 软件, 2020, 41(3): 272-277.
|
|
[8]
|
张忠浩, 张磊, 肖莎, 赵鹏, 雷大洋, 刘赛. 基于深度学习的数据中心日志分析方法设计与实现[J]. 电力信息与通信技术, 2021, 19(11): 39-43. [Google Scholar] [CrossRef]
|
|
[9]
|
杨朝鹏, 林业贵, 罗飞鹏. 基于日志的机器学习方法实现故障快速定界的研究与应用[J]. 邮电设计技术, 2018(12): 23-26.
|
|
[10]
|
熊逸文, 项菲, 苗杰. 基于机器学习算法匹配的互联网企业内容日志检测工具的设计与实现[J]. 江苏通信, 2022, 38(3): 97-100+124.
|
|
[11]
|
黄文博, 王祎珺, 陈佩佩, 汪立欣. 一种基于机器学习的日志预警发现方法[J]. 中国科技信息, 2019(19): 78-79.
|