{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/1013","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/1013/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/1013/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/1013/events","html_url":"https://github.com/unbit/uwsgi/issues/1013","id":102969364,"number":1013,"title":"Memory leak while extend the definition of PATH","user":{"login":"KES777","id":799021,"avatar_url":"https://avatars.githubusercontent.com/u/799021?v=3","gravatar_id":"","url":"https://api.github.com/users/KES777","html_url":"https://github.com/KES777","followers_url":"https://api.github.com/users/KES777/followers","following_url":"https://api.github.com/users/KES777/following{/other_user}","gists_url":"https://api.github.com/users/KES777/gists{/gist_id}","starred_url":"https://api.github.com/users/KES777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KES777/subscriptions","organizations_url":"https://api.github.com/users/KES777/orgs","repos_url":"https://api.github.com/users/KES777/repos","events_url":"https://api.github.com/users/KES777/events{/privacy}","received_events_url":"https://api.github.com/users/KES777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T07:46:12Z","updated_at":"2015-08-25T07:53:09Z","closed_at":null,"body":"Suppose in your config you have:\r\n```\r\n[uwsgi]\r\nperl-auto-reload = 2\r\ntouch-reload = %(psgi)\r\nenv = PATH=/home/user/perl5/bin:$(PATH)\r\n```\r\nWhen psgi app is gracefully reload n billion times this will eat whole memory, because of with each reload this string will be attached '/home/user/perl5/bin:'\r\n\r\nEXPECTED:\r\nYou must save environment when master process is starting into master space and then extend that environment and not the current worker environment"},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/134514046","html_url":"https://github.com/unbit/uwsgi/issues/1013#issuecomment-134514046","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/1013","id":134514046,"user":{"login":"unbit","id":254469,"avatar_url":"https://avatars.githubusercontent.com/u/254469?v=3","gravatar_id":"","url":"https://api.github.com/users/unbit","html_url":"https://github.com/unbit","followers_url":"https://api.github.com/users/unbit/followers","following_url":"https://api.github.com/users/unbit/following{/other_user}","gists_url":"https://api.github.com/users/unbit/gists{/gist_id}","starred_url":"https://api.github.com/users/unbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbit/subscriptions","organizations_url":"https://api.github.com/users/unbit/orgs","repos_url":"https://api.github.com/users/unbit/repos","events_url":"https://api.github.com/users/unbit/events{/privacy}","received_events_url":"https://api.github.com/users/unbit/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T07:53:08Z","updated_at":"2015-08-25T07:53:08Z","body":"This will break various established behaviour (like counting reloads in environment vars). I think it would be better to add if-not-reload before env that append values:\r\n\r\n```\r\n[uwsgi]\r\nif-not-reload =\r\nenv = PATH=/home/user/perl5/bin:$(PATH)\r\nendif =\r\n```"}}