AMP
AMP copied to clipboard
TelnetRCON Keepalive Causes AMP CPU Usage Spike
Bug Report
System Information
- Operating System Ubuntu 22.04 LTS
- AMP version and build date v2.4.3.2, built 31/03/2023 20:24
- Which AMP release stream you're using Bleeding
I confirm:
- [x] that I have searched for an existing bug report for this issue.
- [x] that I am using the latest available version of AMP.
- [x] that my operating system is up-to-date.
Symptoms
-
What are you trying to do? Use TelnetRCON with TeamSpeak 3
-
What are you expecting to happen? AMP uses the command for keep alive and the Telnet connection remains stable
-
What is actually happening? ('Nothing' is not an acceptable answer!) AMP sends the keep alive and then spikes the CPU to the limit. This is a constant issue that can be reproduced easily. The last thing the AMP console shows is: error id=256 msg=command\snot\sfound
2023-04-08 01:58:17.560596|ERROR | | |TS3ANetwork::Bind failed error: 98```
## Reproduction
Create a TeamSpeak 3 instance and set it to TelnetRCON (as I'm about to change the template for now to STDIO). Wait roughly ~10 minutes and view the CPU usage for the AMP service in htop.
What value are you using for RCONHeartbeatMinutes here?
This may be solved as of the RCON redesign.
This was not actually solved as of the redesign. Turned out to be a loop that was reading the line too eagerly from the server. There is now a short delay between each check for data that fixes this.