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

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(); 

 Leave a Reply

(required)

(required)

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>