I think you should check what requests are being served
on the server next time it is pegged (you can use
https://openacs.org/packages/t2.adp.txt to do that).
I fixed a couple of infinite loops in stored procedures
on the 5.0 branch but I doubt that is what is causing your
problem.