Is it possible to give LS_HEAP_SIZE (-Xms and -Xmx) while starting logstash 1.4.2 or .15.2 like elasticsearch?

Hi,

Is it possible to give LS_HEAP_SIZE (-Xms and -Xmx) while starting logstash 1.4.2 or .15.2 like elasticsearch?

instead of changing the logstash.sh (We don't have permission on the logstash installation folder).

Can we give the below command?

logstash -d -Xms1024m -Xmx1024m agent -f logstash-test.conf

Thanks,
Thiru.

How did you install LS?

Hello Warkolm,

Our admin installed logstash and elasticsearch where we don't have write permission.

We used to run elasticsearch with HEAP_SIZE (-Xms1024m -Xmx1024m) without editing the yml file.

So, thought of asking like is there any way that we can give this HEAP_SIZE when we start logstash without modifying the logstash.sh where we don't have write permission.

Thanks,
Thiru.

if you answer this we can give you options.

Hellow Warkolm,

Our admin downloaded media from logstash website and made it as a tar file and untar it into our servers.

Thanks,
Thiru.

Hello Warkolm,

Do you still need more info for the way we installed LS?

If yes, please let us know.

If no, then could you please provide the options to run logstash with LS_HEAP_SIZE.

This will be great help.

Thanks,
Thiru.

Try setting it by declaring a n environment variable called LS_HEAP_SIZE.

Hello Warkolm,

I have declared an environment variable called LS_HEAP_SIZE and logstash is taking the value from this.

Thanks for the input.

Thanks,
Thiru.