May 25, 2017

[HDGEM] How to increase GlassFish server asadmin deployment timeout

If your app is big, you might encounter the following when deploying it:

No response from Domain Admin Server after 600 seconds.  The command is either taking too long to complete or the server has failed.  Please see the server log files for command status.  Command deploy failed.

One way to fix it is to increase GlassFish server asadmin deployment timeout.
The default deployment timeout value of asadmin is 600 seconds.
You can set the environment variable AS_ADMIN_READTIMEOUT to increase the asadmin deployment timeout from 600 seconds to 3600 seconds.
export AS_ADMIN_READTIMEOUT="3600000"
or put it to glassfish/conf/asenv.conf.

Posted By Blogger to HDGEM at 5/25/2017 04:27:00 PM