{"action":"closed","issue":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/561","repository_url":"https://api.github.com/repos/emqtt/emqttd","labels_url":"https://api.github.com/repos/emqtt/emqttd/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/emqtt/emqttd/issues/561/comments","events_url":"https://api.github.com/repos/emqtt/emqttd/issues/561/events","html_url":"https://github.com/emqtt/emqttd/issues/561","id":156138893,"number":561,"title":"Memory leak? ","user":{"login":"brstgt","id":331879,"avatar_url":"https://avatars.githubusercontent.com/u/331879?v=3","gravatar_id":"","url":"https://api.github.com/users/brstgt","html_url":"https://github.com/brstgt","followers_url":"https://api.github.com/users/brstgt/followers","following_url":"https://api.github.com/users/brstgt/following{/other_user}","gists_url":"https://api.github.com/users/brstgt/gists{/gist_id}","starred_url":"https://api.github.com/users/brstgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brstgt/subscriptions","organizations_url":"https://api.github.com/users/brstgt/orgs","repos_url":"https://api.github.com/users/brstgt/repos","events_url":"https://api.github.com/users/brstgt/events{/privacy}","received_events_url":"https://api.github.com/users/brstgt/received_events","type":"User","site_admin":false},"labels":[{"id":259216855,"url":"https://api.github.com/repos/emqtt/emqttd/labels/Discussion","name":"Discussion","color":"207de5","default":false},{"id":350475449,"url":"https://api.github.com/repos/emqtt/emqttd/labels/Support","name":"Support","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"emqplus","id":11869,"avatar_url":"https://avatars.githubusercontent.com/u/11869?v=3","gravatar_id":"","url":"https://api.github.com/users/emqplus","html_url":"https://github.com/emqplus","followers_url":"https://api.github.com/users/emqplus/followers","following_url":"https://api.github.com/users/emqplus/following{/other_user}","gists_url":"https://api.github.com/users/emqplus/gists{/gist_id}","starred_url":"https://api.github.com/users/emqplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emqplus/subscriptions","organizations_url":"https://api.github.com/users/emqplus/orgs","repos_url":"https://api.github.com/users/emqplus/repos","events_url":"https://api.github.com/users/emqplus/events{/privacy}","received_events_url":"https://api.github.com/users/emqplus/received_events","type":"User","site_admin":false},"assignees":[{"login":"emqplus","id":11869,"avatar_url":"https://avatars.githubusercontent.com/u/11869?v=3","gravatar_id":"","url":"https://api.github.com/users/emqplus","html_url":"https://github.com/emqplus","followers_url":"https://api.github.com/users/emqplus/followers","following_url":"https://api.github.com/users/emqplus/following{/other_user}","gists_url":"https://api.github.com/users/emqplus/gists{/gist_id}","starred_url":"https://api.github.com/users/emqplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emqplus/subscriptions","organizations_url":"https://api.github.com/users/emqplus/orgs","repos_url":"https://api.github.com/users/emqplus/repos","events_url":"https://api.github.com/users/emqplus/events{/privacy}","received_events_url":"https://api.github.com/users/emqplus/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/emqtt/emqttd/milestones/63","html_url":"https://github.com/emqtt/emqttd/milestones/1.1","labels_url":"https://api.github.com/repos/emqtt/emqttd/milestones/63/labels","id":1646134,"number":63,"title":"1.1","description":"Hot Upgrade\r\nPBKDF2, bcrypt\r\nMongoDB Plugin\r\nLive Plugin","creator":{"login":"emqplus","id":11869,"avatar_url":"https://avatars.githubusercontent.com/u/11869?v=3","gravatar_id":"","url":"https://api.github.com/users/emqplus","html_url":"https://github.com/emqplus","followers_url":"https://api.github.com/users/emqplus/followers","following_url":"https://api.github.com/users/emqplus/following{/other_user}","gists_url":"https://api.github.com/users/emqplus/gists{/gist_id}","starred_url":"https://api.github.com/users/emqplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emqplus/subscriptions","organizations_url":"https://api.github.com/users/emqplus/orgs","repos_url":"https://api.github.com/users/emqplus/repos","events_url":"https://api.github.com/users/emqplus/events{/privacy}","received_events_url":"https://api.github.com/users/emqplus/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":20,"state":"closed","created_at":"2016-03-15T17:07:45Z","updated_at":"2016-11-09T08:15:21Z","due_on":"2016-04-21T16:00:00Z","closed_at":"2016-06-01T18:16:08Z"},"comments":41,"created_at":"2016-05-22T07:05:33Z","updated_at":"2016-11-09T08:15:21Z","closed_at":"2016-11-09T08:15:21Z","body":"Hi!\n\nI observer that both of our running emqttd instances grow all the time. We compiled the broker ourselves as we have made small changes to the redis auth.\nWe compiled the commit 88edf1a02b946af70b8bf3c3ae29f08f6bef4b2a with erlang/otp 18.3. I read about a memleak in OTP 18.0 but the issue is fixed in 18.3.\n\nThese are the changes we made: https://github.com/Jaumo/emqttd_plugin_redis/commit/faa90c712ef35dca31d1101ad0e34479e363d0a1\nI can't imagine that this is responsible for the growing memory usage, actually it is mostly copy+paste so that redis auth + client-id auth can work together.\n\nThis is our config:\nhttps://gist.github.com/brstgt/90bfd75325e873fdab0da207ac837318\n\nWhat else?\nWe use only qos0, no retained messages, only 3 or 4 persistent sessions, the rest is not persistent.\nThe connections/clients are NOT constantly growing. These are our normal client numbers, they don't vary too much: http://cl.ly/1k1D1g3N1q2w. I cant imagine this mem usage is normal for this \"hand full\" of clients: http://cl.ly/1x300j2U3Q3V.\nThis is what emqttd_ctl vm memory tells me:\nmemory/total            : 3183439080\nmemory/processes        : 2811058680\nmemory/processes_used   : 2810718424\nmemory/system           : 372380400\nmemory/atom             : 654217\nmemory/atom_used        : 637305\nmemory/binary           : 143626640\nmemory/code             : 16070506\nmemory/ets              : 52078152\n\nNeed more information? I am happy to do everything I can :)\n"}}
{"actor":{"display_login":"emqplus"}}