---
# System prepended metadata

title: '龍捲風壓測案例 [完整版]'

---

# 龍捲風壓測案例 [完整版]

`2021-06-04 Sol Lin`

## 測試環境規格

`CPU` 3核心3線程 
`RAM` 16GB

![](https://i.imgur.com/RrbUETL.png)

![](https://i.imgur.com/zGrVJ8a.png)


## 測試搜尋項目

POST 
```
http://10.190.173.147:8080/web/P2PServer.jsp
```

表單參數
```
action:search
txtInput_json:{"query_type":"keyword","keyword":"測試","target_db":["S6KBIndex"],"search_mode":{"search_mode":"normal"},"field_filter":{"and":[{"field":"ao_sid","condition":15},{"field":"ft_sid_list","condition":",11641, | ,10910, | ,11541, | ,11147, | ,11382, | ,11299, | ,11224, | ,11029, | ,10990, | ,10792, | ,10841, | ,9896, | ,9915, | ,322, | ,9912, | ,9083, | ,9929, | ,306, | ,9917, | ,9875, | ,9924, | ,9928, | ,9888, | ,6113, | ,10493, | ,10495, | ,10911, | ,11039, | ,10870, | ,11353, | ,325, | ,309, | ,7104, | ,310, | ,9920, | ,307, | ,312, | ,313, | ,317, | ,318, | ,319, | ,10505, | ,9286, | ,9295, | ,9320, | ,9314, | ,9383, | ,9680, | ,9296, | ,9322, | ,9311, | ,9409, | ,9315, | ,9340, | ,9876, | ,9877, | ,9878, | ,9879, | ,9892, | ,9885, | ,9883, | ,9890, | ,9889, | ,10479, | ,9919, | ,10430, | ,9894, | ,9897, | ,9898, | ,9899, | ,9900, | ,9901, | ,9902, | ,9913, | ,10422, | ,9932, | ,10423, | ,10424, | ,10425, | ,10426, | ,9916, | ,10470, | ,10428, | ,10427, | ,10429, | ,10471, | ,10472, | ,10474, | ,10475, | ,9882, | ,9930, | ,9931, | ,10491, | ,9886, | ,10467, | ,10482, | ,11223, | ,10481, | ,10846, | ,10847, | ,10480, | ,10848, | ,10944, | ,10489, | ,10490, | ,10492, | ,11010, | ,10874, | ,10873, | ,11231, | ,11143, | ,11137, | ,11138, | ,11024, | ,10993, | ,10995, | ,10994, | ,11009, | ,11225, | ,11228, | ,11227, | ,11226, | ,11234, | ,11354, | ,11373, | ,11375, | ,11355, | ,11358, | ,11360, | ,11362, | ,11356, | ,11357, | ,11359, | ,11361, | ,11363, | ,11364, | ,11365, | ,11366, | ,11367, | ,11368, | ,11369, | ,11370, | ,11371, | ,11374, | ,11380, | ,11381, | ,11376, | ,11378, | ,11379, | ,11377,"},{"field":"fan_sid","condition":"0;16;17;58"}]},"search_range":{"start_pos":0,"max_record":2147483647},"group_field":"fq_sid","result_field":["fq_sid","_hit_num"]}
```

## 初始5人,每10秒增加5人,持續1分鐘 (成功)


### 壓測結果

![](https://i.imgur.com/KPD4tSf.png)

![](https://i.imgur.com/oWCRuci.png)

![](https://i.imgur.com/uBYnxHg.png)

### 圖表分析

![](https://i.imgur.com/kaOz1Bb.png)


20秒以後 回應時間驟增
40秒以後 開始下降

平均頁面時間6秒
1分鐘內共執行了 360次 



## 初始30人持續1分鐘 (成功)

### 壓測結果

![](https://i.imgur.com/zYiWv3T.png)

![](https://i.imgur.com/AVK7nNy.png)

![](https://i.imgur.com/MvhDpip.png)

### 圖表分析

![](https://i.imgur.com/GMs0ETf.png)

起初頁面回應時間略長
接著慢慢降低至約莫4秒

平均頁面時間4.15秒
1分鐘內共執行了 414次


## 初始10人每10秒加10人持續1分鐘 (失敗)

### 壓測結果

![](https://i.imgur.com/nwEFH0f.png)

![](https://i.imgur.com/s5DusSI.png)

![](https://i.imgur.com/FTbKLww.png)


### 圖表分析

![](https://i.imgur.com/1mzkssu.png)

起初10秒

### CPU 監控分析

開始後CPU直接飆至100%
![](https://i.imgur.com/9p2U1yX.png)



跑完測試後 1 分鐘 CPU效能依然沒有下降
![](https://i.imgur.com/g19OD4z.png)

此問題造成`搜尋功能` 無法正常運作
