Finally everything works now...
But, I have another question. Sorry for disturbing you, and thanks for your help again. Actually I noticed that pages which I serve via cherokee are slower then pages which are served by apache. (Including that fact that static content is served by apache also quicker.) I know that it's a separate question, so it might be better to start it in another thread, but it well may be related to my configuration (which is described here) So for example, I have 2 links: http://j-in.org.ua (served by apache) http://j-in.org.ua:81 (served by cherokee) And If I am for example trying to compare quickness of serving static file from the page http://j-in.org.ua/article/party_shot_sony/ (and http://j-in.org.ua:81/article/party_shot_sony/ on cherokee) I see that static files are served quicker on first url. e.g. http://j-in.org.ua:81/site_media/images/header.png (served in 330ms) and http://j-in.org.ua:81/site_media/images/header.png (served in 300ms) My hosting provider, claims that I have bandwidth of 10Mb/s. I also made experiments one by one, and looked on results in firebug How can it be explained Thanks again, Sorry for disturbing You, Oleg On Sun, Aug 23, 2009 at 8:29 PM, Oleg Oltar <[email protected]> wrote: > Yes, I am using apache now > > > But planning to migrate to cherokee, now I am trying to prepare my > production environment for it. > Also I am running apache in wsgi mode, and it don't start python processes, > like that > > I am trying to switch django to threaded mode like it's described here > http://www.cherokee-project.com/doc/cookbook_django.html > > And again, thank you for quick answers!!! > > > Oleg > > > > On Sun, Aug 23, 2009 at 8:23 PM, Alvaro Lopez Ortega > <[email protected]>wrote: > >> That's Apache.. >> >> >> On 23-ago-09, at 19:12, Oleg Oltar wrote: >> >> Hm... >>> >>> I see. >>> >>> Here is part of my top command output >>> >>> 579 oleg 20 0 53064 22m 4160 S 0.0 5.6 0:03.49 httpd >>> 454 mysql 20 0 112m 18m 5512 S 0.0 4.7 0:04.71 mysqld >>> 357 named 20 0 67440 13m 2216 S 0.0 3.3 0:00.10 named >>> 1713 root 20 0 26340 10m 1780 S 0.0 2.7 0:00.09 python >>> 1712 root 20 0 25984 10m 1760 S 0.0 2.6 0:00.08 python >>> 1714 root 20 0 26912 10m 1764 S 0.0 2.6 0:00.08 python >>> 1711 root 20 0 25780 10m 1764 S 0.0 2.6 0:00.07 python >>> 562 root 20 0 31328 10m 6068 S 0.0 2.6 0:00.17 httpd >>> 1709 root 20 0 24696 8740 1056 S 0.0 2.1 0:00.00 python >>> 1736 root 20 0 24696 8240 556 S 0.0 2.0 0:00.00 python >>> >>> >>> There are plenty python processes started, after I just clicked once on a >>> site. Do you know how to run django in thread mode (I am also searching in >>> docs now) >>> >>> >>> Thanks, >>> Oleg >>> >>> There should only we one python/django process in memory. If there's more >>> than one it should be because Django y fork()ing to attend client petitions. >>> If that were the case, it could help is you launched Django to use threads >>> instead of processes (although it'd be slightly less secure) >>> >>> >>> >>> >>> On Thu, Aug 6, 2009 at 4:49 PM, Alvaro Lopez Ortega <[email protected]> >>> wrote: >>> Hello Oleg, >>> >>> >>> On 06-ago-09, at 13:44, Oleg Oltar wrote: >>> >>> I want to say huge thanks! Now it works. >>> >>> Am glad to read that :) >>> >>> >>> Also another big problem is that after running the server from admin, it >>> consumed all my memory >>> (I am using cheap VDS, so have only 256 RAM there), maybe there is a way >>> to limit memory usage? >>> >>> Here you can find a few tricks to reduce the server memory footprint: >>> >>> http://lists.octality.com/pipermail/cherokee/2009-August/010854.html >>> >>> The default configuration supposes a modern server plenty of memory, but >>> of course you can reconfigure it to use less memory (~3.5Mb RSS as far as I >>> remember). >>> >>> >>> -- >>> Octality >>> http://www.octality.com/ >>> >>> >>> >>> -- >>> Octality >>> http://www.octality.com/ >>> >>> >>> >> -- >> Octality >> http://www.octality.com/ >> >> >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
