当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 我这个vps出了什么问题?
帖子发表于 : 2017-05-27 9:19 

注册: 2016-07-08 17:43
帖子: 87
系统: debian8
送出感谢: 12
接收感谢: 0 次
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的定义里面并没有说一定要/结尾,一般都是没有结尾的/ ,请问,这样设计的理由是什么?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 我这个vps出了什么问题?
帖子发表于 : 2017-05-27 10:21 

注册: 2009-08-04 16:33
帖子: 16898
送出感谢: 21
接收感谢: 1829
引用:
测试很多次,都是这个结果 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.


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译