Github user sandeshh commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/340#discussion_r64491259
  
    --- 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 --
    
    @tushargosavi Thanks for the review. From your experience in debugging 
customer issues do you think having the following apex cli command option will 
be a useful addition?
    
    run-jdktools "ContainerId" "Tool name" "Arguments" 


---
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.
---

Reply via email to