AWS RDS responds with (Got an error reading communication packets). Works locally
I encountered this in our QA environment. I spent a great deal of time enabling AWS RDS Audit plugin, improving performance and setting logs everywhere.
The way to ressolve it was to do a proper handling of the JDBC connections from the Java client app.
Please refer to the following question that relates to what you are asking here.
RDS has a lot of messages got an error reading communication packets