Jul 232011
Check the amount of memory used by PHP
Answer:
To check the amount of memory used by PHP process, use the function - memory_get_usage
E.g.
// Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.
echo memory_get_usage();