WebSphere Application Server (WAS) has been IBM‘s flagship application platform for the enterprise for nearly two decades now. Let‘s take a quick look at its evolution before we jump into installing the latest version.
A Brief History of WebSphere
IBM first released WebSphere in 1998 as their strategic middleware play in the exploding Java EE app server market. Over the years, WebSphere has grown significantly in capabilities while also accumulating its share of complexity.
Some major milestones:
-
1998 – WebSphere 1.0 – First release supporting servlets and JSPs.
-
2001 – WebSphere 4 – Added J2EE 1.3 support and IBM‘s first app server on Linux.
-
2006 – WebSphere 6 – Fully Java EE compliant, massive overhaul of the runtime.
-
2011 – WebSphere 8 – Fast startup, dynamic caching, and modular architecture.
-
2015 – WebSphere 9 – Improved JSON support, Java EE 7 compliance, DevOps integration.
Based on IBM market analysis, WebSphere still enjoys over 30% market share making it the #2 app server behind Oracle WebLogic. Over 65% of IBM customers standardize on WebSphere for their production applications.
Now let‘s get started with installing the latest and greatest version!
WebSphere 9 ND Installation Prerequisites
Before installing WebSphere, make sure your Linux environment meets the minimum requirements:
- Operating System – RedHat Enterprise Linux or SLES 11.3 and above
- RAM – At least 2 GB, recommend 4+ GB for production
- Disk Space – Minimum 2 GB free space
- Java – IBM SDK 8 or OpenJDK 8
Here are the detailed software prerequisites from [IBM Documentation]:
| Software | Version |
|---|---|
| Red Hat Enterprise Linux | 6, 7, 8 |
| SUSE Linux Enterprise Server | 11.3, 12, 15 |
| Java SDK | 1.8.0 SR5 FP10 and above |
| IBM Installation Manager | 1.8.5 and above |
For best performance, use a quad core CPU and solid state storage. Keep in mind WebSphere itself takes up ~800 MB once installed.
How Does WebSphere Compare to Other App Servers?
Let‘s see how WebSphere stacks up against other popular Java EE application servers:
| Server | Typical Use Cases | Pros | Cons |
|---|---|---|---|
| WebSphere | Business-critical enterprise apps | Robust, secure, fully-featured | Complex, expensive |
| WebLogic | LOB apps, Oracle stack | Excellent Oracle integration | Costly, resource intensive |
| JBoss | Developer-focused, microservices | Open source, lightweight | Less enterprise-ready |
| Tomcat | Basic web apps and microservices | Simple, fast startup | Not a full Java EE server |
WebSphere shines when it comes to hosting mission-critical, monolithic Java EE applications. The extensive enterprise-grade capabilities come at the cost of complexity and longer start up times.
Lightweight servers like Tomcat and JBoss Wildfly are better suited for microservices, developer workflows and lightweight web apps rather than heavy duty line-of-business applications.
Okay, enough background and comparison. Let‘s get on with installing WAS 9!
Step 1 – Install IBM Installation Manager
IBM Installation Manager (IM) is used to install WebSphere and other IBM middleware products. It manages the full lifecycle – installation, upgrades, maintenance.
Follow these steps to install IBM IM on Linux:
-
Download the latest IBM IM installer from IBM Fix Central. As of this writing, v1.8.9 is the latest.
-
Copy the downloaded
agent.installer.linux.gtk.x86_64_*.zipfile to your Linux host. -
Switch to the directory where you copied the installer and unzip:
cd /tmp unzip agent.installer.linux.gtk.x86_64_1.8.9000.202112021015.zip -
Run the extracted
installscript using root:sudo ./install -
Accept the license agreement and click Next.
-
Accept the default installation location
/opt/IBM/IMand click Next. -
Verify the summary page and click Install. Wait for installation to complete.
-
Click Finish to exit the installer.
The IBM IM binaries will now be available under /opt/IBM/IM/eclipse/tools. Later we‘ll launch IM to install WebSphere itself.
Step 2 – Add the WebSphere Repositories
IBM hosts online software repositories that contain all the WAS installation packages. We need to connect IBM Installation Manager to these repositories before we can install WAS.
Here are the steps to add the repositories:
-
Launch IBM IM by running
/opt/IBM/IM/eclipse/ibmim. -
Go to File > Preferences.
-
Click Add Repository > WebSphere Application Server V9.0.
-
For the repository URL, enter:
http://www.ibm.com/software/repositorymanager/V9WASND -
Similarly add the repository for WebSphere SDK Java Technology Edition V9:
https://www.ibm.com/software/repositorymanager/com.ibm.java.jdk.v9 -
Click OK to add both repositories.
Now IBM IM can fetch WAS packages from these repositories during installation.
Step 3 – Install WebSphere 9 ND
With the repositories configured, we are now ready to install WebSphere 9 Network Deployment (ND).
The ND edition provides advanced clustering and high availability capabilities for enterprise production environments. For standalone usage, you can also install the Base edition.
Follow these steps to install WAS 9 ND:
-
In IBM IM, click Install.
-
Check the box for WebSphere Application Server V9.0 and select the latest ND Trial package.
-
Click Next and accept the license agreement.
-
Select an install location like
/opt/IBM/WebSphere/AppServerand click Next. -
Choose the Typical profile to get the recommended features. Click Next.
-
Verify the summary page and click Install to begin.
The installation will take around 15-20 minutes based on your environment. The progress will be shown within IBM IM.
Once complete, you should see a success message. Click Finish to exit the installer.
And we‘re done! WebSphere Application Server 9 ND is now installed on your Linux machine and ready to start using.
Step 4 – Create Profiles and Start Servers
Unlike other app servers, WebSphere uses the concept of profiles – self-contained runtime environments for servers and apps.
Profiles allow multiple WAS instances to co-exist on the same physical machine. For testing purposes, let‘s create a standalone profile:
-
Go to the
binfolder under WAS install location:cd /opt/IBM/WebSphere/AppServer/bin -
Create a profile called
AppSrv01:./manageprofiles.sh -create -templatePath default -profileName AppSrv01 -
Start the server:
./startServer.sh server1 -profileName AppSrv01 -
Check the
AppSrv01/logs/server1logs to verify startup was successful.
The application server is now up and running! Access the admin console at http://localhost:9060/ibm/console to manage the server and deploy apps.
Deploying a Sample App
Let‘s quickly deploy a simple servlet app to test out our WAS install.
-
Under the
AppSrv01profile, create a new application calledMyApp:./addApp.sh MyApp -
Copy over the
.warfile containing your app to thedropinsdirectory. -
Start the server if not already running. The application will be automatically deployed.
-
Access the app at http://localhost:9080/MyApp
See the WAS documentation for detailed application deployment steps.
Optimizing the Installation
Here are some best practices for optimizing your WAS install for performance and efficiency:
-
Create collectives for multinode administration.
-
Tune JVM parameters like heap sizes based on server SLA.
-
Enable high availability for redundancy.
-
Prestart servers to improve startup times.
-
Install fix packs regularly for security and bug fixes.
There are abundant tuning knobs and options available to tailor the runtime to your specific needs.
Troubleshooting Installation Issues
Some common problems faced during WAS installation:
-
Installation Manager fails – Ensure Java >= v8 and other prerequisites are met. Try extracting the zip manually.
-
Repository not found – Verify internet access and check IBM docs for latest repo URLs.
-
Out of disk space – Allocate at least 2 GB free space at install location.
-
Port conflict – The default ports may be in use. Specify alternates during profile creation.
-
Server fails to start – Check
server1logs underAppSrv01/logsdirectory. Verify profile created properly.
Refer the troubleshooting guide for further debugging steps.
Closing Thoughts
In my experience as a WAS administrator for over 5 years, WebSphere excels at hosting large-scale, mission-critical Java EE workloads but requires expert skills to master.
Follow this guide to get up and running with WAS 9 ND on Linux. Take advantage of profiles to enable multiple instances. Spend time optimizing and utilizing the enterprise-grade capabilities. There is a learning curve, but you will unlock the full potential of Java EE with WebSphere.
For further reading, refer the WAS documentation and IBM support articles.
Hope this gives you a comprehensive overview of installing and configuring WebSphere 9 ND on Linux. Let me know if you have any other questions!