Re: memory_get_usage with new Memory Manager

From: Date: Thu, 27 Jul 2006 17:23:14 +0000
Subject: Re: memory_get_usage with new Memory Manager
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-25018@lists.php.net to get a copy of this message
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 =)

« previous php.internals (#25018) next »