Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 232011

Check the amount of memory used by PHP


To check the amount of memory used by PHP process, use the function - memory_get_usage


// Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.
echo memory_get_usage(); 

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>