Socketexception Unexpected end of file from server

Payara Server 6, since the first version, every time I deploy the following error message appears: Unexpected end of file from server
I can only deploy after restarting the server.
It seems to me that after some time (I haven’t been able to measure it precisely yet) it gives a socket error when executing any command with asadmin. (deploy, undeploy, list, etc)
I’ve seen some people recommend disabling HTTP/2. I’ve already done this and the error persists. I thought it was a server or application related problem. However, recently,
I uploaded a new instance of a new server, installed payara and deployed a small application. The same problem happens.