Ok I was able to find this post which is very helpful but still having one conflict on setting ulimit.