Answer the question
In order to leave comments, you need to log in
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"
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question