我这个vps出了什么问题?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
whaha
帖子: 104
注册时间: 2016-07-08 17:43
系统: debian8

我这个vps出了什么问题?

#1

帖子 whaha » 2017-05-27 9:19

ab -n 500 -k -c 50 http://www.mynet/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.mynet (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests

Server Software: Apache/2.4.6
Server Hostname: www.mynet
Server Port: 80

Document Path: /Document Length: 0 bytes

Concurrency Level: 50
Time taken for tests: 65.799 seconds
Complete requests: 500
Failed requests: 0
Non-2xx responses: 500
Keep-Alive requests: 0
Total transferred: 123500 bytes
HTML transferred: 0 bytes
Requests per second: 7.60 [#/sec] (mean)
Time per request: 6579.858 [ms] (mean)
Time per request: 131.597 [ms] (mean, across all concurrent requests)
Transfer rate: 1.83 [Kbytes/sec] received

测试很多次,都是这个结果 Requests per second: 7.60 --9 [#/sec] (mean)
我的vps供应商是否对我的vps进行了设定,只允许每秒实现8次左右的请求?
我在上面架了个wordpress.
这种性能,太差了吧?
有办法改善吗?
域名用 www.mynet 替代了

还有个问题
ab -n 500 -k -c 50 http://www.mynet/
ab命令中url必须表达成 http://www.mynet/,以/结尾。
url的定义里面并没有说一定要/结尾,一般都是没有结尾的/ ,请问,这样设计的理由是什么?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 我这个vps出了什么问题?

#2

帖子 poloshiao » 2017-05-27 10:21

测试很多次,都是这个结果 Requests per second: 7.60 --9 [#/sec] (mean)
我的vps供应商是否对我的vps进行了设定,只允许每秒实现8次左右的请求?
1. 建議 向 vps 供应商 客服人員詢問
还有个问题
ab -n 500 -k -c 50 http://www.mynet/
ab命令中url必须表达成 http://www.mynet/,以/结尾。
url的定义里面并没有说一定要/结尾,一般都是没有结尾的/
2. 结尾有 / 跟 沒有 / 意思不同
2-1. https://www.thoughtco.com/urls-ending-w ... sh-3466509
Why Do URLs Often End With a Slash?

3. 如果你不希望 你的網站資料夾內容被曝光在網際網路上 加上一個 index.xxxx 檔案在該資料夾
3-1. index.xxxx 優先順序 參見 DirectoryIndex
https://help.ubuntu.com/16.04/serverguide/httpd.html
The DirectoryIndex is the default page served by the server when a user requests an index of a directory by specifying a forward slash (/) at the end of the directory name.
回复