well it does no good with litespeed as I think litespeeds sets its own ulimits whicvh includes core files. Generally it is located in /etc/security/limits.conf but from experience will do no good with lsws
There is a patch george made and posted in one of my threads, it works, search for it