{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/146","labels_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/146/comments","events_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/146/events","html_url":"https://github.com/cloudfoundry/java-buildpack/issues/146","id":58388256,"number":146,"title":"Create open JDK build with more server tool like jcmd","user":{"login":"youngm","id":438661,"avatar_url":"https://avatars.githubusercontent.com/u/438661?v=3","gravatar_id":"","url":"https://api.github.com/users/youngm","html_url":"https://github.com/youngm","followers_url":"https://api.github.com/users/youngm/followers","following_url":"https://api.github.com/users/youngm/following{/other_user}","gists_url":"https://api.github.com/users/youngm/gists{/gist_id}","starred_url":"https://api.github.com/users/youngm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngm/subscriptions","organizations_url":"https://api.github.com/users/youngm/orgs","repos_url":"https://api.github.com/users/youngm/repos","events_url":"https://api.github.com/users/youngm/events{/privacy}","received_events_url":"https://api.github.com/users/youngm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-02-20T18:01:00Z","updated_at":"2015-03-05T19:02:07Z","closed_at":null,"body":"I recently attempted to get a heap dump from an app using a java-buildpack's openjdk build by wshing into the console.  To my dismay it appears as though the openjdk builds used by the java-buildpack don't include any diagnostics tools like jcmd.\r\n\r\nIt would be nice if the java-buildpack openjdk builds had a similar set of tools to that of the oracle server JRE: http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html\r\n\r\nHow feasible is that?  I know I could switch to an oracle JDE in my buildpack fork but would prefer to just continue using the openjdk builds provided with the buildpack if possible.\r\n\r\nAlso, tools like this might be more generally useful if/when ssh support is added to Cloud Foundry."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/comments/77427591","html_url":"https://github.com/cloudfoundry/java-buildpack/issues/146#issuecomment-77427591","issue_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/146","id":77427591,"user":{"login":"lhotari","id":66864,"avatar_url":"https://avatars.githubusercontent.com/u/66864?v=3","gravatar_id":"","url":"https://api.github.com/users/lhotari","html_url":"https://github.com/lhotari","followers_url":"https://api.github.com/users/lhotari/followers","following_url":"https://api.github.com/users/lhotari/following{/other_user}","gists_url":"https://api.github.com/users/lhotari/gists{/gist_id}","starred_url":"https://api.github.com/users/lhotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhotari/subscriptions","organizations_url":"https://api.github.com/users/lhotari/orgs","repos_url":"https://api.github.com/users/lhotari/repos","events_url":"https://api.github.com/users/lhotari/events{/privacy}","received_events_url":"https://api.github.com/users/lhotari/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T19:02:07Z","updated_at":"2015-03-05T19:02:07Z","body":"@sparameswaran Calling dumpHeap method with the second parameter \"live\" as true on HotSpotDiagnosticMXBean will produce the same result as jmap with \"-dump:live,format=b\". I'm using it in [HeapDumpServlet](https://github.com/lhotari/java-buildpack-diagnostics-app/blob/cd3158fabc55f8a791eef323c0d1d9c8bfbfdd57/src/main/groovy/io/github/lhotari/jbpdiagnostics/HeapDumpServlet.groovy#L78) . \r\nI also found a way to get the same result as jstack. It's done by [calling threadPrint on the DiagnosticCommandMBean](https://github.com/lhotari/java-buildpack-diagnostics-app/blob/master/src/main/groovy/io/github/lhotari/jbpdiagnostics/DiagnosticCommandMBeanHelper.java) . \r\n\r\nBoth of these methods are available in the OpenJDK JRE. I tested it [by deploying this app](https://github.com/lhotari/hello-jbp-diagnostics) to Pivotal WS CF."}}