Skip to content

MichelHartmann/php-src-issues-8646

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to reproduce

  1. Edit the Dockerfile in order to select the desired PHP version

  2. Build the image and start the stack
    This will create some classes on the fly (see generate_classes.php for details)

    docker-compose up --build 
  3. Create some load

    ab -n 1000 -c 10 http://localhost:8080/
  4. Monitor the memory usage

    docker stats
  5. Repeat with another PHP version

My results

php:8.0.27-fpm-alpine

  • Directly after start: 6.301MiB
  • After one request: 9.5MiB
  • After 1,001 requests: 37.05MiB
  • After 11,001 requests: 37.05MiB

php:8.1.14-fpm-alpine

  • Directly after start: 6.633MiB
  • After one request: 15.77MiB
  • After 1,001 requests: 59.54MiB
  • After 11,001 requests: 274MiB

About

Reproducable sample of a memory leak described in https://github.com/php/php-src/issues/8646

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published