Kong all worker CPU 100% #13495
Unanswered
yuanst-627
asked this question in
Help
Replies: 2 comments 1 reply
-
Hi @yuanst-627 , I noticed that you mentioned |
Beta Was this translation helpful? Give feedback.
1 reply
-
I noticed this line "/usr/local/share/lua/5.1/kong/router.lua". Since kong gateway 3.x it will not exist. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our production environment is using 100% CPU for all worker processes.
Export the flamegraph as follows
![image](https://private-user-images.githubusercontent.com/28622681/357376196-a38fb97b-0281-4541-8f83-413c42f432c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Mzk1MDEsIm5iZiI6MTczODgzOTIwMSwicGF0aCI6Ii8yODYyMjY4MS8zNTczNzYxOTYtYTM4ZmI5N2ItMDI4MS00NTQxLThmODMtNDEzYzQyZjQzMmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEwNTMyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkOGNkNWZjMmNjMWFiNzNjMTg1M2UyNDIwOTYzY2FhNWU5Yjk5N2IxOTc1MjZmZDQ0OTdhOGZhMzE0MjdhZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ACWV8W-Oyx6dkQX_TATIx1-g10yn1zmiIEV4yam1bGk)
./samples/lj-lua-stacks.sxx --skip-badvars -x 621952 > a.bt
The results are as follows
[root@api-prd-api02 stapxx]# cat a.bt
0x7f17d4f3916a
T:@/usr/local/share/lua/5.1/kong/router.lua:1485
@/usr/local/share/lua/5.1/kong/router.lua:1485
@/usr/local/share/lua/5.1/kong/runloop/handler.lua:1091
@/usr/local/share/lua/5.1/kong/init.lua:752
=access_by_lua(nginx-kong.conf:257):0
2118
0x7f17d4f39164
T:@/usr/local/share/lua/5.1/kong/router.lua:1485
@/usr/local/share/lua/5.1/kong/router.lua:1485
@/usr/local/share/lua/5.1/kong/runloop/handler.lua:1091
@/usr/local/share/lua/5.1/kong/init.lua:752
=access_by_lua(nginx-kong.conf:257):0
391
kong tag : 1.3.1
Can someone help me out here? thanks
Beta Was this translation helpful? Give feedback.
All reactions