LPS-45585  Open [TECHNICAL-SUPPORT] LPS-45585 OutOfMemoryError might appear when background index writer threads cannot process DLFileEntries fast enough

Hey Ray,

\cc @mhan810, @shuyangzhou 

I'm sending this pr directly to you, because I think this one is related to search infrastructure and I don't know is the right solution.

Could you take a look into this?

For more details, please see the LPS's description.

Thanks!!

PD: Adding Mike and Shuyang because they answer in the forum https://in.liferay.com/web/global.engineering/forums/-/message_boards/view_message/2404055