# How to Resolve \`QueueRuntimeException: Data to be written is bigger than page capacity\` in Logstash Exec Input Plugin?

**URL:** <https://discuss.elastic.co/t/how-to-resolve-queueruntimeexception-data-to-be-written-is-bigger-than-page-capacity-in-logstash-exec-input-plugin/374930>\
**Category:** Logstash\
**Created:** [February 24, 2025, 8:31am UTC](https://discuss.elastic.co/t/how-to-resolve-queueruntimeexception-data-to-be-written-is-bigger-than-page-capacity-in-logstash-exec-input-plugin/374930 "2025-02-24T08:31:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Bhise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_bhise/32/141241_2.png) [@A\_Bhise](https://discuss.elastic.co/u/A_Bhise)\
**Post date:** [February 24, 2025, 8:31am UTC](https://discuss.elastic.co/t/how-to-resolve-queueruntimeexception-data-to-be-written-is-bigger-than-page-capacity-in-logstash-exec-input-plugin/374930/1 "2025-02-24T08:31:09Z")

</div>

Hello Logstash Community,

I’m encountering a `QueueRuntimeException` in Logstash that says:"data to be written is bigger than page capacity"

 ![image-2025-01-29-22-07-44-428 (1)](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cf562d49122a2b7663567d92566cb14f2bbe62e.png)

Configurations are:

logstash.yml

```auto
pipeline.ordered: auto
config.support_escapes: true
path.logs: /path/logstash
http.enabled: true
http.port: 1234
http.host: localhost

```

pipeline.yml

```auto
- pipeline.id: tc-server-usage-analyse
  path.config: path/tc-server-usage-analyse.cfg
  queue.type: persisted

```

tc-server-usage-analyse.cfg

```auto
input {
   exec {
      command => '/path/monitoring_core.ksh -c /path/globalconfiguration.properties -e tc_server_usage_analyse.pl'
      schedule => "25 * * * *"
   }
}

filter {
   if [message] =~ "^\{.*\}[\s\S]*$" {
      json {
         source => "message"
         target => "parsed_json"
         remove_field => "message"
      }
      split {
         field => "[parsed_json][app]"
         target => "serverusageanalyse"
         remove_field => ["parsed_json"]
      } 

      mutate { 
         remove_field => ["[event][original]" ]
         add_field => { "instance" => "${instance}" }
      }
   } else {
     drop { }
   }
}

output {
   elasticsearch {
      hosts => "host"
      ilm_pattern => "{now/d}-000001"
      ilm_rollover_alias => "app-monitoring-serverusageanalyse"
      ilm_policy => "app-monitoring-common-policy"
      doc_as_upsert => true
      document_id => "%{[serverusageanalyse][uniqueId]}"
      user => "username"
      password => "password"
      compression_level => 1
      timeout => 300
      data_stream => false
   }
}

```

How do I address the issue of data exceeding the page capacity in the persisted queue? Are there any settings or adjustments I can make to handle large data from the exec input more effectively?

Any guidance is greatly appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [February 24, 2025, 8:50am UTC](https://discuss.elastic.co/t/how-to-resolve-queueruntimeexception-data-to-be-written-is-bigger-than-page-capacity-in-logstash-exec-input-plugin/374930/2 "2025-02-24T08:50:28Z")

</div>

[A similar issue](https://discuss.elastic.co/t/multiline-flush-downstream-error-java-io-ioexception-since-upgrading-from-6-8-to-7-12/274236)

---

<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:** [February 24, 2025, 1:52pm UTC](https://discuss.elastic.co/t/how-to-resolve-queueruntimeexception-data-to-be-written-is-bigger-than-page-capacity-in-logstash-exec-input-plugin/374930/3 "2025-02-24T13:52:37Z")

</div>

> [@A\_Bhise](#):
>
> Are there any settings or adjustments I can make to handle large data from the exec input more effectively?

I have never used it, but I think queue.page\_capacity can be used to increase the page size. Documented [here](https://www.elastic.co/guide/en/logstash/current/persistent-queues.html).
