Unable to use python multiprocessing on Apache2.4 Windows (Terminated p
From barudwale20@gmail.com@21:1/5 to All on Fri Apr 3 03:36:15 2020
I am using flask (with Python2.7.8) application hosted on Apache24 (v2.4.16 Win32) on Windows. I have used python multiprocessing library and Using Process to submit a process. A sample code is given as below:
START
file a.py
====================================
def task1(a,b,c):
# doing task here
END
START
file b.py
===========================================
from multiprocessing import Process
from a import task1
class B(object):
def __init__(self):
#initializaing variables
This code is working as expected when I am executing this with flask server. (creating python process and creating python child procecss of main process while calling Process(...).start())
But when I am executing the same code with Apache server by creating virtual host. The same code does create process but it does not execute and is already in Terminated state. (both parent and child process are httpd.exe processes).
I have tried to make changes in mpm config of Apache but it did not work or I could not configure it as expected. My current mpm config is as below.
Also I am unable to find any mpm module in modules folder in Apache. Any suggestions in order to make it work on Windows + Apache?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Zharous
Fri Jun 20 03:06:16 2025
from
Tempe, Az
via
Telnet
Plume
Fri Jun 20 02:26:52 2025
from
Uk
via
Telnet
Zeroryouko
Fri Jun 20 02:10:45 2025
from
Lomita, California
via
SSH
Adam Fancher
Thu Jun 19 23:03:22 2025
from
Winsted, Ct
via
Telnet
Ian Rihard Kosednar
Thu Jun 19 20:09:41 2025
from
No
via
SSH
Ian Rihard Kosednar
Thu Jun 19 19:43:53 2025
from
No
via
SSH
Ian Rihard Kosednar
Thu Jun 19 19:32:47 2025
from
No
via
SSH
Ian Rihard Kosednar
Thu Jun 19 19:19:29 2025
from
No
via
SSH