IBM Cloud Authors: Zakia Bouachraoui, Elizabeth White, Yeshim Deniz, Pat Romanski, Liz McMillan

Related Topics: IBM Cloud

IBM Cloud: Article

Putting WAS on Unix

Part three of a three-part article

In the last part of this three part series, we're going to look at some advanced topics and further considerations for running WebSphere effectively under UNIX, including monitoring, security and resilience.

Monitoring WAS
The immediate status of all WAS servers can be obtained using the command:

#serverStatus.sh -all

WAS processes can be listed using the command (Solaris):

$pgrep -f -l 'WebSphere.*java'

Current WebSphere process IDs are also written to files in the application server log directories (e.g., MyAppServer.pid).

The most effective way to monitor WebSphere and its applications is to request one or more known stable URLs directly from the application server. For example, either curl or the check_http plugin in the Nagios monitoring package can do this. You can optionally verify the contents of the response to be sure that the application is working correctly.

It's also useful to monitor the load (uptime) and memory usage on each system, since faulty application server processes often consume all the CPU time and/or virtual memory.

General Tips for Running WAS

  • Run backupConfig.sh at regular intervals via cron on each installed WAS host. Ideally, copy each backup archive file to a remote system. Note that these files can be quite large, since they also contain a copy of every installed application.
  • Review the section on WAS Security below and check the issues raised against your local security policy.
  • Install the Tivoli Performance Viewer and Log Analyzer components from WebSphere on a desktop system, such as your PC (you may need the Windows version of the software for this).
  • If you're developing shell scripts to manage WebSphere, it's worth sourcing the WAS setup script at the start since it provides a number of useful environment settings. For example, deployed application files can be found under ${WAS_HOME}/installedApps/${WAS_CELL}/ .
  • WebSphere should be properly tuned for good performance under intensive loads. See the bibliography for suitable references.
Advanced Topics
This section contains a brief overview of other WebSphere features and issues, particularly those that are relevant to enterprise use of WAS.

WAS Scripting
Besides the administration console, WAS operations can be scripted using Java implementations of TCL and Python called JACL and Jython. These scripts are run using the wsadmin utility (wsadmin.sh). Scripts configure and control WAS via various method calls on different Java Management eXtension (JMX) objects known as Managed Beans (MBeans).

Unfortunately, there's no comprehensive documentation available on all the possible MBeans (their number and types vary depending on the WAS topology and installation). The syntax and use of MBeans is rather verbose and unfriendly. The best - in fact, the only - way to learn how to perform tasks via scripting is by example. (While wsadmin has a help facility, its contents are rather terse.) There are a number of sample scripts in the Infocenter, the Redbooks, and other online articles from IBM.

It's also difficult to debug faulty scripts except by running wsadmin interactively and entering the individual commands, since script error messages don't include line numbers. Despite these difficulties, scripting is very useful if you wish to configure and control a number of separate, identical WAS cells, or do the same operations repeatedly on a consistent basis. Scripting also offers a path towards automated WebSphere deployments and recovery procedures.

It may be easier to tackle the tasks that are simplest to script, better documented, and more frequently done first (for example, installing EAR files), and gradually develop more complex scripts as you gain experience.

Working with the wsadmin interface is easier if you have command line editing and history facilities. Although the program doesn't support this itself, the Open Source rlwrap utility can be used to add these features.

WebSphere Application Server Network Deployment
The base edition of WebSphere only supports a single node in a cell. WebSphere Application Server Network Deployment (WAS ND) is used to support and manage several nodes in a distributed cell. WAS ND is a separate product that can be installed either alongside the base edition or on a dedicated system. It provides a component called the WebSphere Deployment Manager (DMgr), which is a specialised application server process. The DMgr has a Web-based administration console very similar to the base edition, but with extra features for managing a cell containing more than one node. Distributed cells provide workload balancing, scalability, and resilience improvements via the use of clusters (groups of application servers running the same application). For example, user sessions can be migrated from a failed application server to another one in the cluster using the session persistence feature.

Existing node base installations are federated or added into a DMgr cell. During this process, their own adminconsole application is removed and they are henceforth configured from the DMgr. To accomplish this, a separate, dedicated server called the Node Agent is created on the remote node. New application servers can be created or cloned from existing ones on any node in the cell. However, there's no facility for making identical changes to several application servers simultaneously.

More Stories By Ade Rixon

Ade Rixon is a UNIX System Administrator working in the UK on e-commerce and related systems. His personal web site is at http://www.big-bubbles.fluff.org.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

IoT & Smart Cities Stories
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected pat...
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
Codete accelerates their clients growth through technological expertise and experience. Codite team works with organizations to meet the challenges that digitalization presents. Their clients include digital start-ups as well as established enterprises in the IT industry. To stay competitive in a highly innovative IT industry, strong R&D departments and bold spin-off initiatives is a must. Codete Data Science and Software Architects teams help corporate clients to stay up to date with the mod...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Druva is the global leader in Cloud Data Protection and Management, delivering the industry's first data management-as-a-service solution that aggregates data from endpoints, servers and cloud applications and leverages the public cloud to offer a single pane of glass to enable data protection, governance and intelligence-dramatically increasing the availability and visibility of business critical information, while reducing the risk, cost and complexity of managing and protecting it. Druva's...
BMC has unmatched experience in IT management, supporting 92 of the Forbes Global 100, and earning recognition as an ITSM Gartner Magic Quadrant Leader for five years running. Our solutions offer speed, agility, and efficiency to tackle business challenges in the areas of service management, automation, operations, and the mainframe.
The Jevons Paradox suggests that when technological advances increase efficiency of a resource, it results in an overall increase in consumption. Writing on the increased use of coal as a result of technological improvements, 19th-century economist William Stanley Jevons found that these improvements led to the development of new ways to utilize coal. In his session at 19th Cloud Expo, Mark Thiele, Chief Strategy Officer for Apcera, compared the Jevons Paradox to modern-day enterprise IT, examin...
With 10 simultaneous tracks, keynotes, general sessions and targeted breakout classes, @CloudEXPO and DXWorldEXPO are two of the most important technology events of the year. Since its launch over eight years ago, @CloudEXPO and DXWorldEXPO have presented a rock star faculty as well as showcased hundreds of sponsors and exhibitors! In this blog post, we provide 7 tips on how, as part of our world-class faculty, you can deliver one of the most popular sessions at our events. But before reading...
DSR is a supplier of project management, consultancy services and IT solutions that increase effectiveness of a company's operations in the production sector. The company combines in-depth knowledge of international companies with expert knowledge utilising IT tools that support manufacturing and distribution processes. DSR ensures optimization and integration of internal processes which is necessary for companies to grow rapidly. The rapid growth is possible thanks, to specialized services an...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...