title: Increasing assigned memory for a topology in Storm
body: <p>I have a 10 node cluster with each machine of 8 GB RAM and when I run my topology, the assigned memory is always proportional to the number of workers. And each worker is approximately taking a 1 GB of Memory. I want to allot 2 GB to each worker I tried to set in storm.yaml as <code>worker.childopts: "-Xmx6g -Xms6g"</code> since I am running three workers in each node. But the assigned memory decreased to below 1 GB.</p>
  
  <p>How to tune my topology better?</p>
  
  <p>I am getting the following error in one of my bolts</p>
  
  <blockquote>
    <p>java.lang.OutOfMemoryError: Java heap space at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57) at java.nio.ByteBuffer.allocate(ByteBuffer.java:335) at org.apache.kafka.common.memory.MemoryPo</p>
  </blockquote>