On September 8, 2008 08:59:13 am Jim Razmus wrote: > I suspect this may be off topic, but here goes. > > Is it normal to wait 1-5 seconds for a plone page to render while python > eats 80-90% of my servers cpu? > > I have to believe I've done something wrong... > > Feel free to email me directly if this is totally off topic and you have > some wisdom to share. > > FWIW, installed Plone 3.0.6 with Zope 2.10.5 running on OpenBSD i386 > -current. > > Any pointers greatly appreciated! > > Jim
Hi, I just sent 25 requests using http_load to my public web server which runs Plone 3.1.2 Zope 2.10.6 Python 2.4.4p6 on OpenBSD 4.3 GENERIC#698 i386 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ ("AuthenticAMD" 686-class, 1024KB L2 cache). and got the following output from top. load averages: 0.15, 0.15, 0.09 09:24:37 33 processes: 32 idle, 1 on processor CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.8% interrupt, 99.2% idle Memory: Real: 121M/363M act/tot Free: 3031M Swap: 0K/4103M used/tot PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND 26545 _zope 2 0 101M 106M sleep poll 40:14 0.15% python2.4 24849 _nrpe 2 0 384K 1080K sleep select 2:24 0.00% nrpe 19098 _pflogd 4 0 520K 388K sleep bpf 2:14 0.00% pflogd 25278 www 2 0 1276K 2312K sleep select 1:37 0.00% httpd 25924 root 2 0 1152K 1836K sleep select 0:59 0.00% sendmail 12517 root 2 0 3712K 4120K sleep poll 0:23 0.00% python2.4 32736 _ntp 2 0 360K 748K idle poll 0:04 0.00% ntpd 18062 _syslogd 2 0 528K 788K sleep poll 0:05 0.00% syslogd 3252 root 2 0 568K 868K idle select 0:03 0.00% cron 5580 root 2 0 688K 1276K idle select 0:02 0.00% sshd 1 root 10 0 496K 340K idle wait 0:02 0.00% init 8571 www 2 0 1368K 2048K idle netcon 0:01 0.00% httpd 1) I am using zeo and before setting up zeo with Plone 3.0.5 last year I did notice a larger CPU usage 2) Plone and Zope were built from source using the same compiler flags as in ports -- no major changes. 3) I have only Python 2.4.4p6 on the server and compiled everything that required 2.5 to use 2.4. Previously, when I had both 2.4 and 2.5 running, I had made mistakes with dependencies and that had caused some performance problems. Hope this helps. Right now I am testing out Plone 3.1.5.1 with -current as of Aug 26, 2008 (Zope 2.10.6 with Python 2.4.4p7) and don't see high CPU there either. So may be it is useful to test your site with newer versions of Plone and Zope. -- Vijay Sankar, M.Eng., P.Eng. ForeTell Technologies Limited 59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6 Phone: +1 204 885 9535, E-Mail: [EMAIL PROTECTED]