Knowee
Questions
Features
Study Tools

18. What is the command to find maximum memory taking process on the server?

Question

  1. What is the command to find maximum memory taking process on the server?
🧐 Not the exact question you are looking for?Go ask a question

Solution

To find the maximum memory taking process on a server, you can use the 'ps' command in Unix/Linux systems. Here are the steps:

  1. Open your terminal.

  2. Type in the following command:

ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head

This command will do the following:

  • 'ps' is the process status command.
  • '-eo' option allows you to specify the output format.
  • 'pid,ppid,cmd,%mem,%cpu' are the fields we want to display: process ID, parent process ID, command, memory usage, and CPU usage.
  • '--sort=-%mem' sorts the processes by memory usage in descending order.
  • 'head' displays only the first few lines of output, which by default is the top 10.

The process at the top of the list after running this command is the one taking the most memory on your server.

This problem has been solved

Similar Questions

You want to list all running processes on your system, sorted by memory usage in descending order. Which command will achieve this?1.0 Marksfree -m | sort -r -k 2ps aux | sort -n -k 4top -mhtop --sort-memoryps -e | sort -r -k 5

What’s the actual physical memory consumed by the process representing the redis-server in the top command screenshot provided earlier?

20. What is the command to find the currently running process in Unix Server?

21. What is the command to find remaining disk space in UNIX server?

How can you tell the maximum amount of memory a motherboard can support?This type of question contains radio buttons and checkboxes for selection of options. Use Tab for navigation and Enter or space to select the option.optionALook at the memory options in BIOS/UEFI.optionBLook at the motherboard documentation.optionCUse the Windows Memory tool.optionDUse the Windows Task Manager > Performance tab.

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.