Bluehost.com Web Hosting $6.95

memory consumption from a script

This is a discussion on memory consumption from a script within the PHP General forums, part of the PHP Programming Forums category; Hello is it possible to find out the memory consumption on a php script ? I trie to develop a chat ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-27-2003
Torsten Rosenberger
 
Posts: n/a
Default memory consumption from a script

Hello

is it possible to find out the memory consumption on a php script ?
I trie to develop a chat with php and SHM and want to fiend out how
much memory is used to scale the chat server


BR/Torsten

Reply With Quote
  #2 (permalink)  
Old 07-27-2003
John W. Holmes
 
Posts: n/a
Default Re: [PHP] memory consumption from a script

Torsten Rosenberger wrote:
> is it possible to find out the memory consumption on a php script ?
> I trie to develop a chat with php and SHM and want to fiend out how
> much memory is used to scale the chat server


No, not now. I seem to remember talk about a function that would help
with this being available in PHP5, but I can't find anything in the
documentation.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com




Reply With Quote
  #3 (permalink)  
Old 07-27-2003
Peter James
 
Posts: n/a
Default Re: [PHP] memory consumption from a script

A while ago, Philip Olson wrote:

> As of 4.3.2, if you compile PHP with --enable-memory-limit
> you may use memory_get_usage(). This is documented and
> will show up when the next PHP manual is built.


This function is not documented in the PHP manual, but is in the zend copy:

http://www.zend.com/manual/function....-get-usage.php

HTH.
Pete.

--
Peter James
petej@phparch.com

php|architect
The Magazine for PHP Professionals
http://www.phparch.com


----- Original Message -----
From: "John W. Holmes" <holmes072000@charter.net>
To: "Torsten Rosenberger" <rosenberger@taoweb.at>
Cc: <php-general@lists.php.net>
Sent: Sunday, July 27, 2003 7:39 AM
Subject: Re: [php] memory consumption from a script


> Torsten Rosenberger wrote:
> > is it possible to find out the memory consumption on a php script ?
> > I trie to develop a chat with php and SHM and want to fiend out how
> > much memory is used to scale the chat server

>
> No, not now. I seem to remember talk about a function that would help
> with this being available in PHP5, but I can't find anything in the
> documentation.
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> PHP|Architect: A magazine for PHP Professionals – www.phparch.com
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


Reply With Quote
  #4 (permalink)  
Old 07-27-2003
John W. Holmes
 
Posts: n/a
Default Re: [PHP] memory consumption from a script

Peter James wrote:
> A while ago, Philip Olson wrote:
>
>
>>As of 4.3.2, if you compile PHP with --enable-memory-limit
>>you may use memory_get_usage(). This is documented and
>>will show up when the next PHP manual is built.

>
> This function is not documented in the PHP manual, but is in the zend copy:
>
> http://www.zend.com/manual/function....-get-usage.php


Ah, that's the one I was looking for. Are there any downsides to
compiling PHP with --enable-memory-limit or is that something that's
normally done?

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com




Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0