To protect your environment from the denial-of-service attacks, adjust the values of the
readTimeout and writeTimeout attributes of the
httpOptions parameter in the server.xml file.
Procedure
- Adjust the values of the readTimeout and
writeTimeout attributes.
- Open the server.xml file. By default, the file is in the
following location.
/opt/ibm/LMT/wlp/usr/servers/server1/server.xml
C:\Program Files\ibm\LMT\wlp\usr\servers\server1\server.xml
- Change the value of the following attributes of the httpOptions
parameter.
- readTimeout - the attribute specifies the amount of time to wait for a read
request to complete on a socket after the first read occurs.
- writeTimeout - the attribute specifies the amount of time to wait on a
socket for each portion of the response data to be transmitted.
Starting from application update 9.2.29, the
httpOptions parameter is
included in the
server.xml file. For earlier application updates, add the
parameter and its attributes inside the
httpEndpoint parameter for which
id="tema"
.
For
example:
<httpEndpoint host="*" httpsPort="<port>" id="tema">
<tcpOptions soReuseAddr="true" />
<httpOptions readTimeout="15s" writeTimeout="15s"/>
</httpEndpoint>
Important: If you set short timeouts and you have a slow
internet connection, the License Metric Tool user interface
might not load.
- For the changes to take effect, restart the License Metric Tool server.
- Stop the server.
- Start the server.