|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Re: Fatal Error while installing a module>> 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 |
|
|
Re: Re: Fatal Error while installing a moduleHi,
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] |
|
|
Re: Fatal Error while installing a moduleOn Sun, 5 Jul 2009, Kartik Nayak wrote:
> 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 > Hi Kartik: This is good ! i was hoping that you'd take a close look at . 'devel' module that support Drupal internal details for developers. . memory-get-usage() function. We'll need this stuff to trace the details, when we need to either optimize or debug. thanks Saifi. |
| Free embeddable forum powered by Nabble | Forum Help |