博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
网站性能测试
阅读量:5928 次
发布时间:2019-06-19

本文共 2276 字,大约阅读时间需要 7 分钟。

RHEL6.5

---查看服务器的内存:

[root@linuxcast /]# free -m

             total       used       free     shared    buffers     cached

Mem:          1870       1794         76          0         62        862

-/+ buffers/cache:        868       1001

Swap:         4095          0       4095

---查看服务器cpu信息

[root@linuxcast /]# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                1

On-line CPU(s) list:   0

Thread(s) per core:    1

Core(s) per socket:    1

Socket(s):             1

NUMA node(s):          1

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 58

Stepping:              9

CPU MHz:               3569.820

BogoMIPS:              7139.64

Hypervisor vendor:     VMware

Virtualization type:   full

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              8192K

NUMA node0 CPU(s):     0

---查看服务器的磁盘读写性能

[root@linuxcast /]# hdparm -t /dev/sda

/dev/sda:

 Timing buffered disk reads: 1952 MB in  3.00 seconds = 649.96 MB/sec

---对网站的首页进行压力测试

[root@linuxcast /]# ab -c 10 -n 1000 http://linuxcast.net/linuxcast/index.php

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 linuxcast.net (be patient)

Completed 100 requests

Completed 200 requests

Completed 300 requests

Completed 400 requests

Completed 500 requests

Completed 600 requests

Completed 700 requests

Completed 800 requests

Completed 900 requests

Completed 1000 requests

Finished 1000 requests

Server Software:        Apache/2.2.15

Server Hostname:        linuxcast.net

Server Port:            80

Document Path:          /linuxcast/index.php

Document Length:        0 bytes

Concurrency Level:      10

Time taken for tests:   96.102 seconds

Complete requests:      1000

Failed requests:        0

Write errors:           0

Non-2xx responses:      1000

Total transferred:      313000 bytes

HTML transferred:       0 bytes

Requests per second:    10.41 [#/sec] (mean)

Time per request:       961.021 [ms] (mean)

Time per request:       96.102 [ms] (mean, across all concurrent requests)

Transfer rate:          3.18 [Kbytes/sec] received

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   1.2      0      17

Processing:   463  959  60.5    958    1883

Waiting:      463  956  59.8    953    1883

Total:        463  959  60.8    958    1900

Percentage of the requests served within a certain time (ms)

  50%    958

  66%    974

  75%    979

  80%    981

  90%    990

  95%   1000

  98%   1029

  99%   1076

 100%   1900 (longest request)

[root@linuxcast /]# 

本文转自 murongqingqqq  51CTO博客,原文链接:http://blog.51cto.com/murongqingqqq/1536536

转载地址:http://rzrvx.baihongyu.com/

你可能感兴趣的文章
xshell 通过ssh连接 ubuntu15_x64
查看>>
mysql 2013错误解决
查看>>
Windows Server 2012 存储去重
查看>>
SQL/LINQ/Lamda 写法[转发]
查看>>
25.3. UUID()
查看>>
Hadoop - Mac OSX下配置和启动hadoop以及常见错误解决
查看>>
UIPassValue页面传值&amp;nbsp;UI_08(下)
查看>>
[译] 人人都是设计师。我们可以的
查看>>
typeof、instanceof、constructor...
查看>>
ES6 数组去重,求交并差集
查看>>
Unity开篇
查看>>
移动终端高级开发工程师
查看>>
LVM的创建和管理
查看>>
我的友情链接
查看>>
Docker镜像保存为文件及从本地文件导入镜像的方法
查看>>
告警系统主脚本、配置文件及监控项目
查看>>
快速定位线上 Node.js 内存泄漏问题
查看>>
LVS+keepalived
查看>>
2012年HTML5的14个大胆预言
查看>>
VM中CentOS7本地配置yum源方法
查看>>