Asterisk crash when mysql has latency

Hi,
I have Asterisk 14.7.0 connected to database mysql (asterisk realtime) i have noticed that if my database has more then 150ms latency and i run the command “realtime mysql status” , asterisk just crashes.

Is there anyway we can avoid this?

Thank you

You haven’t provided any information such as a backtrace[1] to know where it is crashing. Without this noone can answer, because it may not even be Asterisk itself crashing but the MySQL library. You also really don’t want high latency or queries taking a long time, or else it can and will impact things even if it isn’t crashing.

[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace