Skip to content

help request: file descriptor overflow when use request-id plugin nanoid algorithm #8931

Description

@saiyan-qx

Description

When i use request-id plugin nanoid algorithm,file descriptor increse to the limit of worker_rlimit_nofile : 20480,then cause the error : Too many open files。

I use lsof -p command, find a lot of file descriptors like this:
openresty 955 nfsnobody 45r CHR 1,9 0t0 71005690 /dev/urandom
openresty 955 nfsnobody 46r CHR 1,9 0t0 71005690 /dev/urandom
openresty 955 nfsnobody 47r CHR 1,9 0t0 71005690 /dev/urandom
openresty 955 nfsnobody 48r CHR 1,9 0t0 71005690 /dev/urandom
openresty 955 nfsnobody 49r CHR 1,9 0t0 71005690 /dev/urandom
openresty 955 nfsnobody 50r CHR 1,9 0t0 71005690 /dev/urandom

Thanks!

Environment

  • APISIX version 3.0
  • Operating system : Linux XXX 3.10.0-1160.80.1.el7.x86_64 change: added doc of how to load plugin. #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version :nginx version: openresty/1.21.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions