jinhua luo

Results 102 comments of jinhua luo

@tzssangglass With ipset, it's an easy job. Example: ```bash # use domain to define the route curl http://127.0.0.1:9080/apisix/admin/routes/route_via_proxy -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/anything", "upstream": {...

@hahayyum I think you could use systemtap to confirm the memroy is leaking. https://github.com/openresty/stapxx#lj-gc-objs And if it's confirmed, you could use gdb to check where leaks roughly: https://github.com/api7/openresty-gdb-utils#lgcpath

@hahayyum If you could reproduce the issue at ease, you could use this gdb script to check where's the possible leak. **Note that use it with caution, you should test...

@hahayyum I rewrite the profiling logic in systemtap. https://gist.github.com/kingluo/50b8589069f5f11a78d2136c1155d613 Usage: ``` git clone https://github.com/api7/stapxx cd stapxx export PATH=$PWD:$PATH ./samples/lua-leaks.sxx -D STP_NO_OVERLOAD -D MAXMAPENTRIES=80000 --arg time=30 -x 36998 # If you...

@hahayyum Have you tried the gdb way? It's slow but workable.

> @kingluo Stapxx relies on systemap. It was mentioned earlier that systemap has strict requirements on the system and kernel. We have been unable to use it normally. Our system...

@hahayyum Ok, I will try to reproduce it myself later. Have you tried on latest APISIX version? `2.7` is too old. And, have you tried to reproduce it without k8s/ingress...

@hahayyum I try to create/get/delete route repeatly for a long period, but I could not watch memory increment constantly. Could you abstract a clear and minimal setup and the reproduce...

@mikawudi @spacewander Is it a good idea to do the log rotate based on cron-like expr? ``` # run five minutes after midnight, every day 5 0 * * *...

@caster-Q If the url length is too large, it would response with 414, not 404. Could you show your route configuration?