Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Average php memory usage per request?

Tags:

php

memory

  1. What is your average php memory usage per request . I know lots of people will say that php memory usage depends on the application , but i just want to get general idea about your data.I just created simple php framework so i want to know that do i use needless memory or it is normal .

  2. Actually , the interesting point is about my database class. I have a database class which is part of framework. For example , i have an albums table in database and albums have child objects which are songs . When i select albums from database , my database class automatically find child objects and get the data about them form database. So when this process occur , database class consumes around 1mb memory . If it is too much or you have an different method for this process please share .

like image 505
Oguz Bilgic Avatar asked Jul 06 '26 02:07

Oguz Bilgic


1 Answers

You can run a profiler and find out. This article has links to a few of them, and it will tell you the memory used per function.

like image 118
Jeremy Morgan Avatar answered Jul 08 '26 17:07

Jeremy Morgan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!