2

I need a way to the used memory of a current tmux session. I am not sure if that is even possible. I am using tmux to start multiple minecraft servers I'd like to know each servers memory usage.

  • 1
    tmux and minecraft are separate programs, and will have different memory usage. You can get (an upper bound) of their memory use with ps (as well as various system-specific tools). – Thomas Dickey Feb 6 '16 at 23:35
0

I recommend you to run pgrep server_binary to know the PID of each instance and then top -p PIDs to know all virtual memory, resident memory and shared memory used by each bash instance.

Example

#know PID of each bash instance
> pgrep bash
4301
4420
4426
4432
4438
4444
4450
4456

#list all resources used by each instance
> top -p 4301,4420,4426,4432,4438,4444,4450,4456

top example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.