How to track network usage of a particular interface in Java?

I want to know the exact amount of data that is transmitted through a specific network interface for logging purposes, is there any standard library or api call from which I can do this using cross platfrom?

+3
source share
3 answers

SNMP4J allows you to read the mib interface of any SNMP-compatible device. Linux and OSX (possibly) already have an SNMP daemon; Windows has an SNMP service that you can install through programs and features in Control Panel .

0

, . , , : http://jnetpcap.com/

edit: , libpcap -, lib , -, , .

+2

jNetPcap Sigar . Sigar " ", , . NetInterfaceStat.

, Sigar JNI, .. Rob H - .

+1

Source: https://habr.com/ru/post/1720798/


All Articles