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
Gretchiie
Wed Sep 17 08:54:03 2025
from
Derry, Nh
via
Telnet
Bob Worm
Wed Sep 17 08:43:18 2025
from
Wales, Uk
via
Telnet
Bob Worm
Wed Sep 17 08:14:37 2025
from
Wales, Uk
via
Telnet
Volatile_Memory
Wed Sep 17 07:20:57 2025
from
Des Moines, Iowa
via
SSH
Volatile_Memory
Wed Sep 17 07:17:26 2025
from
Des Moines, Iowa
via
SSH
Bob Worm
Tue Sep 16 21:01:27 2025
from
Wales, Uk
via
Telnet
Bob Worm
Tue Sep 16 15:15:42 2025
from
Wales, Uk
via
Telnet
Gretchiie
Tue Sep 16 05:20:21 2025
from
Derry, Nh
via
Telnet