New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak issue #266

Closed
oliverde8 opened this Issue Feb 17, 2018 · 2 comments

Comments

Projects
2 participants
@oliverde8
Member

oliverde8 commented Feb 17, 2018

I'm reporting a Bug

Required information :

  • OS : Linux
  • PHP version :

PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

Explain the expected behavior

  1. I start expansion
  2. Players connect/disconnect
  3. expansion runs for days without end.

Explain the actual behavior

  1. eXpansion starts
  2. Players connects
  3. Average of 3/4 players
  4. eXpansion crashes going out of memory after 24h

Memory limit is 1gb.

Dev notes :

  • Display symfony environment in the memory widget and in console as a reminder
  • Add warning in dev mode that displays every 5 minutes
  • Make memory widget a specific bundle so that it can be used outside acme.

@oliverde8 oliverde8 added this to the alpha-3 milestone Feb 17, 2018

@oliverde8

This comment has been minimized.

Member

oliverde8 commented Feb 18, 2018

We got, the error messsage from the user that reported this :

PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /home/Maniaplanet/Controller/expansion/vendor/composer/autoload_static.php on line 3839

Memory limit is to low. 2mb is not sufficient, so there is no leaks.

@reaby reaby closed this Feb 18, 2018

@oliverde8 oliverde8 reopened this Feb 18, 2018

@oliverde8

This comment has been minimized.

Member

oliverde8 commented Feb 18, 2018

I still want to put in place :

  • Display symfony environment in the memory widget and in console as a reminder
  • Add warning in dev mode that displays every 5 minutes
  • Make memory widget a specific bundle so that it can be used outside acme.
  • Add minumum memory check on start

so that if it happens we can have better info.

oliverde8 added a commit that referenced this issue Feb 18, 2018

@oliverde8 oliverde8 closed this Feb 18, 2018

oliverde8 added a commit that referenced this issue Feb 18, 2018

Merge pull request #273 from eXpansionPluginPack/feature-266
#266 - Add warning that displayes every 5 minutes about dev mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment