Configure servers
We can use wsadmin.sh to configure application servers in the environment. An application server configuration provides settings that control how an application server provides services for running applications and their components.
After installing the product, we might need to configure additional options for the application server. With wsadmin.sh, we can use the commands for the AdminTask and AdminConfig objects to retrieve configuration IDs and invoke operations on the objects to configure the application server. Alternatively, we can use the script library to perform specific operations to configure the application servers. The scripting library provides a set of procedures to automate the most common application server administration functions. We can run each script procedure individually, or combine several procedures to quickly develop new scripts.
We might need to complete one or more of the following tasks to configure the application server:
- Create servers. Use the commands in the ServerManagement command group for the AdminTask object or the AdminServerManagement script library to create a new application server, web server, proxy server, or generic server.
- Configure a unique HTTP session clone ID for each application server. If we require session affinity, use the commands in this topic to configure an HTTP session clone ID for each application server.
- Configure database session persistence. We can use the AdminConfig object to configure database persistence.
- Configure the JVM to run in debug mode. Use the commands in the ServerManagement command group for the AdminTask object or the configureJavaVirtualMachine script in the AdminServerManagement script library to modify the JVM (JVM) configuration.
- Configure EJB containers. We can use the AdminConfig object or the configureEJBContainer script in the AdminServerManagement script library to configure EJB containers in the configuration.
- Configure PMI. We can use wsadmin.sh to configure the Performance Monitoring Infrastructure (PMI) in the environment. PMI enables the server to collect performance data from various product components. PMI provides information about average system resource usage statistics, with no correlation between the data across different components.
- (dist) Limit the growth of JVM log files. We can use the AdminConfig object or the configureJavaProcessLogs script in the AdminServerManagement script library to configure the size of JVM log files. JVM logs record events or information from a running JVM.
- Configure Object Request Broker(ORB) services. We can use the AdminConfig object or the configureORBService script in the AdminServerManagement script library to configure an ORB service in the environment. An ORB manages the interaction between clients and servers, using the Internet InterORB Protocol (IIOP). It enables clients to make requests and receive responses from servers in a network-distributed environment.
- Configure processes. We can use the AdminConfig object or the configureProcessDefintion script in the AdminServerManagement script library to configure processes in the application server configuration. Enhance the operation of an application server by defining command-line information for starting or initializing the application server process. Process definition settings define runtime properties such as the program to run, arguments to run the program, and the working directory.
- Configure the runtime transaction service. Use the AdminControl object or the configureTransactionService script in the AdminServerManagement script library to configure transaction properties for servers. The transaction service is a server runtime component that coordinates updates to multiple resource managers to ensure atomic updates of data. Transactions are started and ended by applications or the container in which the applications are deployed.
- Set port numbers to the serverindex.xml file. We can use the AdminConfig object, AdminTask object, or the scripts in the AdminServerManagement script library to modify the port numbers specified in the serverindex.xml file. The end points of the serverindex.xml file are part of different objects in the configuration.
- Disable components. We can use the AdminConfig object or the configureStateManageable script in the AdminServerManagement script library to disable components by invoking operations. This topic describes how to disable the nameServer component of the product. We can modify the examples in this topic to disable other components.
- Disable the trace service. Refer to the topic on disabling trace service for more information.
- Configure servlet caching. We can configure servlet caching and wsadmin.sh. The dynamic cache service works within an application server JVM, intercepting calls to cacheable objects. For example, it intercepts calls through a servlet service method or a command execute method, and either stores the output of the object to the cache or serves the content of the object from the dynamic cache.
- Modify variables. Refer to the topic on modifying variables for more information.
- Increase the JVM heap size. Refer to the topic for more information.
Subtopics
- Create a server
- Configure a unique HTTP session clone ID for each application server
- Configure database session persistence
- Configure the JVM
- Configure EJB containers using wsadmin
- Configure timer manager custom properties
- Configure work manager custom properties
- Configure PMI
- Logging Tivoli Performance Viewer data
- Limiting the growth of JVM log files
- ProxyManagement command group for the AdminTask object
- Configure an ORB service
- Configure processes
- Configure the runtime transaction service
- Set port numbers to the serverindex.xml file
- Disable components
- Disable the trace service
- Configure servlet caching
- Modify variables
- Increase the JVM heap size
- PortManagement command group for the AdminTask object
- DRS command group for the AdminTask object
- DynamicCache command group for the AdminTask object
- VariableConfiguration command group for the AdminTask object
Related tasks
Use wsadmin scripting Get started with wsadmin scripting