This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mail message modified: | |
| Xiaochen Wang <wangxiaochen0@gmail.com> | |
| 11:07 AM (2 hours ago) | |
| to web-07 | |
| hi mike, | |
| We still have an issue, always crashed on first instruction of tracing generated machine code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Trace request context exclusively within Lua projects | |
| -- executed by the Lua-nginx-module | |
| -- | |
| -- The timer context is not available within functions triggered by | |
| -- ngx.timer.at(). However, you can easily make adjustments to this file to | |
| -- enable it. | |
| -- | |
| -- In your lua source file: | |
| -- require("bt").init_hook() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| run it by this command: | |
| $ resty --shdict "kong_dns_cache 10m" ./perf.lua | |
| ]] | |
| setmetatable(_G, nil) -- disable the _G write guard alert log introduced in OpenResty 1.15.8.1 | |
| pcall(require, "luarocks.loader") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim: set ft=gdb | |
| set print pretty on | |
| set pagination off | |
| set print repeats 16 | |
| handle SIGPIPE nostop | |
| ### nginx debug function ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yaml | |
| # Configuration | |
| num_services = 100 | |
| backend_url = "http://mockbin.org/request" | |
| # YAML Structure | |
| kong_config = { | |
| "_format_version": "3.0", |
OlderNewer