Thoughts and Tutorials about Continuous Integration, Application Integration, SOA, IT Architecture, WebSphere and Liferay

Jun 3, 2008

Increase performance of applications with servlet caching

WebSphere Application Server (Version 5,6,6.1) provides the servlet caching option to increase the performance of applications. If servlet caching is enabled, the servlet output will be held in RAM of the physical application server. As an result clients can be served faster. In my tests i noticed a performance increase about 50 percent.
So how to enable servlet caching?
1. In administrative console go to
Application servers > "Server name" > Container services > Dynamic cache service
and set "Enable service at server startup" to true.

2. Go to
Application servers > "Server name" > Web container and enable servlet caching for this application server
3. Restart the application server

Note:
More RAM-Space is needed to cache the output.
Servlet output will be cached in RAM during first invocation of JSP/Servlet.

Re-Install Admin Console (isclite) in WebSphere Application Server

If the admin console (isclite) is broken or was accidentally uninstalled, you can re-deployment (reinstall) the console-application by executing the jython script deployConsole.py

1. First do a clean removal of the old admin-console deployment:
"System-folder"/bin/wsadmin.sh -lang jython -f deployConsole.py remove
2. After that reinstall the administrative console (isclite):
"System-folder"/bin/wsadmin.sh -lang jython -f deployConsole.py install
3. Double check the application mapping. Take a look at:
/"profile-root"/config/cells/"cell name"/nodes/"node name"/applications/isclite.ear/deployments/isclite/deployment.xml
3.1 And check if the <deploymenttargets>-Tag points to the correct server.

4. Take a look at
/"profile root"/config/cells/"cell name"/nodes/"node name"/serverindex.xml
4.1. Check if the <deployedapplications>-Tag for the application isclite  is mapped to the correct server (server1 in base version of WebSphere).

Now the administrative console should work again.