You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/02 18:16:15 UTC

[GitHub] [apisix] Applenice commented on issue #3917: request help: question about Prometheus memory consumption

Applenice commented on issue #3917:
URL: https://github.com/apache/apisix/issues/3917#issuecomment-873176056


   I was trying to solve this issue and when testing I found the problem:
   https://github.com/apache/apisix/blob/e35ef6d54469a312b209bf60b194eca50938ebbe/apisix/cli/ngx_tpl.lua#L144
   https://github.com/apache/apisix/blob/e35ef6d54469a312b209bf60b194eca50938ebbe/apisix/cli/ngx_tpl.lua#L145
   
   It can be modified like this:
   ```
   lua_shared_dict internal_status      {* http.lua_shared_dict.internal_status *};
   ```
   But it seems to be because this format of `plugin-limit-req` does not conform to the lexical conventions of Lua names. An error is reported:
   ```
   /usr/local/openresty/luajit/bin/luajit: [string "context=... or {}..."]:289: attempt to perform arithmetic on field 'plugin' (a nil value)
   ```
   Can I change the lua_shared_dict variable that uses `-` to `_`? This way the relevant code needs to be modified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org