Jump to content

Recommended Posts

I searched for this, but the search daemon couldn't be reached....

 

I am using a Drupal CMS, which allows the addition of "modules"  Each module that gets activated requires more memory to be allocated as it pulls up the "modules" page, eventually giving a memory allocation error.

 

I am suspecting that some "modules" require more memory than others, and there may be one that is using way too much.  Is there a way to track how much memory has been allocated (or likewise, how much is still available) while a page is being generated in PHP?

 

Something I could output to a table, file or screen?

Link to comment
https://forums.phpfreaks.com/topic/166619-how-to-track-memory-allocation/
Share on other sites

Run it through a profiler/debugger.

 

I think patrickvmi post may do what i need, but if it doesn't, is there one you recommend.  I should say that this is a hosted solution through 1and1.com, so I may not be able to run a tool like that.  I would have bumped up my memory allocation to 64 MB if I did have the access.  I'm limited to 40MB as it is. :(

 

Thanks!

Is there any reason you couldn't profile it and debug it on your local computer? The only PHP debugger/profiler I've ever used was the one in Zend Studio, but you can obviously find other free ones as well.

 

Good point.  If it comes down to that, that would be a good solution.  I would have to get apache on my pc (obviously) as well as the rest of the site. 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.