I
I
IvanN7772015-06-20 09:23:01
Ruby on Rails
IvanN777, 2015-06-20 09:23:01

Are memory leaks possible and how to deal with it (thin server)?

Hello.
I ran into a problem that after 2 weeks the server (thin) unexpectedly stopped for me. I restarted it, of course, and it worked.
But it is clear that this is a temporary measure.
The first thing I thought was that I configured the environment incorrectly and there is a memory leak.

config.cache_classes = false
  config.eager_load = false
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = false
  config.action_mailer.raise_delivery_errors = false
  config.active_record.migration_error = :page_load
  config.assets.digest = true
  config.assets.raise_runtime_errors = false
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
      :address               =>  "smtp.gmail.com",
      :port                  =>  587,
      :domain                =>  "xxxxxxxxxx",
      :user_name            => 'xxxxxxxxxx',
      :password             => 'xxxxxxxxxx',
      :authentication        =>  :plain,
      :enable_starttls_auto =>  true
  }
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  ENV["APP_KEY"]="xxxxxxxxxx"
  ENV["APP_SECRET"]="xxxxxxxxxx"
  ENV["ACCESS_TOKEN"]="xxxxxxxxxx"
  ENV["ACCESS_TOKEN_SECRET"]="xxxxxxxxxx"
  ENV["USER_ID"]="412795044"
  ENV["ACCESS_TYPE"]="auto"

The environment is still in development, is there a problem with this?
How to figure it out.???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2015-06-20
@Ernillew

By practice. Once, quite a long time ago, I used thin for redmine, it started to fool around on the second or third day, at first they just shut it up with a restart in the crown, then they refused thin.

C
caution, 2015-06-20
@caution

to start looking at the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question