I am using a programm that was developed from someone for the company i work, that solves a production scheudling problem. In summary we have instructions from him on how to setup a Docker Desktop in Windows 10 Machine and compose a container in order to run a Python application as a service in the container, that is able to fetch data from web services and to return solutions in JSON format . The problem that i am facing is that when the amount of data that we are passing are a lot and the application is tries to give the best solution i dont get response and it stops . It seems like it needs a lot proccessing that it cant afford. In the logs of the docker it keeps saying [WARNING] Worker with pid 32 was terminated due to signal 9 and it stops.
I understood that this type of error Signal 9 (SIGKILL) is a forceful termination from the linux operating system and probably has to do with the available resources given to the container. I tried with various commands to set the correct amount of memory that will be available for the WSL2 . The most affective that worked was to create a .wslconf file and place it in C:Users<UserName>.wslconfig. and set memory=6gb (because the windows 10 maching has 16Gb with 12GB used only) and processors=4 (my processor is an i5 with 4 cores and 8 logical processors)
This has impact on memory limit in the result of the — command docker stats but i am not source that this is the correct approach for the solution of the problem. Sometimes the application works and returns results but some other times it keeps exiting.