Heeeeey guys, 2 months ago, I wanted to make a TCP server to whom I could connect to and use it as a "console", to change the players' information with a program I made. It used the TCP interface but was laggy, and not that working as I wanted it. Check my code : https://github.com/DevilMental/PluginMoney/blob/master/src/com/devilmental/money/TCPServer.java Tell me what is wrong, and what is to change. Thanks in advance, ~DevilMental
1: Formatting is really weird. 2: Put these in new classes; it would help you somewhat help you debug it rather than digging through lines. Plus, it makes it easier to read. 3: Try using UDP instead of TCP. With TCP, you need to port forward to host. With UDP, you don't; it's like hole punching your firewall and router. However, UDP is slightly less reliable. It's just my preference to use UDP.
The formatting is done by Eclipse, but yeah it is weird xD And I'll try UDP I'm sorry but what are profilers ? (I'll google it) ~DevilMental
They help pinpoint sources that uses the most CPU cycles/time or memory, and take JVM statistics and thread status.