`
can_do
  • 浏览: 248530 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Java运行环境检查:IO、Internet、network

阅读更多
Java运行环境检查:IO、Internet、network等:
*************************************
1、测试互联网速度,可以用【speedtest-cli-0.2.4.tar.gz】
2、测试磁盘IO速率,可以用【Apollo】
*************************************
可以通过Apollo进行磁盘benchmark的测试==>
tar -zxvf ./apache-apollo-1.6-unix-distro.tar.gz

#./apollo disk-benchmark
Benchmark using data file: /opt/eMQ/apache-apollo-1.6/bin/disk-benchmark.dat
Pre-allocating data file of size: 3922896KiB
Warming up... writing async 500MiB so that async writes don't have that much of an advantage due to the OS write cache.
Benchmarking async writes
Syncing previous writes before measuring sync write performance.. (might take a while if your OS has a big write cache)
Benchmarking sync writes
Benchmarking reads
Closing.
Async writes:
  278813 writes of size 4096 written in 31.579 seconds.
  8829.063 writes/second.
  34.48853 megs/second.

Sync writes:
  126 writes of size 4096 written in 30.095 seconds.
  4.1867423 writes/second.
  0.016354462 megs/second.

Reads:
  593652 reads of size 4096 read in 30.048 seconds.
  19756.79 writes/second.
  77.17496 megs/second.
**********************************************************
# ./speedtest_cli.py
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from China Telecom Guangdong (106.120.122.133)...
Selecting best server based on ping...
Hosted by Capital Online Data Service (Beijing) [1.69 km]: 28.69 ms
Testing download speed........................................
Download: 4.84 Mbit/s
Testing upload speed..................................................
Upload: 3.30 Mbit/s
********************************************************************
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics