Remove goroutines and use servlet locks instead.