Hi folks, long time no see
anyone know of a php function similar to
disk_total_space and disk_free_space
but give of results for memory (ram) usage
Thanks a million sheephat
[man]memory_get_usage/man [man]memory_get_peak_usage/man
there are also OS specific ways of doing this, OS peak is usually more than php itself reports (at least on my servers)
isnt that the usage by php
i was looking for the total free and used much like what you get in #top
or mem
sheephat;10954901 wrote:isnt that the usage by php i was looking for the total free and used much like what you get in #top or mem
I'm not aware of any such built-in PHP command, so you may have to use one of the system/exec type commands to run an OS command line command. And then you have to figure out what you really need to know: actual physical RAM memory, or total RAM including logical RAM using disk-swapping.