-1

Is it possible to check which php script is consuming maximum memory, through linux?

Bhavik Shah
  • 2,300
  • 1
  • 17
  • 32
Manish Goyal
  • 700
  • 1
  • 7
  • 17
  • 1
    http://stackoverflow.com/questions/255941/tools-to-visually-analyze-memory-usage-of-a-php-app Does that help ? – crafter Nov 21 '13 at 05:20

1 Answers1

0

find out the pid of given process such as firefox:

$ ps aux | grep [f]irefox

Use the cat command or grep command to see /proc/meminfo file:

$ cat /proc/meminfo
$ less /proc/meminfo
$ more /proc/meminfo
$ egrep --color 'Mem|Cache|Swap' /proc/meminfo

free command

To display free memory size in MB (megabytes):

$ free -m
Siraj Khan
  • 2,328
  • 17
  • 18