{"action":"created","issue":{"url":"https://api.github.com/repos/log4js-node/log4js-node/issues/700","repository_url":"https://api.github.com/repos/log4js-node/log4js-node","labels_url":"https://api.github.com/repos/log4js-node/log4js-node/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/log4js-node/log4js-node/issues/700/comments","events_url":"https://api.github.com/repos/log4js-node/log4js-node/issues/700/events","html_url":"https://github.com/log4js-node/log4js-node/issues/700","id":318504185,"node_id":"MDU6SXNzdWUzMTg1MDQxODU=","number":700,"title":"File appender memory leak after reload configure","user":{"login":"Cap32","id":1403911,"node_id":"MDQ6VXNlcjE0MDM5MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1403911?v=4","gravatar_id":"","url":"https://api.github.com/users/Cap32","html_url":"https://github.com/Cap32","followers_url":"https://api.github.com/users/Cap32/followers","following_url":"https://api.github.com/users/Cap32/following{/other_user}","gists_url":"https://api.github.com/users/Cap32/gists{/gist_id}","starred_url":"https://api.github.com/users/Cap32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cap32/subscriptions","organizations_url":"https://api.github.com/users/Cap32/orgs","repos_url":"https://api.github.com/users/Cap32/repos","events_url":"https://api.github.com/users/Cap32/events{/privacy}","received_events_url":"https://api.github.com/users/Cap32/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"nomiddlename","id":83909,"node_id":"MDQ6VXNlcjgzOTA5","avatar_url":"https://avatars3.githubusercontent.com/u/83909?v=4","gravatar_id":"","url":"https://api.github.com/users/nomiddlename","html_url":"https://github.com/nomiddlename","followers_url":"https://api.github.com/users/nomiddlename/followers","following_url":"https://api.github.com/users/nomiddlename/following{/other_user}","gists_url":"https://api.github.com/users/nomiddlename/gists{/gist_id}","starred_url":"https://api.github.com/users/nomiddlename/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomiddlename/subscriptions","organizations_url":"https://api.github.com/users/nomiddlename/orgs","repos_url":"https://api.github.com/users/nomiddlename/repos","events_url":"https://api.github.com/users/nomiddlename/events{/privacy}","received_events_url":"https://api.github.com/users/nomiddlename/received_events","type":"User","site_admin":false},"assignees":[{"login":"nomiddlename","id":83909,"node_id":"MDQ6VXNlcjgzOTA5","avatar_url":"https://avatars3.githubusercontent.com/u/83909?v=4","gravatar_id":"","url":"https://api.github.com/users/nomiddlename","html_url":"https://github.com/nomiddlename","followers_url":"https://api.github.com/users/nomiddlename/followers","following_url":"https://api.github.com/users/nomiddlename/following{/other_user}","gists_url":"https://api.github.com/users/nomiddlename/gists{/gist_id}","starred_url":"https://api.github.com/users/nomiddlename/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomiddlename/subscriptions","organizations_url":"https://api.github.com/users/nomiddlename/orgs","repos_url":"https://api.github.com/users/nomiddlename/repos","events_url":"https://api.github.com/users/nomiddlename/events{/privacy}","received_events_url":"https://api.github.com/users/nomiddlename/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/log4js-node/log4js-node/milestones/36","html_url":"https://github.com/log4js-node/log4js-node/milestone/36","labels_url":"https://api.github.com/repos/log4js-node/log4js-node/milestones/36/labels","id":3040486,"node_id":"MDk6TWlsZXN0b25lMzA0MDQ4Ng==","number":36,"title":"2.6.0","description":null,"creator":{"login":"nomiddlename","id":83909,"node_id":"MDQ6VXNlcjgzOTA5","avatar_url":"https://avatars3.githubusercontent.com/u/83909?v=4","gravatar_id":"","url":"https://api.github.com/users/nomiddlename","html_url":"https://github.com/nomiddlename","followers_url":"https://api.github.com/users/nomiddlename/followers","following_url":"https://api.github.com/users/nomiddlename/following{/other_user}","gists_url":"https://api.github.com/users/nomiddlename/gists{/gist_id}","starred_url":"https://api.github.com/users/nomiddlename/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomiddlename/subscriptions","organizations_url":"https://api.github.com/users/nomiddlename/orgs","repos_url":"https://api.github.com/users/nomiddlename/repos","events_url":"https://api.github.com/users/nomiddlename/events{/privacy}","received_events_url":"https://api.github.com/users/nomiddlename/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":12,"state":"closed","created_at":"2018-01-16T21:32:52Z","updated_at":"2018-05-15T02:57:19Z","due_on":null,"closed_at":"2018-05-15T02:57:19Z"},"comments":4,"created_at":"2018-04-27T18:22:47Z","updated_at":"2019-01-03T09:54:44Z","closed_at":"2018-04-30T22:11:20Z","author_association":"NONE","body":"I want to reload / update my configuration, but I get memory leak warning.\r\n\r\n- log4js v2.5.3\r\n- node.js v8.9.0\r\n- macOS v10.13.4\r\n\r\n```js\r\nconst log4js = require('log4js');\r\nconst options = {\r\n\tappenders: {\r\n\t\tfoo: { type: 'file', filename: 'foo.log' },\r\n\t},\r\n\tcategories: {\r\n\t\tdefault: { appenders: ['foo'], level: 'info' },\r\n\t},\r\n};\r\nconst loop = (index = 0) => {\r\n\tif (index < 11) {\r\n\t\tlog4js.configure(options);\r\n\t\tlog4js.shutdown(() => loop(++index));\r\n\t}\r\n};\r\nloop();\r\n```\r\n\r\nthrow:\r\n\r\n`(node:19311) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGHUP listeners added. Use emitter.setMaxListeners() to increase limit`\r\n\r\nOr is there any other way to reload / update configuration?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/log4js-node/log4js-node/issues/comments/451097673","html_url":"https://github.com/log4js-node/log4js-node/issues/700#issuecomment-451097673","issue_url":"https://api.github.com/repos/log4js-node/log4js-node/issues/700","id":451097673,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTA5NzY3Mw==","user":{"login":"shudingbo","id":2509269,"node_id":"MDQ6VXNlcjI1MDkyNjk=","avatar_url":"https://avatars0.githubusercontent.com/u/2509269?v=4","gravatar_id":"","url":"https://api.github.com/users/shudingbo","html_url":"https://github.com/shudingbo","followers_url":"https://api.github.com/users/shudingbo/followers","following_url":"https://api.github.com/users/shudingbo/following{/other_user}","gists_url":"https://api.github.com/users/shudingbo/gists{/gist_id}","starred_url":"https://api.github.com/users/shudingbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shudingbo/subscriptions","organizations_url":"https://api.github.com/users/shudingbo/orgs","repos_url":"https://api.github.com/users/shudingbo/repos","events_url":"https://api.github.com/users/shudingbo/events{/privacy}","received_events_url":"https://api.github.com/users/shudingbo/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T09:54:44Z","updated_at":"2019-01-03T09:54:44Z","author_association":"NONE","body":"This issue still exists with the latest version 3.0.6. It started to appear when the number of appender reached 12."}}
{"actor":{"display_login":"shudingbo"}}