El 02/09/10 17:34, mario alejandro escribió:
I have a small vps with 512 ram. I switch to cherokee for the promise of
lower resource consumption.
However, my vps is death each week because get out of ram. I have 1
wordpress, mysql, 2 django sites, low traffic.
It would help if you provide some more information, like versions of
django and cherokee or how did you setup the django apps in cherokee.
Assuming you've set it up using flup, you should try uWSGI, it is quite
impressive. This is my result for a small-size site (about 30 users
using a hosting-management panel written in django, involving
postgresql, openldap and file access):
13303 www 10 44 0 40168K 8348K umtxn 0 1:32 0.00%
cherokee-worker
13394 www 1 44 0 74168K 27900K accept 1 0:13 0.00%
uwsgi
13393 www 1 44 0 48596K 14044K select 0 0:13 0.00%
uwsgi
Works quite well.
IMHO, 67Mb for a single python process is quite a big ammount of memory,
what does your application do?
I wonder how tweak the dajngo config so use less memory:
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
549 root 74M 67M sleep 59 0 0:04:28 0.0% python2.5/1
548 root 74M 67M sleep 59 0 0:02:47 0.0% python2.5/1
502 root 73M 66M sleep 59 0 0:01:38 0.0% python2.5/1
500 root 72M 65M sleep 59 0 0:00:42 0.0% python2.5/1
501 root 49M 42M sleep 59 0 0:01:14 0.0% python2.5/1
91 root 36M 28M sleep 59 0 0:03:36 0.0% python2.5/1
90 root 37M 28M sleep 1 0 0:01:43 0.0% python2.5/1
29 root 37M 28M sleep 30 0 0:01:57 0.0% python2.5/1
48 root 35M 27M sleep 59 0 0:03:09 0.0% python2.5/1
27 root 35M 26M sleep 59 0 0:01:47 0.0% python2.5/1
2457 root 16M 12M sleep 59 0 0:31:21 0.0% cherokee-worker/40
2317 root 9724K 7916K sleep 29 0 0:02:05 0.0% svc.configd/12
2315 root 9796K 7668K sleep 29 0 0:01:13 0.0% svc.startd/14
2363 root 8692K 5300K sleep 58 0 0:10:16 0.0% nscd/28
26114 root 7720K 3704K sleep 59 0 0:00:00 0.0% sshd/1
27209 root 4716K 3064K cpu0 59 0 0:00:00 0.0% prstat/1
2842 root 22M 2896K sleep 58 0 0:02:44 0.0% python2.5/1
2510 root 22M 2844K sleep 59 0 0:03:03 0.0% python2.5/1
8224 postfix 6292K 2536K sleep 59 0 0:00:02 0.0% tlsmgr/1
26255 postfix 6280K 2508K sleep 59 0 0:00:00 0.0% pickup/1
2501 postfix 6420K 2464K sleep 59 0 0:00:10 0.0% qmgr/1
2493 root 6264K 2420K sleep 59 0 0:03:25 0.0% master/1
26120 jill 4404K 2376K sleep 59 0 0:00:00 0.0% bash/1
2430 root 4356K 2308K sleep 59 0 0:00:00 0.0% inetd/3
26243 root 3292K 2196K sleep 59 0 0:00:00 0.0% bash/1
26118 jill 7736K 2088K sleep 59 0 0:00:00 0.0% sshd/1
2429 root 4196K 1984K sleep 59 0 0:26:00 0.0% syslogd/15
2426 root 10M 1824K sleep 59 0 0:00:02 0.0% miniserv.pl/1
2442 root 4188K 1640K sleep 59 0 0:00:00 0.0% authdaemond/1
2449 root 4256K 1620K sleep 59 0 0:00:00 0.0% authdaemond/1
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
106 45 507M 473M 1.4% 1:44:28 0.0% gq39acab
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee