Yes, hosting providers would enable the memory limit. But who wants to use
memory_get_[peak_]usage()? Not the hosting provider, but the application
developer.

We have some process, that if cache has gotten stale and needs to be recreated, the process can use 100MB or memory. We don't want to cap it. However, we do want to know about it and use apahce_child_terminate() to end that process. Right now, I have to actually read /proc to figure out my memory usage. I would much rather have a function. I guess I could enable a memory limit and set to like 1GB. Seems silly though.

--

Brian Moon
-------------
http://dealnews.com/
Its good to be cheap =)

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to