Hello. I developed a telnet server application using Apache Mina. The clients are character (barcode reader) terminals. Recently the customer has complained about the high CPU usage of server application process.
It's kind weird, but after some research, i found that the CPU usage was highly increasing because some of keyboard key getting stuck on a terminal, and then the server keeps receiving tons of keys (chars) constantly. I can't control all the user actions, but i dont want my application to hang all the time because of a bad terminal (or a bad user). I am thinking to write a filter to detect this abnormal input and kick the client. Does anyone have a thought on how could it be implemented? Luciano G. S.
