PHP memory usage

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm making C++ evaluator, and I'm trying to control memory
usage of C++ script after running on server .How can I get memory
usage of some "program" in PHP?
Examples please.

Re: PHP memory usage wrote:
Quoted text here. Click to load it

You can't get it directly in PHP.  You'll have to use some system
utility, a COM object (on Windows), write a PHP extension, etc.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: PHP memory usage

In article wrote:

Quoted text here. Click to load it

Since php isn't compiled, my SWAG would be with some supervisor program
that watches the life the process that's running your script.  If it's
running under Apache, I'd say you're SOL then.  Buy a crystal ball and
ask it.  You'll get about the same results.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]

Re: PHP memory usage

On 19 Dec, 21:07, wrote:
Quoted text here. Click to load it

memory_get_usage()? Did you RTFM?


Site Timeline