Question regarding InMotion Hosting's Memory Viewer WordPress Plugin

Avatar
  • Answered
Okay, now I have another question. Do the memory figures include the Cufon font or jQuery slideshow includes that may be pulled into site? And how about the memory that the TimThumb.php script consumes?
Avatar
BradM
Hi jjclarkson, The WordPress Memory Viewer plugin uses PHP's memory_get_usage() function to see how much memory is being used. According to the function's documentation, this plugin: Returns the amount of memory, in bytes, that's currently being allocated to your PHP script. I reviewed the documentation again, but it was not too specific as to what is included in the memory usage. What I am fairly confident about however is that the memory usage does not take into consideration images being called. Unless you have PHP set to parse images for some reason, when a user calls for an image from your server, it is simply sent to the user. There is no parsing of that image by PHP, and therefor no increase is added to PHP's memory usage based upon images that you're using. I hope that helps! Thanks, - Brad
Avatar
BradM
Hi jjclarkson,

As TimThumb.php is parsed by PHP, the memory used by that script should be accounted for in the memory usage displayed.

As jQuery is javascript, most of what it is doing is not going to involve any php, so jQuery related scripts and the memory they use should not be in the memory usage display. Javascript runs on the user's browser, so any memory used by Javascript will be used on the users computer and not on the server.

Thanks,
- Brad