Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mxm's avatar
Level 1

calculate Ram used per request

I want to know how much ram i need on my VPS to serve 1000 Request to my laravel project. I use PHPunit to test a query that consume my postgres db and it throws me 10mb of usage. Im not sure if this is a real metric or there is other way to measure the ram consumption per request. Thanks!

0 likes
1 reply
D9705996's avatar

Have a look at https://github.com/barryvdh/laravel-debugbar.

It has details about the memory utilisation or try telescope (it's head and awesome!)

https://laravel.com/docs/5.7/telescope

This will give you an idea of usage per request and also give you insights into where any performance issues lie e.g. n+1 queries.

Once your happy with a single request you can load test with something Iike siege

http://lifewithlaravel.blogspot.com/2016/08/laravel-load-testing-with-siege.html

1 like

Please or to participate in this conversation.