Update thread again, it seems JSON parsing introduce a lot of memory overhead in python, suspect that is problem, also JSON parsing is very slow. Any better JSON lib recommended? I am not sure whether it is JSON memory overhead that cause multi worker shm error? how do we estimate how much shm is needed for our given case?