Am 13.03.2015 um 15:49 schrieb Sudhanshu Mishra:
Hi Paul,
In a normal configuration apache keeps ~7 instances alive. When there are
more concurrent users than this number, apache forks more processes.
More or less correct.
Most Apache configurations are not "normal" in this sense though; number
of processes is one of the first things admins tweak.
> The
number of concurrent users will be limited when apache fails to fork a new
process i.e. no more memory is left.
In practice, I wouldn't let Apache fork until it cannot fork anymore.
Except, maybe, on a machine that runs nothing but Apache processes, but
usually you want Apache to be able to start helper processes, and that
wouldn't work anymore if Apache can't start a new process.
> mod_wsgi and SymPy has nothing to do
with it.
SymPy has nothing to do with it, true.
mod_wsgi has its own process pool though. (This is typical for any
scripting modules in Apache.)
You can configure number of processes and number of threads.
I would suggest you to use HAProxy and distribute your app over multiple
instances or you can use a really high end server.
That's what one would do if the machine is indeed overloaded, yes.
However, before you do that, you need to identify the bottleneck. If
Paul's server is in the standard configuration for mod_wsgi, he might be
encountering 16 concurrent requests and mod_wsgi won't handle more than
15 at a time; other potential bottlenecks are CPU load, network load,
memory pressure, or something entirely different.
Blindly throwing more hardware at the problem is not really a
replacement for finding out what the actual problem is.
Paul should really ask a competent Apache administrator about what's
going on.
--
You received this message because you are subscribed to the Google Groups
"sympy" 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/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/55032D48.6060104%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.