You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Benjamin Cuthbert <cu...@gmail.com> on 2016/04/16 14:38:45 UTC

Set worker Xmx

All,

How do you set the individual worker Xmx settings for different topologies.

Re: Set worker Xmx

Posted by sam mohel <sa...@gmail.com>.
sorry message sent by mistake

On Sat, Apr 16, 2016 at 11:10 PM, sam mohel <sa...@gmail.com> wrote:

> same problem i tried it in code still read another
>

Re: Set worker Xmx

Posted by sam mohel <sa...@gmail.com>.
same problem i tried it in code still read another

Re: Set worker Xmx

Posted by "Matthias J. Sax" <mj...@apache.org>.
Do not add it to the yaml file, but set the parameter in the Config
object you hand over when submitting the topology. (Config values
overwrite yaml values)


Config c = new Config();
c.put("topology.worker.childopts", "-Xmx4g");

StormSubmitter.submitTopology("t-name", c, builder.createTopology());


-Matthias


On 04/16/2016 03:22 PM, Benjamin Cuthbert wrote:
> But does that not set it for all workers? What If I want to the specific?
> 
> Regards
>> On 16 Apr 2016, at 14:19, Matthias J. Sax <mj...@apache.org> wrote:
>>
>> topology.worker.childopts
>>
>> On 04/16/2016 02:38 PM, Benjamin Cuthbert wrote:
>>> All,
>>>
>>> How do you set the individual worker Xmx settings for different topologies.
>>>
>>
> 


Re: Set worker Xmx

Posted by Benjamin Cuthbert <cu...@gmail.com>.
But does that not set it for all workers? What If I want to the specific?

Regards
> On 16 Apr 2016, at 14:19, Matthias J. Sax <mj...@apache.org> wrote:
> 
> topology.worker.childopts
> 
> On 04/16/2016 02:38 PM, Benjamin Cuthbert wrote:
>> All,
>> 
>> How do you set the individual worker Xmx settings for different topologies.
>> 
> 


Re: Set worker Xmx

Posted by "Matthias J. Sax" <mj...@apache.org>.
topology.worker.childopts

On 04/16/2016 02:38 PM, Benjamin Cuthbert wrote:
> All,
> 
> How do you set the individual worker Xmx settings for different topologies.
>