IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
I.WAS Software &its Updated types
Explain what is Web-Sphere?
Ans:
What: Web-sphere is a Java based tool and developed by IBM,
Why: to manage and create websites. Web-sphere is often used to build interactive web-
oriented applications that support business functions required for e-commerce, it integrates
all the data across different operating system and applications.
2) Mention what are the important component of Web-Sphere?
Ans:
Important components of Web-Sphere are:
WebSphere Application Server or WAS : It connects the website users with Java
servlets
Data–Server: For data persistence
Web–server: It provides the service of HTTP
3) Mention some of the features available in Web-sphere?
Ans:
Some of the features available in Web-sphere includes:
It supports the servlet/JSP container functionality that runs on top of HTTP
It supports HTTP servers as IBM HTTP server, Netscape iPlanet server, and MS IIS
It supports Java Server Pages, HTML pages, Servlets and XML
It supports EJB component model and Workload Management.
Mention when does WebSphere Application server contact the registry for user
information?
Ans:
Web-sphere application server contact the registry for user when users:
Checks the users password
Maps certificate information to a user id
Converts user id to registry unique id
Obtains group information
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
1. WebSphere is a suite of products
WebSphere Portal
WebSphere DataPower
WebSphere Cast Iron
WebSphere eXtreme
WebSphere Front Office
WebSphere Message Broker
WebSphere MQ
WebSphere Real Time
WebSphere Remote Server
WebSphere Virtual Enterprise
WebSphere community
And much more…
2. What are the WebSphere editions available?
WAS – Network Deployment
WAS – Developers
WAS – z/OS
WAS – Hypervisor
WAS – Express
WAS – Base
WAS – Liberty core
3. What’s new in WAS 8.5.5?
On the high level:
Java SE 7 support
HPEL logging
Inbuilt health management
Liberty profile
Intelligent routing
Dynamic clustering
JDBC 4.1 clustering
Web 2.0 support
4. What are the environments you support?
Be honest and explain the environments you support. You may be supporting the following.
Development
CIT Component integration testing )
SIT (System Integration testing )
UAT (User Acceptance Testing )
DEMO
Pre-production
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
Production
Staging
QA
5. Do I need Web Server in front of WAS?
It’s recommended to have supported web server in front of WAS for better security, performance &
maintenance.
6. Which database do you use with Websphere?
Tell them what you use. Most of the organization use Oracle database but WebSphere support the
following database as well.
DB2
Oracle Database
Microsoft SQL Server
Sybase
7.What are the Application server components?
It consists of mainly
1 Web container , 2 EJB container, 3 massaging engine 4 webserver engine , 5 Transcation
6 WLM/HA 7 Security etc.
II JVMS
1. What would you do when JVM is consuming 100% CPU & Memory on a server?
Ans: First of all, identify which JVM has high utilization. Take a thread dump of identified JVM for
investigation and restart the JVM as a workaround to cool down the CPU/Memory.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
2. Why does JVM come up automatically though I stop/kill the process manually?
Ans: There could be two things.
Automatic restart is enabled for the JVM which is default settings and available under
JVM>>Monitoring policy.
If above is not the case then, there might be a script in cron, which checks for the process, and if not
found then start it.
3. How do you know if your JVM is up or not?
There are multiple ways to confirm this.
Do you have any monitoring tool if so check if there is an alert or current status
Login to a server and grep for the JVM by ps -ef | grep jvmname
Check if you can access the JVM URL
Check if you can telnet JVM URL and port
Check if JVM port is listening on the server
Use serverStatus.sh –all command to see what is running
Choose whatever is easy for you.
4. How to increase the heap size of JVM?
Login to Administrative Console
Go to servers >> Server types >> WebSphere application server
Select the JVM >> Process definition >> java virtual machine
You can enter initial and maximum heap size here
5. Can you deploy more than one application in single JVM?
Yes, multiple applications deployment is possible on single JVM as long as context root for each
application is unique.
III CELLS & NODES
1. What is a Cell?
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
A cell is a logical group of nodes, which can have one or more nodes; clusters and
all are administered from a single administrative console.
Explain what is node, node agent and node groups?
Ans:
Node: It is a logical grouping of server processes maintained by WebSphere and that
share common configuration and operational control
Node agent: Each node has a node agent that works along with the deployment
manager to manage administration processes. It acts as a mediator between the
node and deployment manager
Node Group: A node group is a grouping of nodes within a cell that have same
capabilities
8) Explain what is a cell in WebSphere?
Ans:
A cell is referred as a grouping of nodes into a single administrative domain. A cell can have
multiple nodes which are all managed from a single point.
2. Can you Sync the node when nodeagent is down?
Absolutely, nodeagent must be in stopped for sync to work.
3. What is node sync?
IBM WAS stores the entire configuration in a central repository called “Master repository,” and every
node will have the local repository.
When you make any changes to the node through DMGR, you must sync it, so configuration is
pushed to respective node’s server.
Sync always happens from master to local repository, so it’s one-way communication
4. What does it mean by node federation?
Federation in WebSphere means adding a node to the Cell. This is done by addNode.sh command,
and this may take a few minutes based on the node size.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
IV DMGR
1. Can application run without any issue if DMGR is down?
Yes, DMGR down doesn’t impact existing running application. However, if you need to make any
changes or deployment through DMGR, then that would be affected.
2. How to deploy an application in WebSphere?
There are three possible ways to deploy.
1. Hot deployment – copy the application file into the application directory. This is good for the
non-production environment and not recommended for production.
2. DMGR – You can deploy an application through DMGR by going to Applications >> New
application
3. Scripts – You can develop wsadmin scripts or ant tasks for application deployment.
3. What file types you can deploy into WebSphere?
You can deploy WAR, EAR, JAR or SAR module through DMGR console or scriptings.
4.
V COMMANDS
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
1. How to take WAS configuration backup without stopping the DMGR?
Go to DMGR profile and bin folder
Execute ./backupConfig.sh -nostop to take a backup
2. How to check the installed WAS version?
Go to profile and bin folder
Execute ./versionInfo.sh
3. How to make WebSphere auto-start when server reboot?
WebSphere automatically generates startup script in /etc/init.d which will ensure it starts when reboot.
However, if for some reason script doesn’t exist then you can create one and put under /etc/init.d and
enable it as below.
chkconfig -- add WebSphere #script file name
chkconfig WebSphere on
4. What’s a command to stop and start DMGR, Nodeagent & JVM?
To stop
JVM – stopServer.sh JVMNAME
Nodeagent – stopNode.sh
DMGR – stopManager.sh
To start
JVM – startServer.sh JVMNAME
Nodeagent – startNode.sh
DMGR – startManager.sh
5. Can you decode WebSphere keystore XOR?
Yes, you can through online tool – http://strelitzia.net/wasXORdecoder/wasXORdecoder.html
6. Which scripting language is the default in WebSphere? JACL or Jython?
JACL is the default scripting language in WebSphere.
7. . What is the default session timeout for an administrative console?
30 minutes
8. Which script to change the Java SDK used by profile?
managesdk.sh script is available in bin folder which will help to change the SDK.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
9. Tell me some of the log files generated by WebSphere?
SystemOut.log ,SystemError.log ,native_stdout.log ,native_stderr.log
VI CLUSTERING
Mention how does a WebSphere or any Application server clustering work?
Ans:
A WebSphere’s web server plugin component routes requests to WebSphere cluster web
containers. If there is a communication failure with a particular cluster member, it will
mark that member down and start routing all requests to the remaining cluster member till
the original is available.
Mention what is asymmetric clustering in Web-sphere?
Ans:
In asymmetric clustering, the partition can be defined dynamically and runs on a single
cluster at a time. The task which is particular to an appropriate cluster can be routed to that
cluster. Usually, clustering is used by banks
1. What’s a difference between vertical and horizontal cluster?
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
The vertical cluster has its member on same node or server where horizontal is across multiple nodes
and servers in a cell.
2. What is Ripplestart?
Ripplestart is to restart the WAS cluster. It first stops the JVM and then starts it. By doing ripplestart
you ensure only one JVM is down at one time hence no downtime to the applications.
Ex: you have 5 JVMs in a cluster and when you do ripplestart it will stop JVM1 and start JVM1 before
stopping other JVM in a cluster.
3 define Dynamic cluster?
It is used based on the critical situations it reacts start or stop servers
4 define proxy server cluster ?
It take the request from the client & route the request to the application server/
VII troubleshooting
1. How would you deal with slow application complaint from clients?
Slowness could cause due to various reasons, and it’s essential to identify if it’s from WebSphere or
some other components. To isolate, you can check the following.
Is this slowness for all the users?
Is entire application slow or just particular functionality?
How about accessing JVM URL (bypassing Web server) directly?
If the slowness is found in JVM, then you can take the dump and check the logs to find out the cause.
It would be worth checking if there were any release and slowness is just after that.
2. What are the common issues you have experienced?
You should always be honest about your expertise, however, to give you an idea:
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
Virtual host not defined
Logs not moving
Internal Server Error
Out Of Memory exception
Slowness
JVM not starting
High CPU/Memory/Disk utilization
3. What are the common issues you have experienced?
You should always be honest about your expertise, however, to give you an idea:
Virtual host not defined
Logs not moving
Internal Server Error
Out Of Memory exception
Slowness
JVM not starting
High CPU/Memory/Disk utilization
4. What is shared libraries?
Creating a shared library is recommended to reduce the duplicate library files. The single shared
library can bed used by multiple applications within a cell.
5. What is a fix pack?
A fix pack is a collection of patches provided by IBM. It may contain bug fixes, security patches &
performance improvements.
6. What is FFDC?
FFDC (First failure data capture) capture event and error during WebSphere runtime. FFDC data can
be beneficial to analyze the issue, and this is often asked by IBM support if we contact them for any
issues.
7. How do you disable security in WebSphere?
You can disable security by executing “securityoff” through wsadmin.sh. DMGR must be restarted
after switching off the security.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
VII plugin
1. How to generate and propagate the plugin?
Login into WAS Administrative console
Go to Servers >> Web Servers
Select the server and click on “Generate” & “Propagate” button.
2. What is WAS plugin configuration file name?
WebSphere plugin configuration name is plugin-cfg.xml
Logs & heap& thread dumps, context root
Complete WAS Logs
I)JVM logs are two types:1) SystemOut.log,2)SystemErr.log
II) Native logs are two types:1) Native_stdout.log,2)Native_stderr.log
III) Trace log:1) Trace.log(console<troubleshooting<logs&trace<
IV) Activity logs or service log:1)Activity.log
V) Command line logs:1)Startserver.log,2)Stopserver.log & 3)Addnode.log
VI) Installation log:1)Log.txt
VII) Fix pack logs:1)Updatelog.txt
------------------------------
IHS Logs:1)Access.log,2)Error.log,3)Adminerror.log & 4)Install.log
---------------------
Plugin logs:1)http_plugin.log
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
. 1. What is context root?
A context root for each application should be unique within the cell. It’s defined n deployment
descriptor and used to access the application.
For an ex: if application A has context root called “retail” then an application will be accessible from
http://servername:port/retail
2. Can you change the context root for deployed application?
Yes, it’s doable. To do this through the administrative console, go inside the application and click
“Context root for web modules” to change the context root.
JVM must be restarted after the change.
3. How to generate a thread dump?
There are three possible ways to generate a thread dump.
1. Through DMGR console: Go to Troubleshooting >> Select the JVM and click on Java core
2. Kill -3 PID of JVM
3. Using wsadmin.sh as explained here
4.
5. What are the differences between thread dump and heap dump ?
Heap dump: It contains all objects information heap memory. When ever we will
get memory related issues that time we need to generate heap dump for finding
root cause
Thread dump: thread dump is the snapshot of threads, we can use thread dump
identify is there any struc threads or blocking threads, or if there are any dead
locks heapdump.
What is the default location of a thread dump and what is the
format ?
The threds dumps are generated under profile path.
and generally those are .txt files.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
4. What is a virtual host?
Virtual host contains multiple URLs (IP or FQDN based) on a single application and configuration is
done through WAS administrative console.
In order to allow an application to be accessible on particular URL, you must have this URL in a virtual
host and associated with the application.
5. What is garbage collection?
Garbage collection is a memory management process which automatically frees the objects that are
no longer in use by the program.
6. How to enable verbose garbage collection?
Verbose GC is not enabled by default and if you need you can do it by;
Servers >> Server Type >> WebSphere Application Server
Select the JVM >> Process definition under “Java and process management”
Click Java virtual machine under “additional properties” and tick the checkbox for “verbose
garbage collection.
Port numbers
Mention what are the default ports you use to use WebSphere Application Sphere?
Ans:
The default ports you use are HTTP: 9080 and HTTPS: 9443
SOAP Connector : default
For APP Server: 8880
For Admin Agent: 8877
Dmgr: 8879
SSL Certification configuration
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
We are collecting SSL certificate from application team. After that we
download it & store in linux box in with specific path then login to websphere
console
Go to Security>SSL certificate &keymanagement>keystore & trust manager
Based Requirement of application team we import that certificate in above or
both stores
JDBC
Login into console > resources >JDBC> JDBC provides, Data source
For this modification we join to bridge call with application team they are
guide what they want to do modify
Resolving the PMR tickets
Mainly we are facous 4 types of tickets
Ticket Name resolving time
P1 1-2 hours nearly
P2 1day nearly
P3&P4 one week (5 working days)
JDBC Connection Pool ports
Define Connection Properties page, you select and define options for each of the
database connections to create in the connection pool. Properties and options available
will vary depending on the JDBC driver you selected in the previous step in the JDBC
Connection Pool Assistant. The page can include the following options:
Database Name—The name of the database instance that you want to connect to.
For an Oracle database, this would be the Oracle system identifier (SID).
Host Name—The name or IP address of the database server.
Port—The port that the database server uses to communicate with clients. In
many cases, a typical default value is provided, based on the database type
(DBMS) that you selected in Step 1.
Database User Name—The user name to use to connect to the database. In most
cases, the user account must be established on the database server by you
database administrator.
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers
Password—The password for the Database User Name to use to connect to the
database.
There may be additional connection properties on this page, depending on your
DBMS.
XML Files
Plug-cfg.xml file
Ans: it contains of configuration information that determine how the web server plugin
forward request
Path: it is available on cell level
Ex: IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/cellname/plugin-cfg.xml
Serverindex.xml file
Ans: it contains of all the ports information on it
Path; available on node level
Ex: IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/cellname/nodes/node
name/serverindex.xml
Server.xml
Ans; it contains of most of the server configuration in it
Path; available at server level
Ex: IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/cellname/nodes/nodename/
servers/servername/server.xml
Configuration.xml
Ans: it contains no of key/pairs that are merged into the system
Path; available on configuration level
IBM/WebSphere/AppServer/profiles/Dmgr01/configuration/config.xml
IBM Websphere Application Server Administration Interview Topic Wise Questions & Answers