logstash icon indicating copy to clipboard operation
logstash copied to clipboard

unable to start when queue page size over 2147483648

Open kaisecheng opened this issue 2 years ago • 1 comments

Logstash fail to start when the page size is too high

Step to reproduce logstash.yml

queue.page_capacity: 2048mb

Log

[org.logstash.execution.AbstractPipelineExt] Logstash failed to create queue.
org.jruby.exceptions.RangeError: (RangeError) integer 2147483648 too big to convert to `int'

kaisecheng avatar Jul 28 '22 16:07 kaisecheng

The issue started with error "page file too small:

[2022-07-28T09:18:05,273][ERROR][org.logstash.execution.AbstractPipelineExt] Logstash failed to create queue.
java.io.IOException: Page file size is too small to hold elements

They increased the page file from 1058mb to 2048mb

The logstash config file:

logstash.yml.txt

Relevant config that triggered it

path.queue: /app/etss_data/data/logstash/persisted-queues
queue.max_bytes: 4096mb
queue.page_capacity: 2048mb

This cause the error:

[org.logstash.execution.AbstractPipelineExt] Logstash failed to create queue.
org.jruby.exceptions.RangeError: (RangeError) integer 2147483648 too big to convert to `int'

The full log can be found here: logstash.log.txt

Hope this helps.

Ed

pedrosk avatar Jul 28 '22 19:07 pedrosk

There is a size limitation in MappedByteBuffer in mmap page. FileChannel.map() size - The size of the region to be mapped; must be non-negative and no greater than Integer.MAX_VALUE This issue wouldn't be fixed. An action item is to write max page capacity limit in doc

kaisecheng avatar Aug 15 '22 14:08 kaisecheng