Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errno::ENOMEM: Cannot allocate memory #12

Open
berniechiu opened this issue Apr 14, 2020 · 3 comments
Open

Errno::ENOMEM: Cannot allocate memory #12

berniechiu opened this issue Apr 14, 2020 · 3 comments

Comments

@berniechiu
Copy link

Hi Yabeda-rb team,

We've bumped into issues like this

Screenshot 2020-04-14 17 55 37

Is there any possibility to dump the file store properly?

@Envek
Copy link
Member

Envek commented Apr 14, 2020

Hi! Can you please provide some more information?

  1. What are versions of yabeda, yabeda-prometheus, and prometheus-client?
  2. How is your prometheus-client is configured?
  3. How many metrics do you have?
  4. When you observe memory issues? E.g. long uptime or peak load or something else?

Anything that can help me to understand why it happens.

@berniechiu
Copy link
Author

berniechiu commented Apr 14, 2020

What are versions of yabeda, yabeda-prometheus, and prometheus-client?

The latest version as of today

    yabeda (0.5.0)
      concurrent-ruby
      dry-initializer
    yabeda-prometheus (0.5.0)
      prometheus-client (~> 1.0)
      yabeda (~> 0.5)
    prometheus-client (1.0.0)

How is your prometheus-client is configured?

We've only added this line as the documentation suggested

Prometheus::Client.config.data_store = Prometheus::Client::DataStores::DirectFileStore.new(dir: '/tmp/prometheus_direct_file_store')

How many metrics do you have?

We've only installed these two

    yabeda-puma-plugin (0.3.0)
      json
      puma
      yabeda (~> 0.2)
    yabeda-rails (0.4.0)
      rails
      yabeda (~> 0.4)

When you observe memory issues? E.g. long uptime or peak load or something else?

It's randomly popping up in our Error Monitoring actually, not particularly under high load.

Thanks a lot!

@berniechiu
Copy link
Author

I've also posted the issue here, might be because of the ruby client
prometheus/client_ruby#185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants