【问题标题】:How can I track how much data my Python program is sending / receiving over the network?如何跟踪我的 Python 程序通过网络发送/接收的数据量?
【发布时间】:2013-11-04 04:14:25
【问题描述】:

我有一个查询多个远程服务(MongoDB、MySQL 等)的 Python 程序。有没有办法跟踪我的程序在 Python 程序中或通过某些 Linux 实用程序通过网络传输了多少数据?

【问题讨论】:

    标签: python networking monitoring


    【解决方案1】:

    在 python 中,您可能必须包装东西 - 这可能有点挑战。

    在 Linux 中,netstat 程序可能会做一些至少与您想要的事情相关的事情。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-06
      • 2020-09-29
      • 2016-09-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多