<div dir="ltr">Hi,<div><br></div><div>I've searched through the various mailing lists, but couldn't find a suitable one so I'm posting it here.</div><div><br></div><div>I would like to have the ability to know from an application the current network usage and limit (relative to host or cgroup).</div><div><br></div><div>I have seen the class  <span style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"JetBrains Mono",monospace;font-size:9.8pt">OperatingSystemMXBean</span> that is provided by the JDK. I was wondering if the idea of adding that information to this bean has been considered in the past.</div><div><br></div><div>Currently, the best option I found, which is operating system-specific code, is to use the <span style="color:rgb(106,135,89);background-color:rgb(43,43,43);font-family:"JetBrains Mono",monospace;font-size:9.8pt">/sys/class/net/</span> files.</div><div><br></div><div>Thanks,</div><div><br></div><div>Asaf</div><div><br></div></div>