Skip to content

Abnormal Memory Usage in Python Execution with Excessive python-actions-pool-* Threads #517

@AnyuZhao

Description

@AnyuZhao

Description:

When executing Python code using GraalVM, we're observing abnormal memory consumption patterns. Specifically:

The runtime creates an excessive number of threads named python-actions-pool-xxx-thread-N (where xxx is a numeric ID).
Under concurrency:
For every Python execution thread, we see a corresponding python-actions-pool-xxx thread created
At 1000 execution threads, we observe approximately 1000 python-actions-pool-* threads generated
Image

Critical Questions:

Is the 1:1 relationship between execution threads and python-actions-pool-* threads intentional?

Image

Does this thread proliferation directly contribute to the observed memory bloat?
What mechanisms exist to throttle/pool these threads to prevent linear scaling?

Environment:

GraalVM JDK17

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