Skip to main content
10 is the default
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

This will show you top 10 process that using the most memory:

ps aux --sort=-%mem | head -n 10

Using top: when you open top, pressing m will sort processes based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. So the files you opened will eating the memory too. So this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 10 process that using the most memory:

ps aux --sort=-%mem | head -n 10

Using top: when you open top, pressing m will sort processes based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. So the files you opened will eating the memory too. So this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 10 process that using the most memory:

ps aux --sort=-%mem | head

Using top: when you open top, pressing m will sort processes based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. So the files you opened will eating the memory too. So this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

incorporate good advise from comment.
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

This will show you top 910 process that using the most memory:

ps aux --sort=-%mem | head -n 10

Using toptop: when you opened top pressopen mtop, pressing m will short processsort processes based on memory usage.
 

But this will not solve your problem, in Linux everything is either file or process. soSo the files you opened will eating the memory too. soSo this will not help.
 

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 9 process that using the most memory:

ps aux --sort=-%mem | head

Using top: when you opened top press m will short process based on memory usage.
 

But this will not solve your problem, in Linux everything is either file or process. so the files you opened will eating the memory too. so this will not help.
 

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 10 process that using the most memory:

ps aux --sort=-%mem | head -n 10

Using top: when you open top, pressing m will sort processes based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. So the files you opened will eating the memory too. So this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 109 process that using the most memory:

ps aux --sort=-%mem | awk 'NR<=10{print $0}'head

usingUsing top: when you opened top press m will short process based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. so the files you opened will eating the memory too. so this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 10 process that using the most memory:

ps aux --sort=-%mem | awk 'NR<=10{print $0}'

using top: when you opened top press m will short process based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. so the files you opened will eating the memory too. so this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

This will show you top 9 process that using the most memory:

ps aux --sort=-%mem | head

Using top: when you opened top press m will short process based on memory usage.

But this will not solve your problem, in Linux everything is either file or process. so the files you opened will eating the memory too. so this will not help.

lsof will give you all opened files with the size of the file or the file offset in bytes.

grammar
Source Link
Tom Hale
  • 33.3k
  • 42
  • 163
  • 257
Loading
added 1 character in body
Source Link
Hackaholic
  • 2.2k
  • 1
  • 12
  • 11
Loading
added 111 characters in body
Source Link
Hackaholic
  • 2.2k
  • 1
  • 12
  • 11
Loading
Source Link
Hackaholic
  • 2.2k
  • 1
  • 12
  • 11
Loading