0

My website is powered by tornado. When doing the stress testing, I found python3 used almost all cpu while redis-server used a little. So, I did a profile, but the profile result makes me confused:

profile result

It seems that all redis-py operations (r.xxx() and lua_xxx()) takes huge cpu time.

I have no idea why python3 eats all cpu since if the redis request is blocked, it should sleep thus less cpu usage. So, could you please tell me where could the problem be? Thanks!

Nick Bondarenko
  • 6,211
  • 4
  • 35
  • 56
abcdabcd987
  • 2,043
  • 2
  • 23
  • 34

0 Answers0