{"action":"created","comment":{"url":"https://api.github.com/repos/azkaban/azkaban/pulls/comments/40849037","id":40849037,"diff_hunk":"@@ -67,82 +67,114 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)\n    * a double value will be used to present the remaining memory,\n    *         a returning value of '55.6' means 55.6%\n    */\n-  protected void fillRemainingMemoryPercent(ExecutorInfo stats){\n-    if (new File(\"/bin/bash\").exists()\n-        && new File(\"/bin/cat\").exists()\n-        && new File(\"/bin/grep\").exists()\n-        &&  new File(\"/proc/meminfo\").exists()) {\n-    java.lang.ProcessBuilder processBuilder =\n-        new java.lang.ProcessBuilder(\"/bin/bash\", \"-c\", \"/bin/cat /proc/meminfo | grep -E \\\"MemTotal|MemFree\\\"\");\n-    try {\n-      ArrayList<String> output = new ArrayList<String>();\n-      Process process = processBuilder.start();\n-      process.waitFor();\n-      InputStream inputStream = process.getInputStream();\n+  protected void fillRemainingMemoryPercent(ExecutorInfo stats) {\n+    if (new File(\"/bin/bash\").exists() && new File(\"/bin/cat\").exists() && new File(\"/bin/grep\").exists()","path":"azkaban-execserver/src/main/java/azkaban/execapp/ServerStatisticsServlet.java","position":46,"original_position":46,"commit_id":"612b67ee3d7656c8bb96318906de6ecb69152f3d","original_commit_id":"612b67ee3d7656c8bb96318906de6ecb69152f3d","user":{"login":"evlstyle","id":7330414,"avatar_url":"https://avatars.githubusercontent.com/u/7330414?v=3","gravatar_id":"","url":"https://api.github.com/users/evlstyle","html_url":"https://github.com/evlstyle","followers_url":"https://api.github.com/users/evlstyle/followers","following_url":"https://api.github.com/users/evlstyle/following{/other_user}","gists_url":"https://api.github.com/users/evlstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/evlstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evlstyle/subscriptions","organizations_url":"https://api.github.com/users/evlstyle/orgs","repos_url":"https://api.github.com/users/evlstyle/repos","events_url":"https://api.github.com/users/evlstyle/events{/privacy}","received_events_url":"https://api.github.com/users/evlstyle/received_events","type":"User","site_admin":false},"body":"moved it out and does that only once during the class load. ","created_at":"2015-09-30T20:45:37Z","updated_at":"2015-09-30T20:45:37Z","html_url":"https://github.com/azkaban/azkaban/pull/511#discussion_r40849037","pull_request_url":"https://api.github.com/repos/azkaban/azkaban/pulls/511","_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/comments/40849037"},"html":{"href":"https://github.com/azkaban/azkaban/pull/511#discussion_r40849037"},"pull_request":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/511"}}},"pull_request":{"url":"https://api.github.com/repos/azkaban/azkaban/pulls/511","id":46341083,"html_url":"https://github.com/azkaban/azkaban/pull/511","diff_url":"https://github.com/azkaban/azkaban/pull/511.diff","patch_url":"https://github.com/azkaban/azkaban/pull/511.patch","issue_url":"https://api.github.com/repos/azkaban/azkaban/issues/511","number":511,"state":"open","locked":false,"title":"Fix the free memory calculation on the executor box.","user":{"login":"evlstyle","id":7330414,"avatar_url":"https://avatars.githubusercontent.com/u/7330414?v=3","gravatar_id":"","url":"https://api.github.com/users/evlstyle","html_url":"https://github.com/evlstyle","followers_url":"https://api.github.com/users/evlstyle/followers","following_url":"https://api.github.com/users/evlstyle/following{/other_user}","gists_url":"https://api.github.com/users/evlstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/evlstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evlstyle/subscriptions","organizations_url":"https://api.github.com/users/evlstyle/orgs","repos_url":"https://api.github.com/users/evlstyle/repos","events_url":"https://api.github.com/users/evlstyle/events{/privacy}","received_events_url":"https://api.github.com/users/evlstyle/received_events","type":"User","site_admin":false},"body":"fix the free memory calculation in the executor server. ","created_at":"2015-09-29T22:34:42Z","updated_at":"2015-09-30T20:45:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ad2e38fa10c4a258a45af7a1d10f04c1249d680","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/azkaban/azkaban/pulls/511/commits","review_comments_url":"https://api.github.com/repos/azkaban/azkaban/pulls/511/comments","review_comment_url":"https://api.github.com/repos/azkaban/azkaban/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azkaban/azkaban/issues/511/comments","statuses_url":"https://api.github.com/repos/azkaban/azkaban/statuses/612b67ee3d7656c8bb96318906de6ecb69152f3d","head":{"label":"evlstyle:multipleexecutor","ref":"multipleexecutor","sha":"612b67ee3d7656c8bb96318906de6ecb69152f3d","user":{"login":"evlstyle","id":7330414,"avatar_url":"https://avatars.githubusercontent.com/u/7330414?v=3","gravatar_id":"","url":"https://api.github.com/users/evlstyle","html_url":"https://github.com/evlstyle","followers_url":"https://api.github.com/users/evlstyle/followers","following_url":"https://api.github.com/users/evlstyle/following{/other_user}","gists_url":"https://api.github.com/users/evlstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/evlstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evlstyle/subscriptions","organizations_url":"https://api.github.com/users/evlstyle/orgs","repos_url":"https://api.github.com/users/evlstyle/repos","events_url":"https://api.github.com/users/evlstyle/events{/privacy}","received_events_url":"https://api.github.com/users/evlstyle/received_events","type":"User","site_admin":false},"repo":{"id":40496888,"name":"azkaban","full_name":"evlstyle/azkaban","owner":{"login":"evlstyle","id":7330414,"avatar_url":"https://avatars.githubusercontent.com/u/7330414?v=3","gravatar_id":"","url":"https://api.github.com/users/evlstyle","html_url":"https://github.com/evlstyle","followers_url":"https://api.github.com/users/evlstyle/followers","following_url":"https://api.github.com/users/evlstyle/following{/other_user}","gists_url":"https://api.github.com/users/evlstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/evlstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evlstyle/subscriptions","organizations_url":"https://api.github.com/users/evlstyle/orgs","repos_url":"https://api.github.com/users/evlstyle/repos","events_url":"https://api.github.com/users/evlstyle/events{/privacy}","received_events_url":"https://api.github.com/users/evlstyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evlstyle/azkaban","description":"Azkaban workflow manager.","fork":true,"url":"https://api.github.com/repos/evlstyle/azkaban","forks_url":"https://api.github.com/repos/evlstyle/azkaban/forks","keys_url":"https://api.github.com/repos/evlstyle/azkaban/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evlstyle/azkaban/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evlstyle/azkaban/teams","hooks_url":"https://api.github.com/repos/evlstyle/azkaban/hooks","issue_events_url":"https://api.github.com/repos/evlstyle/azkaban/issues/events{/number}","events_url":"https://api.github.com/repos/evlstyle/azkaban/events","assignees_url":"https://api.github.com/repos/evlstyle/azkaban/assignees{/user}","branches_url":"https://api.github.com/repos/evlstyle/azkaban/branches{/branch}","tags_url":"https://api.github.com/repos/evlstyle/azkaban/tags","blobs_url":"https://api.github.com/repos/evlstyle/azkaban/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evlstyle/azkaban/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evlstyle/azkaban/git/refs{/sha}","trees_url":"https://api.github.com/repos/evlstyle/azkaban/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evlstyle/azkaban/statuses/{sha}","languages_url":"https://api.github.com/repos/evlstyle/azkaban/languages","stargazers_url":"https://api.github.com/repos/evlstyle/azkaban/stargazers","contributors_url":"https://api.github.com/repos/evlstyle/azkaban/contributors","subscribers_url":"https://api.github.com/repos/evlstyle/azkaban/subscribers","subscription_url":"https://api.github.com/repos/evlstyle/azkaban/subscription","commits_url":"https://api.github.com/repos/evlstyle/azkaban/commits{/sha}","git_commits_url":"https://api.github.com/repos/evlstyle/azkaban/git/commits{/sha}","comments_url":"https://api.github.com/repos/evlstyle/azkaban/comments{/number}","issue_comment_url":"https://api.github.com/repos/evlstyle/azkaban/issues/comments{/number}","contents_url":"https://api.github.com/repos/evlstyle/azkaban/contents/{+path}","compare_url":"https://api.github.com/repos/evlstyle/azkaban/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evlstyle/azkaban/merges","archive_url":"https://api.github.com/repos/evlstyle/azkaban/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evlstyle/azkaban/downloads","issues_url":"https://api.github.com/repos/evlstyle/azkaban/issues{/number}","pulls_url":"https://api.github.com/repos/evlstyle/azkaban/pulls{/number}","milestones_url":"https://api.github.com/repos/evlstyle/azkaban/milestones{/number}","notifications_url":"https://api.github.com/repos/evlstyle/azkaban/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evlstyle/azkaban/labels{/name}","releases_url":"https://api.github.com/repos/evlstyle/azkaban/releases{/id}","created_at":"2015-08-10T17:47:40Z","updated_at":"2015-08-10T17:47:42Z","pushed_at":"2015-09-30T19:09:15Z","git_url":"git://github.com/evlstyle/azkaban.git","ssh_url":"git@github.com:evlstyle/azkaban.git","clone_url":"https://github.com/evlstyle/azkaban.git","svn_url":"https://github.com/evlstyle/azkaban","homepage":"https://azkaban.github.io","size":33068,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"azkaban:multipleexecutors","ref":"multipleexecutors","sha":"c599d652fbade530a63534510b00e704136a74bf","user":{"login":"azkaban","id":213618,"avatar_url":"https://avatars.githubusercontent.com/u/213618?v=3","gravatar_id":"","url":"https://api.github.com/users/azkaban","html_url":"https://github.com/azkaban","followers_url":"https://api.github.com/users/azkaban/followers","following_url":"https://api.github.com/users/azkaban/following{/other_user}","gists_url":"https://api.github.com/users/azkaban/gists{/gist_id}","starred_url":"https://api.github.com/users/azkaban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azkaban/subscriptions","organizations_url":"https://api.github.com/users/azkaban/orgs","repos_url":"https://api.github.com/users/azkaban/repos","events_url":"https://api.github.com/users/azkaban/events{/privacy}","received_events_url":"https://api.github.com/users/azkaban/received_events","type":"Organization","site_admin":false},"repo":{"id":6271421,"name":"azkaban","full_name":"azkaban/azkaban","owner":{"login":"azkaban","id":213618,"avatar_url":"https://avatars.githubusercontent.com/u/213618?v=3","gravatar_id":"","url":"https://api.github.com/users/azkaban","html_url":"https://github.com/azkaban","followers_url":"https://api.github.com/users/azkaban/followers","following_url":"https://api.github.com/users/azkaban/following{/other_user}","gists_url":"https://api.github.com/users/azkaban/gists{/gist_id}","starred_url":"https://api.github.com/users/azkaban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azkaban/subscriptions","organizations_url":"https://api.github.com/users/azkaban/orgs","repos_url":"https://api.github.com/users/azkaban/repos","events_url":"https://api.github.com/users/azkaban/events{/privacy}","received_events_url":"https://api.github.com/users/azkaban/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azkaban/azkaban","description":"Azkaban workflow manager.","fork":false,"url":"https://api.github.com/repos/azkaban/azkaban","forks_url":"https://api.github.com/repos/azkaban/azkaban/forks","keys_url":"https://api.github.com/repos/azkaban/azkaban/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azkaban/azkaban/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azkaban/azkaban/teams","hooks_url":"https://api.github.com/repos/azkaban/azkaban/hooks","issue_events_url":"https://api.github.com/repos/azkaban/azkaban/issues/events{/number}","events_url":"https://api.github.com/repos/azkaban/azkaban/events","assignees_url":"https://api.github.com/repos/azkaban/azkaban/assignees{/user}","branches_url":"https://api.github.com/repos/azkaban/azkaban/branches{/branch}","tags_url":"https://api.github.com/repos/azkaban/azkaban/tags","blobs_url":"https://api.github.com/repos/azkaban/azkaban/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azkaban/azkaban/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azkaban/azkaban/git/refs{/sha}","trees_url":"https://api.github.com/repos/azkaban/azkaban/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azkaban/azkaban/statuses/{sha}","languages_url":"https://api.github.com/repos/azkaban/azkaban/languages","stargazers_url":"https://api.github.com/repos/azkaban/azkaban/stargazers","contributors_url":"https://api.github.com/repos/azkaban/azkaban/contributors","subscribers_url":"https://api.github.com/repos/azkaban/azkaban/subscribers","subscription_url":"https://api.github.com/repos/azkaban/azkaban/subscription","commits_url":"https://api.github.com/repos/azkaban/azkaban/commits{/sha}","git_commits_url":"https://api.github.com/repos/azkaban/azkaban/git/commits{/sha}","comments_url":"https://api.github.com/repos/azkaban/azkaban/comments{/number}","issue_comment_url":"https://api.github.com/repos/azkaban/azkaban/issues/comments{/number}","contents_url":"https://api.github.com/repos/azkaban/azkaban/contents/{+path}","compare_url":"https://api.github.com/repos/azkaban/azkaban/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azkaban/azkaban/merges","archive_url":"https://api.github.com/repos/azkaban/azkaban/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azkaban/azkaban/downloads","issues_url":"https://api.github.com/repos/azkaban/azkaban/issues{/number}","pulls_url":"https://api.github.com/repos/azkaban/azkaban/pulls{/number}","milestones_url":"https://api.github.com/repos/azkaban/azkaban/milestones{/number}","notifications_url":"https://api.github.com/repos/azkaban/azkaban/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azkaban/azkaban/labels{/name}","releases_url":"https://api.github.com/repos/azkaban/azkaban/releases{/id}","created_at":"2012-10-18T01:34:53Z","updated_at":"2015-09-29T05:48:34Z","pushed_at":"2015-09-30T19:09:16Z","git_url":"git://github.com/azkaban/azkaban.git","ssh_url":"git@github.com:azkaban/azkaban.git","clone_url":"https://github.com/azkaban/azkaban.git","svn_url":"https://github.com/azkaban/azkaban","homepage":"https://azkaban.github.io","size":36758,"stargazers_count":426,"watchers_count":426,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":241,"mirror_url":null,"open_issues_count":144,"forks":241,"open_issues":144,"watchers":426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/511"},"html":{"href":"https://github.com/azkaban/azkaban/pull/511"},"issue":{"href":"https://api.github.com/repos/azkaban/azkaban/issues/511"},"comments":{"href":"https://api.github.com/repos/azkaban/azkaban/issues/511/comments"},"review_comments":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/511/comments"},"review_comment":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azkaban/azkaban/pulls/511/commits"},"statuses":{"href":"https://api.github.com/repos/azkaban/azkaban/statuses/612b67ee3d7656c8bb96318906de6ecb69152f3d"}}}}