-
-
Pages
Categories
Tags
압축 64bit android bash commands cpan debian development dmidecode dns find firefox flash forensics fuser git gpg gzip hacker http ipw3945 links::eunchul linux m1330 mail mysql passenger pdf perl php ps2pdf rails ruby security spam spamassassin ssh subroutines system tar tunneling ubuntu virtualization wireless xenArchives
Category Archives: system
Passenger 설정으로 Rails 응답속도 개선하기.
새벽에 잠이 안와서 미루고 미뤄뒀던, passenger 세부 설정을 살펴보았다.
문제는, 한동안 접속이 없다가 페이지 접속을 시도하면 처음 응답까지 대략 10여초는 족히 걸리는 것이다.
한번 접속한뒤에는 메모리에 올라와서 응답속도가 정상으로 돌아오지만..
환경: Debian Lenny amd64, Memory 256MB, ruby-1.9.3-dev, rails3-beta3, passenger-2.2.11, apache2.2
우선 Configuration Phusion Passenger 를 읽어보고, 서버 환경에 맞게끔 수치를 조절하면서 적용을 시켜보면 될것이다.
Global server configuration
…
PassengerMaxPoolSize 4
PassengerPoolIdleTime 0
RailsFrameworkSpawnerIdleTime 0
RailsAppSpawnerIdleTime [...]
Create LVM
pvcreate
# pvcreate /dev/sda8
Physical volume “/dev/sda8″ successfully created
# pvdisplay
…
“/dev/sda8″ is a new physical volume of “37.24 GB”
— NEW Physical volume —
PV Name /dev/sda8
VG Name
PV Size [...]
Linux cron 관련 팁(?)