RammusXu / rammusxu.github.io

My profile
https://rammusxu.github.io/
2 stars 0 forks source link

伺服器壓力測試 #45

Closed RammusXu closed 7 years ago

RammusXu commented 8 years ago

ApacheBench

安裝 Mac: brew install ab

CentOS: sudo yum install httpd-tools

Reference

Post json : https://varunver.wordpress.com/2014/05/07/jmeter-posting-json-to-api/

default
RammusXu commented 8 years ago

TroubleShooting

[ec2-user@ip-10-0-0-200 ~]$ ab -c 50000 -n 100000 http://localhost:8080/log/notifications
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
socket: Too many open files (24)

MacOSX上ab并发测试常见报错及解决办法

RammusXu commented 8 years ago

ab -A admin:changeit -n 10 -c 10 http://10.0.0.200:8080/testdb/testcoll