ERROR: Connection issue EMFILE

0

getting random error on querying from nodejs lambda: ERROR getaddrinfo EMFILE neptune-server-instance

Any advice welcome

gefragt vor 3 Jahren7335 Aufrufe
1 Antwort
0

EMFILE error means that the OS is denying your program to open more files/sockets. Please double check whether you are hitting following system limit in your lambda function [1] [2].

  1. /tmp directory storage: 512 MB
  2. File descriptors: 1,024

Few other things to check

  1. Are you closing connection after each invocation?
  2. What configuration your are using for your client? If you are using gremlin then what is your connection setting. May be you are opening too many connections than needed.

If all of this doesn't help then please share a minimal reproducer so that we can investigate the issue our side.

Thanks,
Ankit

[1] https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
[2] https://github.com/vendia/serverless-express/issues/239

Edited by: AnkitGuptaAtAWS on Feb 1, 2021 6:59 AM

Edited by: AnkitGuptaAtAWS on Feb 1, 2021 7:00 AM

AWS
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen