Question & Answer
Question
How do I configure custom properties for the WebSphere Application Server Liberty profile?
Answer
There are many custom properties available for the WebSphere Application Server Liberty profile. The elements, attributes and sub-elements that can be configured are available in IBM Documentation pages, in Server configuration you can find any element in table of contents at your left.
If you are working with IBM Support, or resolving an issue independently through the IBM Support Portal, you might also be asked to set a custom property.
WebSphere custom properties for the Liberty profile are set in the server.xml file of the application server.
Note: For the default server instance, the server.xml file is located in the following location:
<liberty install root>/usr/servers/defaultServer/server.xml
Add the following line to the server.xml configuration file:
<webContainer deferServletLoad="false"/>
Note: To configure a Java Virtual Machine custom property, set the property in the jvm.options file.
Customizing the Liberty environment
The server management script searches for jvm.options in two locations: ${wlp.install.dir}/etc/jvm.options and ${server.config.dir}/jvm.options. If both files are present, the options in the ${server.config.dir}/jvm.options file are used.
If you are working with IBM Support, or resolving an issue independently through the IBM Support Portal, you might also be asked to set a custom property.
WebSphere custom properties for the Liberty profile are set in the server.xml file of the application server.
Note: For the default server instance, the server.xml file is located in the following location:
<liberty install root>/usr/servers/defaultServer/server.xml
For example: To configure the deferServletLoad web container custom property
deferServletLoad
Description: Defer servlet load and initialization until first request
Data type: boolean
Default value: true
Required: false
Data type: boolean
Default value: true
Required: false
Add the following line to the server.xml configuration file:
<webContainer deferServletLoad="false"/>
Note: To configure a Java Virtual Machine custom property, set the property in the jvm.options file.
Customizing the Liberty environment
The server management script searches for jvm.options in two locations: ${wlp.install.dir}/etc/jvm.options and ${server.config.dir}/jvm.options. If both files are present, the options in the ${server.config.dir}/jvm.options file are used.
[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"ARM Category":[{"code":"a8m0z000000Gn5QAAS","label":"Liberty"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
22 August 2021
UID
swg21597753