Skip to content

Huge DirectMemory usage (Non Heap) and Threads #77

@Pill30

Description

@Pill30

Test

  • JMETER 5.6.2
  • JDK 21.0.4
  • http/2 (400) – No Async Controller
  • 20Mins
  • 400 Threads
  • 400 Ramp (6 Mins 40 Seconds)
  • Note: CMD LINE
  • 64GB Server
  • set HEAP=-Xms1g -Xmx30g -XX:MaxMetaspaceSize=256m
  • 10 (+-3) Second ThinkTime
  • Plugin: Latest (v2.0.5)

image

Results:
image

Heap Size (Extended to): ~8.9GB (Note: keeps increasing even though stable load)
Total Java Memory Used: ~28.6GB (Note: keeps increasing even though stable load)
Threads: 5317!!

This occurs with/without Async Controller
Issue discussed here by serputko Anton Serputko https://www.youtube.com/watch?v=SCrnKbeVXUg&t=7500s

Note: The box eventually runs out of Memory and you receive the message:
image
So it looks like there might be a Memory leak as well.

########################################################################

Note: Repeating the same test with http1.1 Samplers works as expected:
image

image

Heap Size (Extended to): ~9.7GB (Remains consistent with stable load)
Total Java Memory Used: ~9.7GB (Remains consistent with stable load)
Threads: 423 (aligns to JMeter Threads)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions