I isolated algorithm and it worked.

However, I don't see any improvement in memory usage.
Actually, things become even worse.

27242 80580 (wsgi:localhost:20241:1092) -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
27243 45108 (wsgi:service:tasks)        -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
27244  3076 httpd (mod_wsgi-express)    -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
27345  2860 httpd (mod_wsgi-express)    -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
27393  3024 httpd (mod_wsgi-express)    -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
30377 41568 (wsgi:service:tasks)        -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
30902 41620 (wsgi:service:tasks)        -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
30914 41604 (wsgi:service:tasks)        -f 
/home/simamura/webapps/django_math/express/httpd.conf -DWSGI_ACCESS_LOG 
-DWSGI_MPM_ENABLE_EVENT_MODULE -DWSGI_MPM_EXISTS_EVENT_MODULE 
-DWSGI_MPM_EXISTS_WORKER_MODULE -DWSGI_MPM_EXISTS_PREFORK_MODULE -k start
Total 359.777 MB

Perhaps, because I use external library? I can't isolate it.

On Friday, February 27, 2015 at 2:11:44 PM UTC+2, Paul Royik wrote:
>
> OK. I will try
>
> On Friday, February 27, 2015 at 2:08:34 PM UTC+2, Graham Dumpleton wrote:
>
> The likely issue then is the fact that you stuck your algorithm 
> in mathsite/utils.py. Thus it is within your sites code.
>
> If mathsite/__init__.py is not just an empty file and instead drags in 
> other parts of your code or Django, then you will infect your algorithm 
> code even if the algorithm code doesn't use Django itself.
>
> The only way around that would be to split the utils.py function out into 
> a separate package.
>
> Thus, parallel to mathsite directory create a directory mathutils. In that 
> create an empty __init__.py and then move mathsite/utils.py and any other 
> non web site files it uses into mathsite.
>
> You would then be importing mathutils.utils instead of mathsite.utils.
>
> So you are separating the two code bases so they are independent.
>
> I am going to sleep now. See if you can work out what I mean by that and 
> collect together than other information I asked about the install location 
> of the 'django' package and what is in the httpd.conf file.
>
> Right now it almost appears like you accidentally uninstalled django.
>
> Graham
>
> On 27/02/2015, at 11:03 PM, Paul Royik <[email protected]> wrote:
>
> The reason is not in settings.
> I just use reverse function.
> When I removed it, new error appeared, connected with Django logging.
> But I don't use logging.
>
> On Friday, February 27, 2015 at 1:54:19 PM UTC+2, Graham Dumpleton wrote:
>
>
> On 27/02/2015, at 11:15 AM, Paul Royik <[email protected]> wrote:
>
> I don't use database, but use settings and it keeps telling me, that 
> setting
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to