sserdyuk wrote:
> Hi,
>
> Due to templating engine I am using, I am seeing very sizable private
> memory usage per pool instance and I'd like to optimize it. My believe
> is that it is due to my templating engine loading after Passenger
> "cans" the first instance, so every consecutive instance has to do
> this initialization again.
>
> I'd like to move that initialization sooner (basically preload), and I
> need to know at which point Passengers "smart" spawner method is done
> waiting for initialization.
>
> Please advise.
>
> Sergei.
If you preload your templates in environment.rb, then the resulting
allocated memory will be eligible for copy-on-write optimizations.
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)