PHPackages                             tourze/symfony-memory-watch-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. tourze/symfony-memory-watch-bundle

ActiveSymfony-bundle[Debugging &amp; Profiling](/categories/debugging)

tourze/symfony-memory-watch-bundle
==================================

0.0.2(6mo ago)017MITPHPCI passing

Since Mar 31Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/symfony-memory-watch-bundle)[ Packagist](https://packagist.org/packages/tourze/symfony-memory-watch-bundle)[ RSS](/packages/tourze-symfony-memory-watch-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (17)Versions (3)Used By (0)

Symfony Memory Watch Bundle
===========================

[](#symfony-memory-watch-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/2e011c589a1b73b9ec7a43f067a8954981eb2b5fcc9e207819c98f71c2cee677/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f73796d666f6e792d6d656d6f72792d77617463682d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/symfony-memory-watch-bundle)[![Total Downloads](https://camo.githubusercontent.com/9f0aad68caf43860728c8ba6fbd42feadc17918f4afff0a41742e79a26ac5a26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f73796d666f6e792d6d656d6f72792d77617463682d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/symfony-memory-watch-bundle)

A Symfony bundle that monitors and logs memory usage in your application during the request lifecycle.

Features
--------

[](#features)

- Monitors memory usage between request and response
- Logs warnings when memory usage exceeds defined thresholds
- Zero configuration required to get started
- Works with Symfony's PSR-compatible logging
- Lightweight with minimal performance impact

Installation
------------

[](#installation)

```
composer require tourze/symfony-memory-watch-bundle
```

### Register the bundle

[](#register-the-bundle)

For Symfony applications using Flex, the bundle should be automatically registered. Otherwise, add it manually to your `config/bundles.php`:

```
