Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ab tool stress test. And check the web service to troubleshoot the problem accordingly

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

First install the Ab tool: (install it separately)-- do not install the web server

Mkdir / opt/ab & & cd / opt/ab

Yum install yum-utils.noarch

Yumdownloader httpd-tools*

Rpm2cpio httpd-*.rpm | cpio-idmv

Test:

/ opt/ab/usr/bin/ab-N100-c10 http://192.168.1.200/index.php

-n100 (indicates that the total number of requests is 100)

-c10 (number of concurrent users 10)

The web server checked the information.

You can check nginx's log log: you will get 100 request IP addresses here, so you will know which addresses are frequently connected to the server.

# cat / opt/app/nginx/logs/access.log | awk'{print $1}'| grep 192.168.1.201 | wc-l

one hundred

The php log can see the latest developments, such as threads exceeding the maximum, etc.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report