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


(Thirunavukkarasu) #1

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.


(Mark Walkom) #2

How did you install LS?


(Thirunavukkarasu) #3

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.


(Mark Walkom) #4

if you answer this we can give you options.


(Thirunavukkarasu) #5

Hellow Warkolm,

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

Thanks,
Thiru.


(Thirunavukkarasu) #6

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.


(Mark Walkom) #7

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


(Thirunavukkarasu) #8

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.


(system) #9