简体   繁体   中英

Java latency and bandwidth measure from client to the server

有没有一种方法可以编写Java客户端代码来测量任何服务器的延迟和带宽?

If you want to do a literal ping (to measure latency) you can use a library like icmp4j .

For bandwidth it's not as simple because the server would have to be sending you data that you can measure, eg a large file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM