Is there a way, on Redhat Linux, to determine the total amount of "real" memory that is being allocated to the send buffers for all currently connected sockets? I am troubleshooting a potential memory leak in a Java project, and am curious how send buffer size settings in my code translate to actual memory used by those buffers. Thanks for any help!
You might want to see that:
And please note lsof
SIZE: The size of the file or the file offset, in bytes. (If available.) In the case of files that don’t have true sizes (eg., sockets, pipes), lsof displays the size of the content their kernel buffer descriptors.