Hi Mike,
I recently worked a case where batch parameters from an application are not getting cleared out of procedure cache. So the lwp's are not getting cleaned up this is ASE CR 779389.
So cleaning up your procedure cache might be what you do need to do.
dbcc proc_cache(free_unused) will free up **all** memory used by currently unused procedure plans. It will free up ** all ** the unused plans regardless of the size.
However please note that after running dbcc proc_cache(free_unused) , there may be a performance hit when users start running their procedures again requiring their plans to be compiled again and stored in the procedure cache. dbcc proc_cache(free_unused) can be useful if there is a need to clear unused plans that may never be needed again. However if ASE is regularly hitting Error 701, that indicates that the procedure cache needs to be increased to a level that will be able to contain all the plans executed on this server.
Thanks,
Dawn Kim