[Kss-devel] Kupu kss plugin | overhead
Vladislav Vorobiev
mymir.org at googlemail.com
Sun Oct 5 03:42:41 CEST 2008
Hello, i write a kupu plugin for zope (without plone).
My plugin works by now and Zope startup without problems.
The matter is, if I request my plugin for a first time
"http://localhost/mySiteWithKupuPlugin" zope makes overhead something
like follows for 3 minutes.
asks: 136 total, 1 running, 135 sleeping, 0 stopped, 0 zombie
Cpu0 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 1.0%us, 0.0%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 1035848k total, 1008016k used, 27832k free, 26100k buffers
Swap: 3927884k total, 92k used, 3927792k free, 471416k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24350 zope 20 0 81144 41m 3464 S 99 4.1 2:11.56 python2.4
My files
-rw-r--r-- 1 vavvav vavvav 549 2008-10-05 02:07 configure.zcml
-rw-r--r-- 1 root root 0 2008-10-05 02:07 configure.zcml~
-rw-r--r-- 1 vavvav vavvav 0 2008-10-05 01:54 __init__.py
-rw-r--r-- 1 vavvav vavvav 38 2008-10-05 01:53 ksstutorial-configure.zcml
-rw-r--r-- 1 vavvav vavvav 110 2008-10-05 03:11 tutorial.kss
-rw-r--r-- 1 vavvav vavvav 296412 2008-10-05 02:58 tutorialplugin.js
-rw-r--r-- 1 vavvav vavvav 25571 2008-10-05 03:16 tutorial.pt
My tutorialplugin.js file is very big because it includes all
kupu(*).js libreries.
It seems to be that zope analyze all this javascript code. Are there
methods to turn of the analyzing, for example outsourcing the
libereries in other file? I only want to load the libraries
dynamically if somebody requests kupu. Whats the standard method if I
have to load big *.js static libreries?
Thanks
Vlad
--
Best Regards
Vlad Vorobiev
More information about the Kss-devel
mailing list