> The flags  -XX:MaxRAMPercentage or -XX:MaxRAM should do the trick, but am 
> investigating if they are enforced fast enough before the system OOM kicks 
> in. So far I would say that is not the case.

This SO (https://stackoverflow.com/questions/52495429/setting-xxmaxram)
suggests that maxRAM is only a hint, not a strict enforcement. :(
Should we allow users to specify a ulimit on the forked process?

> Alright, will do rate limiting upstream.
I looked at the code a bit more, and we could allow configurations for
number of concurrent tasks (return 503 if > requests?) at the Tika
level.  I haven't had a chance to figure out if we can do this more
easily at the cxf level.

Reply via email to