Long running server processes

My settings for rails are pretty good, however the deployment process can maximize memory and have some problems.

According to the server guys, there are 3 lengthy processes that use memory and need to be processed

Ruby processes: 
user@app-hippogo-production-6628:~$ ps -p 15892 -o etime= 1-20:00:43 
user@app-hippogo-production-6628:~$ ps -p 15903 -o etime= 1-20:00:52 
user@app-hippogo-production-6628:~$ ps -p 15925 -o etime= 1-20:01:07

Postgres process: 
user@app-hippogo-production-6628:~$ ps -p 14495 -o etime= 10-19:58:59

Should I somehow configure the application to close the ruby ​​and postgres processes? How can i do this? Some information about what exactly is happening and should happen will be appreciated.

UPDATE Processes use a total of 690 MB of memory

I'm on the rails 4.1.8 Ruby 2.2.5

I use thin as a server

I deploy the server on a ninefold server, they have their own system, which is deployed when transferred to a repo, a bit like a hero. I think this is a chef.

+4
1

, , , .

? -? ? (, EC2, Heroku Capistrano? Docker?)?

0

All Articles