DataDog / datadog-lambda-java

The Datadog AWS Lambda package for Java
Apache License 2.0
14 stars 14 forks source link

Periodical errors - Unable to create StatsD client / Unable to bind to an available socket / too many open files & error creating socket #84

Closed drobakowski closed 2 years ago

drobakowski commented 2 years ago

Hi @maxday,

after switching to the new Datadog Extension v22 with the release of serverless-plugin-datadog v5.0.1 we do see errors again (Unable to create StatsD client / Unable to bind to an available socket / too many open files & error creating socket), some of them we've seen first time with https://github.com/DataDog/datadog-lambda-java/issues/78:

image

as well as the following:

image

DD_RUNTIME_METRICS_ENABLED: false is still set.

Do you maybe have any idea what we're doing wrong or what have changed?

Thanks and all the best David

agocs commented 2 years ago

Hi @drobakowski , this might be related to #74 and might be fixed by #85 . I've released datadog-lambda-java v1.4.5 with that fix included. Let me know if you get a chance to test this out. -Chris

drobakowski commented 2 years ago

Hi @agocs, indeed this fixed the problem for us. Thanks for the work and sharing the info so fast!