Github user tushargosavi commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/340#discussion_r64374984
--- Diff: engine/src/main/java/com/datatorrent/stram/StramUtils.java ---
@@ -133,4 +135,37 @@ public static JSONObject getStackTrace()
return jsonObject;
}
+ public static JSONObject getStackTrace2() throws JSONException
+ {
+
+ String result = "hello";
+ try {
+
+ String processName =
java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
+ Long processId = Long.parseLong(processName.split("@")[0]);
+
+ String cmd = "jstack " + processId;
--- End diff --
jstack needs to in the path, else above command might fail. also need to
make sure that these tool works with different implementation of jvm.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---