How to increase the timeout of wildfly server

Some times when we try to fetch very large results from a database, it may take hell lot of time. But within that time, our server will get timed out and show you a timeout error. Argh, annoying. Isn’t it?  This may even happen when we are involved in an important task which may take hours to complete. Usually, the wildfly server may get a timeout by 300 seconds (5 minutes). We can change this timeout problem by just adding a small piece of code in the standalone.xml file which will be available in \wildfly-8.0.0.Final\standalone\configuration.  Below, I have  provided the code change which is required to alter the timeout. First, open standalone.xml, and search for

[crayon-5bc7b978f4102728020091-i/]

default code will be like
[crayon-5bc7b978f410f851067027/]
In the code given above you can change timeout as per your need. All you have to do is just add one more line of code in the subsystem.
[crayon-5bc7b978f4113788357456/]
So that the edited piece of configuration file will look like the below one:
[crayon-5bc7b978f4115158161698/]
If we are adding the above code, hooray!!! The time out is changed. Hope this helped you.

Share this article:

Comments (1)

  1. Thank you man

Leave a Reply

Your email address will not be published. Required fields are marked *