惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

Neuman’s blog

Menghaoran Dns Vs Whois How To Download Video From Website 长度与宽度 依赖于第三方服务的场景要怎么测试 Gui测试之图片识别 别做拒绝成长的苹果树 Spring Boot Test Zookeeper
如何去消耗服务端资源
Neuman's blog · 2018-04-18 · via Neuman’s blog

本篇文章主要记录消耗服务端资源的方法,可以当作性能测试的一部分。

首先我们大致列出服务端资源都有什么: 网络宽带,内存,CPU,文件句句柄,socket连接,mysql连接数,redis缓存,发送邮件,发送短信验证码

如何占用宽带?

设置网卡流量限速

如何占用socket资源

ddos攻击,例如syn泛洪攻击

如何保持http连接占用?

你是否还记得当初的slowhttptest?今天突然想到了她,眼泪不自觉的流了下来

https://null-byte.wonderhowto.com/how-to/dos-using-slowhttptest-0159548/

你是否还记得小巧强悍的性能测试工具wrk

./wrk -t4 -c1001 -d30s $url

如何保持mysql连接占用?

用户在转账时候数据库连接数满了 比如你想模拟数据库资源被占满的情况,那么你就可以使用jdbc执行sql但是不close. 例如使用jdbc不close就会占用连接。