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

Ethan Li commented on STORM-3403:
---------------------------------

Please don't -Xmx in "topology.worker.childopts" directly. 

https://github.com/apache/storm/blob/v1.2.2/storm-core/src/jvm/org/apache/storm/Config.java#L1919
https://github.com/apache/storm/blob/v1.2.2/storm-core/src/jvm/org/apache/storm/Config.java#L1477

" %HEAP-MEM%"  in "worker.childopts" will be replaced with the onheap memory 
settings. 

> Incorrect Assigned memory displayed on Storm UI
> -----------------------------------------------
>
>                 Key: STORM-3403
>                 URL: https://issues.apache.org/jira/browse/STORM-3403
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-ui
>    Affects Versions: 1.2.2
>            Reporter: Nikhil
>            Priority: Major
>         Attachments: componentsScreenshot.png, topologyAssignedMem.png
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi Team,
>  
> We are working on storm upgrade from 1.0.2 to 1.2.2. During upgrade, we 
> realised that assigned memory displayed on Storm UI is incorrect. Attached 
> screenshot for more details.
>  
> Looks like assigned memory is sum of memory provided in 
> topology.worker.childopts and topology.worker.logwriter.childopts options.
>  
> Multiple scenarios we have observed where  assigned memory is not correct-
>  # If topology.worker.childopts memory is more than 3 GB, in this case 
> assigned memory is showing 65 MB.
>  # If topology.worker.childopts memory+ topology.worker.logwriter.childopts 
> memory is below 50 for last 2 digits.
> For eg.,
> topology.worker.childopts = 2048 MB
> topology.worker.logwriter.childopts = 64 MB
> Total = 2112 MB
> Here, last 2 digits are below 50, in this case assigned memory is showing 65 
> MB.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to