# Logstash Pod JVM Usage is almost 100% after 7.17.x to 8.18.x upgrade

**URL:** <https://discuss.elastic.co/t/logstash-pod-jvm-usage-is-almost-100-after-7-17-x-to-8-18-x-upgrade/381566>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [September 3, 2025, 12:04pm UTC](https://discuss.elastic.co/t/logstash-pod-jvm-usage-is-almost-100-after-7-17-x-to-8-18-x-upgrade/381566 "2025-09-03T12:04:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivas974](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srinivas974/32/144873_2.png) [@srinivas974](https://discuss.elastic.co/u/srinivas974)\
**Post date:** [September 3, 2025, 12:04pm UTC](https://discuss.elastic.co/t/logstash-pod-jvm-usage-is-almost-100-after-7-17-x-to-8-18-x-upgrade/381566/1 "2025-09-03T12:04:32Z")

</div>

Using logstash 8.18.14  
We are running logstash on Dev and QA environments with the same version and we observed JVM usage of almost 100%.

We process approximately 3000 logs/sec and of size ~1.5KB. Here are the logstash settings. Could you help in checking this issue.

Please let me if what more details needed from my end.

> logstash.yml: |
> 
> http.host: 0.0.0.0
> 
> pipeline.batch.size: 250
> 
> pipeline.workers: 6
> 
> xpack.monitoring.enabled: false
> 
> pipeline.batch.delay: 30
> 
> dead\_letter\_queue.max\_bytes: 2147483648
> 
> # Add queue settings for better memory management
> 
> queue.type: persisted
> 
> queue.max\_bytes: 2gb
> 
> logstashJavaOpts: "-Xmx8g -Xms8g -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+UseStringDeduplication -XX:G1HeapRegionSize=8m -XX:InitiatingHeapOccupancyPercent=35 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC"
> 
> replicas: 4
> 
> resources:
> 
> requests:
> 
> cpu: "6"
> 
> memory: "16Gi"
> 
> limits:
> 
> cpu: "10"
> 
> memory: "20Gi"

Logstash Image Dockerfile content

> FROM [docker.elastic.co/logstash/logstash:8.18.4](http://docker.elastic.co/logstash/logstash:8.18.4)
> 
> RUN bin/logstash-plugin install logstash-filter-age
> 
> RUN bin/logstash-plugin install logstash-filter-http
> 
> RUN bin/logstash-plugin install logstash-input-google\_pubsub
> 
> USER root
> 
> RUN apt-get update
> 
> RUN apt-get install -y shared-mime-info
> 
> USER logstash
> 
> RUN bin/logstash-plugin install logstash-input-google\_cloud\_storage
