#80 ✓invalid
rolando

YYdscvafZTgajkdfv

Reported by rolando | September 1st, 2008 @ 10:23 PM | in Future

If requesting a large (over 600MB) static file, thin eats a lot of memory, here are some hints:

rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -fu rolando
UID        PID  PPID  C STIME TTY          TIME CMD
rolando  20951 20948  0 12:08 ?        00:00:00 sshd: rolando@pts/1
rolando  20952 20951  0 12:08 pts/1    00:00:00 -bash
rolando  21038     1  6 12:15 ?        00:00:00 thin server (0.0.0.0:3000)                                                                     
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1524 -bash
21038 14848 thin server (0.0.0.0:3000)                                                                                                         
21043   876 ps -opid,rss,cmd -u rolando
# here I request a large static file
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1524 -bash
21038 166284 thin server (0.0.0.0:3000)                                                                                                        
21044   872 ps -opid,rss,cmd -u rolando
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1524 -bash
21038 291064 thin server (0.0.0.0:3000)                                                                                                        
21045   876 ps -opid,rss,cmd -u rolando
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1524 -bash
21038 310892 thin server (0.0.0.0:3000)                                                                                                        
21046   876 ps -opid,rss,cmd -u rolando
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1520 -bash
21038 399180 thin server (0.0.0.0:3000)                                                                                                        
21047   876 ps -opid,rss,cmd -u rolando
# had to kill it the hard way
rolando@prod01:/var/www/spawner/sites/scio.cl$ kill -9 21038
rolando@prod01:/var/www/spawner/sites/scio.cl$ ps -opid,rss,cmd -u rolando
  PID   RSS CMD
20951   664 sshd: rolando@pts/1
20952  1516 -bash
21048   876 ps -opid,rss,cmd -u rolando

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages