AMP icon indicating copy to clipboard operation
AMP copied to clipboard

TelnetRCON Keepalive Causes AMP CPU Usage Spike

Open IceOfWraith opened this issue 2 years ago • 2 comments

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.

IceOfWraith avatar Apr 08 '23 02:04 IceOfWraith

What value are you using for RCONHeartbeatMinutes here?

PhonicUK avatar Apr 19 '23 13:04 PhonicUK

This may be solved as of the RCON redesign.

IceOfWraith avatar Apr 11 '24 05:04 IceOfWraith

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.

IceOfWraith avatar Aug 29 '24 06:08 IceOfWraith