I use sympy - symbolic library in python.
Here is the response.
Question: Can Sympy serve as much as memory allows?
Answer:
That depends on how many SymPy processes mod_wsgi sets up.
I have no idea how mod_wsgi works, so I can't say much about that.
It's likely configurable.
Also, it's likely a good idea to have a separate SymPy process per web
request, simply to keep sessions of different users separate.
In that case SymPy can indeed serve as much as memory allows.
On Thursday, March 12, 2015 at 2:18:08 PM UTC+2, Paul Royik wrote:
>
> Here is my express-config
> mod_wsgi-express setup-server
> --working-directory ${SITE_NAME}
> --server-root express --port ${SITE_PORT}
> --log-directory ${LOG_DIR} --access-log --access-log-format
> "${LOG_FORMAT}"
> --access-log-name access_${APPL_NAME}.log --error-log-name
> error_${APPL_NAME}.log
> --python-path ${SITE_ROOT}/lib/python${PYTHON_VERSION}
> --threads 10
> --service-script tasks $SITE_NAME/$SITE_NAME/timeout/task-queue-manager.py
> $SITE_NAME/$SITE_NAME/wsgi.py
>
> Don't see where I can tune number of processes.
> Also, I will find out about how many instances can external library handle
> and let you know.
>
> On Thursday, March 12, 2015 at 3:38:17 AM UTC+2, Graham Dumpleton wrote:
>
>
> On 12/03/2015, at 4:06 AM, Paul Royik <[email protected]> wrote:
>
> I still experience problems with memory overflow on webfaction
> But it seems that problem is not in service:tasks (it takes only 9 MB).
> I don't know why there are so many other threads.
>
> simamura - 1MB - 23:37:52 - 1571 -
> /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f
> /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start
> simamura - 43MB - 23:37:52 - 1587 -
> /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f
> /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start
> simamura - 43MB - 23:37:52 - 1588 -
> /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f
> /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start
> simamura - 2MB - 23:37:52 - 1589 -
> /home/simamura/webapps/django_gradis/apache2/bin/httpd.worker -f
> /home/simamura/webapps/django_gradis/apache2/conf/httpd.conf -k start
>
>
> Your other Apache instance.
>
> simamura - 2MB - 23:42:53 - 23836 - 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
>
>
> Apache parent process.
>
> simamura - 3MB - 11:08:36 - 4462 - 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
>
> simamura - 3MB - 13:37:49 - 18634 - 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
>
>
> Apache child worker processes which proxy to mod_wsgi daemon processes.
>
> simamura - 114MB - 0:16:12 - 10076 - (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
> simamura - 120MB - 0:15:15 - 11838 - (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
> simamura - 131MB - 0:11:15 - 20119 - (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
>
> ...
--
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.