# java.io.IOException: Page file size is too small to hold elements

**URL:** https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002
**Category:** Logstash
**Created:** [July 30, 2019, 10:58pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002 "2019-07-30T22:58:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [July 30, 2019, 10:58pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/1 "2019-07-30T22:58:17Z")

</div>

I am getting the below message on 7.2.0 logstash. I use the same pipeline i had for 6.x but with 7.2.0 i get the below error. Any ideas?

root@d-gp2-es46-4:/var/log/logstash# cat logstash-plain.log  
[2019-07-30T22:48:17,235][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.2.0"}  
[2019-07-30T22:48:19,133][INFO][logstash.monitoring.internalpipelinesource] Monitoring License OK  
[2019-07-30T22:48:19,136][INFO][logstash.monitoring.internalpipelinesource] Validated license for monitoring. Enabling monitoring pipeline.  
[2019-07-30T22:48:23,821][ERROR][org.logstash.execution.AbstractPipelineExt] Logstash failed to create queue.  
java.io.IOException: Page file size is too small to hold elements  
at org.logstash.ackedqueue.io.MmapPageIOV2.mapFile(MmapPageIOV2.java:275) ~[logstash-core.jar:?]  
at org.logstash.ackedqueue.io.MmapPageIOV2.open(MmapPageIOV2.java:64) ~[logstash-core.jar:?]  
at org.logstash.ackedqueue.Queue.open(Queue.java:193) ~[logstash-core.jar:?]  
at org.logstash.ackedqueue.ext.JRubyAckedQueueExt.open(JRubyAckedQueueExt.java:101) ~[logstash-core.jar:?]  
at org.logstash.ackedqueue.ext.JRubyWrappedAckedQueueExt.initialize(JRubyWrappedAckedQueueExt.java:42) ~[logstash-core.jar:?]  
at org.logstash.ackedqueue.QueueFactoryExt.create(QueueFactoryExt.java:39) ~[logstash-core.jar:?]  
at org.logstash.execution.AbstractPipelineExt.openQueue(AbstractPipelineExt.java:169) [logstash-core.jar:?]  
at org.logstash.execution.AbstractPipelineExt$INVOKER$i$0$0$openQueue.call(AbstractPipelineExt$INVOKER$i$0$0$openQueue.gen) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:831) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183) [jruby-complete-9.2.7.0.jar:?]  
at usr.share.logstash.logstash\_minus\_core.lib.logstash.java\_pipeline.RUBY$method$initialize$0(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:25) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:296) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:82) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.RubyClass.newInstance(RubyClass.java:915) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183) [jruby-complete-9.2.7.0.jar:?]  
at usr.share.logstash.logstash\_minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0(/usr/share/logstash/logstash-core/lib/logstash/pipeline\_action/create.rb:36) [jruby-complete-9.2.7.0.jar:?]  
at usr.share.logstash.logstash\_minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0$ **VARARGS** (/usr/share/logstash/logstash-core/lib/logstash/pipeline\_action/create.rb) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:91) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:90) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:183) [jruby-complete-9.2.7.0.jar:?]  
at usr.share.logstash.logstash\_minus\_core.lib.logstash.agent.RUBY$block$converge\_state$2(/usr/share/logstash/logstash-core/lib/logstash/agent.rb:325) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:136) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:77) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.runtime.Block.call(Block.java:124) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.RubyProc.call(RubyProc.java:295) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.RubyProc.call(RubyProc.java:274) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.RubyProc.call(RubyProc.java:270) [jruby-complete-9.2.7.0.jar:?]  
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105) [jruby-complete-9.2.7.0.jar:?]  
at java.lang.Thread.run(Thread.java:748) [?:1.8.0\_144]

---

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [July 30, 2019, 11:03pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/2 "2019-07-30T23:03:19Z")

</div>

here is the full error stack ...

[https://justpaste.it/72pxf](https://justpaste.it/72pxf)

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 31, 2019, 1:28pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/3 "2019-07-31T13:28:13Z")

</div>

> [@kyle\_che](#):
>
> Page file size is too small to hold elements

See [this](https://github.com/elastic/logstash/issues/8480) issue.

---

<div class="post-metadata">

### Author: ![kyle\_che](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@kyle\_che](https://discuss.elastic.co/u/kyle_che)
#### Post date: [August 1, 2019, 4:05pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/4 "2019-08-01T16:05:21Z")

</div>

i saw that one when doing a search ... not sure if that's applicable to me but how do i "had to purge queue to fix the problem"?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [August 1, 2019, 4:53pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/5 "2019-08-01T16:53:50Z")

</div>

I believe it refers to deleting the files in the directory that path.queue points to.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 29, 2019, 4:53pm UTC](https://discuss.elastic.co/t/java-io-ioexception-page-file-size-is-too-small-to-hold-elements/193002/6 "2019-08-29T16:53:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
