Skip to content

Too much sleeping thread processes spawning and waiting for something #476

Description

@sashko-guz

Threads of vips is not correctly closed

In my application i have too much "sleeping" processes, that do nothing.

Application:

  • just simple http server, that receives the http request, process image and make response of it.

But, during the production usage and debug with pprof:

in htop:
1 root process
84 threadprocesses

in /debug/pprof

211 allocs
0 block
0 cmdline
4 goroutine
211 heap
0 mutex
0 profile
0 symbol
16 threadcreate
0 trace

so goroutine is working fine, but threadprocesses, that must be shutting down is growing and growing. Some of them are reused, but some — not, and still in memory.

already used
MALLOC_ARENA_MAX=2
and
Jemalloc

for memory allocation
Nothing working, the sleeping thread processes still exists

vips-8.15.1
go1.24.0 linux/amd64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions