$pid = getmypid();
this returns process ID for my PHP script - how do i determine whats the memory taken by this apache process ?
since we run into chrooted environment ps wont work
I must find this from PHP script (the goal is to have some logic within shutdown function that will check if process uses more than specified memory - it should be terminated)
let me know