« Return to Thread: Re: Fatal Error while installing a module

Re: Re: Fatal Error while installing a module

by Kartik Nayak-2 :: Rate this Message:

Reply to Author | View in Thread

Hi,

The memory is utilized for running php scripts and maybe remembering some
other changes that are not saved and to create previews.

I used a module named devel http://drupal.org/project/devel through which i
got the memory used when the pages mentioned were loaded. A screenshot of
the same is attached.

As per http://us2.php.net/manual/en/function.memory-get-usage.php the memory
usage by a PHP script can be calculated by that function.

http://drupal.org/node/198053 is an interesting link wherein Phalanx (check
the 4th entry) has developed a patch through which memory utilization by
each of the modules can be checked (check the screenshot). Havent tried
applying the patch though.

Regards,
Kartik Nayak

On Sun, Jul 5, 2009 at 1:30 PM, Satish Eerpini <eerpini@...> wrote:

> >> Be sure to make changes to permissions to settings.php file after making
> the
> >> change.
> >>
> >> Regards,
> >> Kartik Nayak
> >>
> >
> > How is the total memory utilization of the various modules calculated in
> drupal ?
>
> the total memory is not as such calculated before hand, and I am not
> sure there exists a method using which you can calculate the total
> memory used by a php script before trying to interpret it ( correct me
> if I am wrong), ...
> in simple terms, the drupal core runs the php code and the interpreter
> tries to allocate memory for the php code, but when this causes the
> system limit on the total memory that can be used by the php virtual
> machine, the error is shown.
>
> Cheers
> Satish
>
>
> ------------------------------------
>
> http://twincling.org/
> http://twitter.com/twincling
> ----------------------------------------
> Yahoo! Groups Links
>
>
>
>


[Non-text portions of this message have been removed]

 « Return to Thread: Re: Fatal Error while installing a module