{"action":"created","comment":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/169422516","pull_request_review_id":97946564,"id":169422516,"diff_hunk":"@@ -82,17 +82,16 @@ public void init(KieServerImpl kieServer, KieServerRegistry registry) {\n         this.registry = registry;\n         // the following threadpool will have a max thread count equal to the number of cores on the machine.\n         // if new jobs are submited and all threads are busy, the reject policy will kick in.\n-        int poolSize = Runtime.getRuntime().availableProcessors();\n-        if ( poolSize >= 4 ) {\n-            // Leave 1 processor alone to handle REST/JMS requests and run the OS\n-            poolSize--;\n-        }\n+        int availableProcessorCount = Runtime.getRuntime().availableProcessors();     \n+        int resolvedActiveThreadCount = availableProcessorCount <= 2 ? 1 : availableProcessorCount - 2;\n+    \n+       ","path":"kie-server-parent/kie-server-services/kie-server-services-optaplanner/src/main/java/org/kie/server/services/optaplanner/OptaplannerKieServerExtension.java","position":12,"original_position":12,"commit_id":"f2de60f1316301302da71232a9189a866e68f67d","original_commit_id":"f2de60f1316301302da71232a9189a866e68f67d","user":{"login":"ron-murhammer","id":1427689,"avatar_url":"https://avatars0.githubusercontent.com/u/1427689?v=4","gravatar_id":"","url":"https://api.github.com/users/ron-murhammer","html_url":"https://github.com/ron-murhammer","followers_url":"https://api.github.com/users/ron-murhammer/followers","following_url":"https://api.github.com/users/ron-murhammer/following{/other_user}","gists_url":"https://api.github.com/users/ron-murhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/ron-murhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron-murhammer/subscriptions","organizations_url":"https://api.github.com/users/ron-murhammer/orgs","repos_url":"https://api.github.com/users/ron-murhammer/repos","events_url":"https://api.github.com/users/ron-murhammer/events{/privacy}","received_events_url":"https://api.github.com/users/ron-murhammer/received_events","type":"User","site_admin":false},"body":"Probably don't need 2 empty lines here.","created_at":"2018-02-20T18:55:32Z","updated_at":"2018-02-20T18:55:33Z","html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375#discussion_r169422516","pull_request_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/169422516"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375#discussion_r169422516"},"pull_request":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375"}}},"pull_request":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375","id":170276872,"html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375","diff_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375.diff","patch_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375.patch","issue_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1375","number":1375,"state":"open","locked":false,"title":"PLANNER-1021: thread count hard coded fix","user":{"login":"jgoldsmith613","id":1053544,"avatar_url":"https://avatars2.githubusercontent.com/u/1053544?v=4","gravatar_id":"","url":"https://api.github.com/users/jgoldsmith613","html_url":"https://github.com/jgoldsmith613","followers_url":"https://api.github.com/users/jgoldsmith613/followers","following_url":"https://api.github.com/users/jgoldsmith613/following{/other_user}","gists_url":"https://api.github.com/users/jgoldsmith613/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoldsmith613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoldsmith613/subscriptions","organizations_url":"https://api.github.com/users/jgoldsmith613/orgs","repos_url":"https://api.github.com/users/jgoldsmith613/repos","events_url":"https://api.github.com/users/jgoldsmith613/events{/privacy}","received_events_url":"https://api.github.com/users/jgoldsmith613/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-20T18:47:59Z","updated_at":"2018-02-20T18:55:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37d1200c11dc03437ba9cc1946fbc1525743f524","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375/commits","review_comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375/comments","review_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1375/comments","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/f2de60f1316301302da71232a9189a866e68f67d","head":{"label":"jgoldsmith613:thread_count","ref":"thread_count","sha":"f2de60f1316301302da71232a9189a866e68f67d","user":{"login":"jgoldsmith613","id":1053544,"avatar_url":"https://avatars2.githubusercontent.com/u/1053544?v=4","gravatar_id":"","url":"https://api.github.com/users/jgoldsmith613","html_url":"https://github.com/jgoldsmith613","followers_url":"https://api.github.com/users/jgoldsmith613/followers","following_url":"https://api.github.com/users/jgoldsmith613/following{/other_user}","gists_url":"https://api.github.com/users/jgoldsmith613/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoldsmith613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoldsmith613/subscriptions","organizations_url":"https://api.github.com/users/jgoldsmith613/orgs","repos_url":"https://api.github.com/users/jgoldsmith613/repos","events_url":"https://api.github.com/users/jgoldsmith613/events{/privacy}","received_events_url":"https://api.github.com/users/jgoldsmith613/received_events","type":"User","site_admin":false},"repo":{"id":47843756,"name":"droolsjbpm-integration","full_name":"jgoldsmith613/droolsjbpm-integration","owner":{"login":"jgoldsmith613","id":1053544,"avatar_url":"https://avatars2.githubusercontent.com/u/1053544?v=4","gravatar_id":"","url":"https://api.github.com/users/jgoldsmith613","html_url":"https://github.com/jgoldsmith613","followers_url":"https://api.github.com/users/jgoldsmith613/followers","following_url":"https://api.github.com/users/jgoldsmith613/following{/other_user}","gists_url":"https://api.github.com/users/jgoldsmith613/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoldsmith613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoldsmith613/subscriptions","organizations_url":"https://api.github.com/users/jgoldsmith613/orgs","repos_url":"https://api.github.com/users/jgoldsmith613/repos","events_url":"https://api.github.com/users/jgoldsmith613/events{/privacy}","received_events_url":"https://api.github.com/users/jgoldsmith613/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgoldsmith613/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":true,"url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration","forks_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/jgoldsmith613/droolsjbpm-integration/deployments","created_at":"2015-12-11T18:22:46Z","updated_at":"2016-02-11T16:38:23Z","pushed_at":"2018-02-20T18:42:19Z","git_url":"git://github.com/jgoldsmith613/droolsjbpm-integration.git","ssh_url":"git@github.com:jgoldsmith613/droolsjbpm-integration.git","clone_url":"https://github.com/jgoldsmith613/droolsjbpm-integration.git","svn_url":"https://github.com/jgoldsmith613/droolsjbpm-integration","homepage":"","size":44301,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kiegroup:master","ref":"master","sha":"14d1fc7b0f4e4191595663c9d0771fe5919d58ab","user":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":1365306,"name":"droolsjbpm-integration","full_name":"kiegroup/droolsjbpm-integration","owner":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiegroup/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":false,"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration","forks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/deployments","created_at":"2011-02-14T14:02:11Z","updated_at":"2018-02-13T12:58:01Z","pushed_at":"2018-02-20T18:48:00Z","git_url":"git://github.com/kiegroup/droolsjbpm-integration.git","ssh_url":"git@github.com:kiegroup/droolsjbpm-integration.git","clone_url":"https://github.com/kiegroup/droolsjbpm-integration.git","svn_url":"https://github.com/kiegroup/droolsjbpm-integration","homepage":"","size":48049,"stargazers_count":140,"watchers_count":140,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":327,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":327,"open_issues":14,"watchers":140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1375"},"issue":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1375"},"comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1375/comments"},"review_comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375/comments"},"review_comment":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1375/commits"},"statuses":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/f2de60f1316301302da71232a9189a866e68f67d"}},"author_association":"NONE"}}
{"actor":{"display_login":"ron-murhammer"}}