{"action":"created","issue":{"url":"https://api.github.com/repos/niklasb/dryscrape/issues/41","labels_url":"https://api.github.com/repos/niklasb/dryscrape/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/niklasb/dryscrape/issues/41/comments","events_url":"https://api.github.com/repos/niklasb/dryscrape/issues/41/events","html_url":"https://github.com/niklasb/dryscrape/issues/41","id":115870886,"number":41,"title":"Memory usage of webkit never stops growing","user":{"login":"bjmb","id":6793045,"avatar_url":"https://avatars.githubusercontent.com/u/6793045?v=3","gravatar_id":"","url":"https://api.github.com/users/bjmb","html_url":"https://github.com/bjmb","followers_url":"https://api.github.com/users/bjmb/followers","following_url":"https://api.github.com/users/bjmb/following{/other_user}","gists_url":"https://api.github.com/users/bjmb/gists{/gist_id}","starred_url":"https://api.github.com/users/bjmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjmb/subscriptions","organizations_url":"https://api.github.com/users/bjmb/orgs","repos_url":"https://api.github.com/users/bjmb/repos","events_url":"https://api.github.com/users/bjmb/events{/privacy}","received_events_url":"https://api.github.com/users/bjmb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T12:52:48Z","updated_at":"2015-11-09T23:44:52Z","closed_at":null,"body":"First of all thanks for this great package,\r\n\r\nThe memory usage of the process webkit_server seems to increase with each call to session.visit()\r\nIt happens to me using the following script:\r\n\r\n```\r\nimport dryscrape\r\nimport time\r\n\r\n\r\ndryscrape.start_xvfb()\r\nsession = dryscrape.Session()\r\nsession.set_attribute('auto_load_images', False)\r\n\r\nwhile 1:    \r\n    print \"Iterating\"\r\n    session.visit(\"https://www.google.es\")\r\n    html_source = session.body()\r\n    time.sleep(5)\r\n```\r\n\r\nI see the memory usage with this command:\r\n```\r\nps -eo size,pid,user,command --sort -size | grep webkit | awk '{ hr=$1/1024 ; printf(\"%13.2f Mb \",hr) } { for ( x=1 ; x<=NF ; x++ ) { printf(\"%s \",$x) } print \"\" }'\r\n```\r\n\r\nMaybe I'm not doing something right? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/niklasb/dryscrape/issues/comments/155235192","html_url":"https://github.com/niklasb/dryscrape/issues/41#issuecomment-155235192","issue_url":"https://api.github.com/repos/niklasb/dryscrape/issues/41","id":155235192,"user":{"login":"bjmb","id":6793045,"avatar_url":"https://avatars.githubusercontent.com/u/6793045?v=3","gravatar_id":"","url":"https://api.github.com/users/bjmb","html_url":"https://github.com/bjmb","followers_url":"https://api.github.com/users/bjmb/followers","following_url":"https://api.github.com/users/bjmb/following{/other_user}","gists_url":"https://api.github.com/users/bjmb/gists{/gist_id}","starred_url":"https://api.github.com/users/bjmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjmb/subscriptions","organizations_url":"https://api.github.com/users/bjmb/orgs","repos_url":"https://api.github.com/users/bjmb/repos","events_url":"https://api.github.com/users/bjmb/events{/privacy}","received_events_url":"https://api.github.com/users/bjmb/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T23:44:52Z","updated_at":"2015-11-09T23:44:52Z","body":"Thanks for the answer. I will  try your advice.\r\n\r\nBest"}}