[ 
https://issues.apache.org/jira/browse/STORM-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989878#comment-14989878
 ] 

ASF GitHub Bot commented on STORM-1157:
---------------------------------------

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

    https://github.com/apache/storm/pull/842#discussion_r43905569
  
    --- Diff: STORM-UI-REST-API.md ---
    @@ -636,6 +636,201 @@ Sample response:
     }
     ```
     
    +## Profiling and Debugging GET Operations
    +
    +###  /api/v1/topology/:id/profiling/start/:host-port/:timeout (GET)
    +
    +Request to start profiler on worker with timeout. Returns status and link 
to profiler artifacts for worker.
    +
    +|Parameter |Value   |Description  |
    +|----------|--------|-------------|
    +|id           |String (required)| Topology Id  |
    +|:host-port |String (required)| Worker Id |
    +|:timeout |String (required)| Time out for profiler to stop in minutes |
    +
    +Response fields:
    +
    +|Field  |Value |Description|
    +|-----     |----- |-----------|
    +|id   | String | Worker id|
    +|status | String | Response Status |
    +|timeout | String | Requested timeout
    +|dumplink | String | Link to logviewer URL for worker profiler documents.|
    +
    +Examples:
    +
    +```no-highlight
    +1. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/10
    +2. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/5
    +3. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/20
    +```
    +
    +Sample response:
    +
    +```json
    +{
    +   "status": "ok",
    +   "id": "10.11.1.7:6701",
    +   "timeout": "10",
    +   "dumplink": 
"http:\/\/10.11.1.7:8000\/dumps\/wordcount-1-1446614150\/10.11.1.7%3A6701"
    +}
    +```
    +
    +###  /api/v1/topology/:id/profiling/dumpprofile/:host-port (GET)
    +
    +Request to dump profiler recording on worker. Returns status and worker id 
for the request.
    +
    +|Parameter |Value   |Description  |
    +|----------|--------|-------------|
    +|id           |String (required)| Topology Id  |
    +|:host-port |String (required)| Worker Id |
    +
    +Response fields:
    +
    +|Field  |Value |Description|
    +|-----     |----- |-----------|
    +|id   | String | Worker id|
    +|status | String | Response Status |
    +
    +Examples:
    +
    +```no-highlight
    +1. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/dumpprofile/10.11.1.7:6701
    +```
    +
    +Sample response:
    +
    +```json
    +{
    +   "status": "ok",
    +   "id": "10.11.1.7:6701",
    +}
    +```
    +
    +###  /api/v1/topology/:id/profiling/stop/:host-port (GET)
    +
    +Request to stop profiler on worker. Returns status and worker id for the 
request.
    +
    +|Parameter |Value   |Description  |
    +|----------|--------|-------------|
    +|id           |String (required)| Topology Id  |
    --- End diff --
    
    And here


> Dynamic Worker Profiler - jmap, jstack, profiling and restarting worker
> -----------------------------------------------------------------------
>
>                 Key: STORM-1157
>                 URL: https://issues.apache.org/jira/browse/STORM-1157
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: storm-core
>            Reporter: Kishor Patil
>            Assignee: Kishor Patil
>
> In multi-tenant mode, storm launches long-running JVMs across cluster without 
> sudo access to user. Self-serving of Java heap-dumps, jstacks and java 
> profiling of these JVMs would improve users' ability to analyze and debug 
> issues when monitoring it actively.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to