Hello!
On Mon, May 23, 2016 at 7:51 AM, AL wrote:
> Every few hours, I run into the pcre exception -27
> (PCRE_ERROR_JIT_STACKLIMIT)
>
> This error is returned when a pattern that was successfully studied
> using a JIT compile option is being matched, but the memory available
> for the just-in-time processing stack is not large enough. See the
> pcrejit documentation for more details.
>
> I've found julia-lang and grep running into similar issues, the fix usually
> being to increase the stack size. Is there a knob somewhere to turn for this
> setting in resty.core?
>
Not yet. Maybe you should optimize your regexes instead?
I'm reluctant to add PCRE specific configuration APIs on the Lua land.
But maybe we can implement some generic configuration API function
like below:
ngx.re.opt("jit_stack_size", 1024 * 2014)
Well, patches welcome :)
Regards,
-agentzh