d8888 888 888      88888888888 888      d8b                                 888       888          888       .d8888b.           888                               
      d88888 888 888          888     888      Y8P                                 888   o   888          888      d88P  Y88b          888                               
     d88P888 888 888          888     888                                          888  d8b  888          888      Y88b.               888                               
    d88P 888 888 888          888     88888b.  888 88888b.   .d88b.  .d8888b       888 d888b 888  .d88b.  88888b.   "Y888b.   88888b.  88888b.   .d88b.  888d888 .d88b.  
   d88P  888 888 888          888     888 "88b 888 888 "88b d88P"88b 88K           888d88888b888 d8P  Y8b 888 "88b     "Y88b. 888 "88b 888 "88b d8P  Y8b 888P"  d8P  Y8b 
  d88P   888 888 888          888     888  888 888 888  888 888  888 "Y8888b.      88888P Y88888 88888888 888  888       "888 888  888 888  888 88888888 888    88888888 
 d8888888888 888 888          888     888  888 888 888  888 Y88b 888      X88      8888P   Y8888 Y8b.     888 d88P Y88b  d88P 888 d88P 888  888 Y8b.     888    Y8b.     
d88P     888 888 888          888     888  888 888 888  888  "Y88888  88888P'      888P     Y888  "Y8888  88888P"   "Y8888P"  88888P"  888  888  "Y8888  888     "Y8888  
                                                                 888                                                          888                                        
                                                            Y8b d88P                                                          888                                        
                                                             "Y88P"                                                           888   

All Things WebSphere

Concerns and issues relating to all versions of WebSphere Application Server

Thursday, May 2, 2013

 

IBM WebSphere Application Server V8.5.5 enhanced Liberty profile


Delivers enhanced Liberty profile capabilities and introduces a new lightweight Liberty only offering for Web Profile applications

Introduces a new Liberty profile-only solution. The WebSphere Application Server Liberty Core edition is built to leverage the lightweight and dynamic aspects of the Liberty profile. Scoped to the capabilities of Web Profile applications, the new edition is ideal for lightweight production servers.

Enhancements to the Liberty profile are as follows:

• Certification to the JEE 6 Web Profile, providing the assurance that applications leverage standards-compliant programming models
• Additional programming models such as web services that enable the expansion of Liberty profile applications beyond web applications
• New messaging capabilities, including support for JMS and message-driven beans, and a new single server message provider
• Ability to add Liberty features through a new system programming interface, enabling the customization of Liberty profile capabilities to meet your business needs through insertion of custom Liberty features
• Support for the NoSQL database MongoDB, a scalable, well-performing, and easy-to-use document-style NoSQL database
• Enhancement to security support, such as federated repositories, custom user registry, trust association interceptor, password hashing, and encryption of passwords in server configurations, which improves security for Liberty application deployments
• High Performance Extensible Logging (HPEL) for Liberty servers, which enables better administration and serviceability
• New Liberty administration features
• Clustering of server instances
• Support for caching via the WebSphere Web Cache (DynaCache) and distributed caching with WebSphere eXtreme Scale
• Ability to install the entitled WebSphere Application Server edition on developer
machines for development and unit testing purposes•
• WebSphere Application Server V8.5.5 tooling bundles updated with Rational®
Application Developer (RAD) V9 and the WebSphere Application Server Developer
Tools (WDT) V8.5.5

For details see http://www.ibm.com/common/ssi/cgi-bin/ssialias?infotype=AN&subtype=CA&appname=gpateam&supplier=897&letternum=ENUS213-137&pdf=yes

 

Why should I use WebSphere Application Server core Liberty over Tomcat "kitchen sink" server ?


Scenario :  
A customer started with an 8MB Tomcat runtime for web apps , but by the time the dev teams added in their "stuff" it   turned into  60 MB "kitchen sink" type app server..  It includes may jars which one might expect to use to develop modern web apps which is fine because we expect customers to bundle those with the app.  BUT it also contains a fairly complete set of jars that comprise a middleware server (web services, jms, ...)  

Why should I choose WebSphere Application Server Liberty over my homegrown tomcat solution

Following is a comparison of Liberty vs a homegrown Tomcat "kitchen sink" type  server.

Server provisioning:
- Liberty, by design,  allows you to include only the features you need for your applications .
- Liberty  "minify" will subset the runtime for you, based on the configuration of the server
- produces a deployable binary server
- Homegrown is monolithic, will require significant manual effort and testing to figure out how to get back to "right-sized" server environment
-Or customer will need  to always deploy the 60MB homegrown server

- Liberty - configuration changes are dynamic - don't require server restart (i.e. jms, jdbc, vips)
- Homegrown - configuration changes will probably require restart

- Liberty - all the configuration goes in server.xml (or xml files included by server.xml) at customer's choice
-unique properties can be managed external to the server.xml, which allows customization per environment (Dev, FVT, Prod, ...)
- Homegrown - all the packages added to Tomcat will have their own config method/files

- Liberty log / trace files are consolidated
- Trace setting are consistent across components
- Homegrown will have logs/traces in multiple locations
- Homegrown components will NOT have trace setting suitable for production debug

Extensibility:
- Liberty runtime  can be extended by adding features in an architectural fashion, consistent with IBM developed features
-  Can create wrapper for 3rd party libraries which allows configuration of the new "feature"  consistent with IBM developed features
- Homegrown only allows  ad-hoc integrations of 3rd party jars

Dynamicity: 
- Liberty - config changes are dynamic - don't require server restart (i.e. jms, jdbc, vip settings)
- Homegrown, - config changes will probably require restart

Support
Liberty is fully supported by IBM
Homegrown?  middleware support team  + App teams + OSS communities
OSS communities (or public individuals) don't provide formal support.  Its based on best effort and interest as determined by the particular community / individual


Liberty - In the service stream Liberty has strict backward compatibility requirements
- no regressions on service releases
- new behaviors in service must be intentionally enabled by customer
Homegrown - Open Source communities don't adhere to strict backward compatibility.

Standards:
Liberty APIs are primarily based on open standards, allowing flexibility and a wider range of applications to work.
Homegrown - some APIs are based on standards but many are not. (i.e. "stax-2" is not a standard)

Licensing
- Liberty - IBM vet's all the OSS that we deliver and the code we develop.
- Homegrown - due diligence  is customers responsibility

Security differences
- Liberty supports hashing/encryption of passwords  in config, can be kept in separate property file
- Supports seamless integration with Tivoli and other authentication and authorizaton products.
- Homegrown security is likely to be a hodge podge of custom integration with different vendors.

Application Deployment
- Liberty allows automatic "drop in" of new app versions.  No server restart required.
 - Homegrown - Tomcat allows "drop in" deployment, but most likely the extensions do not

Central server management
Liberty collective will allow customer to build large administrative clusters
- i.e. start, stop, update config sent  to LibertyController which updates all servers in the collective
Homegrown - customer would need to develop management framework

Performance 
Liberty is significantly better than Tomcat



 

Project Icap


In case you are wondering where I have been all these months. I have taken a new job within IBM as a senior developer working on Cloud based application platform and services.

We just released Project Icap at IMPACT 2013
See https://www.ibm.com/developerworks/community/blogs/icap/entry/home?lang=en

1812 icap-v1.3 0430 from kelapure

Tuesday, January 8, 2013

 

HAManager Questions


Question Should we use dedicated JVMs as HA coordinators. And if so are the recommendations different between WAS versions 7.0, 8.0 and 8.5? 
Yes.
Recommendations are same across v7 and v85
It is a best practice to configure one or more preferred coordinator processes for each core group. This limits the movement of the coordinator and number of state rebuilds.
Configuring preferred coordinators is a best practice.
Ideally, assign processes that do not host applications and are located on machines with spare capacity as preferred coordinators.
http://www3.software.ibm.com/ibmdl/pub/software/dw/wes/0710_largetopologies/LargeWebSphereTopologies.pdf

Question Should we enable HA for applications that utilize ejb, XA, Websphere MQ, or sibbus? And if so are the recommendations different between WAS versions 7.0, 8.0 and 8.5? What are the benefits of enabling it? Are there any concerns? 
http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.doc/info/ae/ae/trun_ha_ham_enable.html
http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.doc/info/ae/ae/crun_ha_ham_required.html

The components that use HA services in WAS are 
  1. EJB workload management
  2. JMS workload management
  3. On-demand configuration routing
  4. Data replication service
    • HTTP Session distribution when using memory to memory replication
    • Dynamic cache distribution, when using memory to memory replication
    • Stateful session bean failover, which relies on memory to memory replication
    • Session Initiation Protocol (SIP)
If you need any of these workload management, replication and routing services then you need to enable HAM on the cluster. The downside to enabling HAM is increased CPU activity across all the cluster JVMs and increase in network chatter due to data replication across JVMs. Logs get filled with HAM membership messages as servers come up and down. Recommendations are same across  v7 and v8.5



Thursday, November 1, 2012

 

WebSphere Portal and Content Manager integration with WebSphere eXtreme Scale


If you want to configure WebSphere Portal Server to leverage WebSphere eXtreme Scale such that all the dynacache instances offload the cache data to Dynacache please go through the presentation below and the article.



Using WebSphere eXtreme Scale to enhance WebSphere Portal and IBM Web Content Manager performance
http://www.ibm.com/developerworks/websphere/techjournal/1206_inreach/1206_inreach.html

Thursday, October 11, 2012

 

Interruptible Thread Infrastructure - WebSphere Application Server on zOS


WebSphere Application Server on zOS in v7 introduced dispatch timeout improvements. This is a long way of saying that on zOS when a thread times out waiting on a connection or reading data from a socket, zOS, WAS and the JDK can nudge the request along. Read more here. This is also called ITI (Interruptible Thread Infrastructure). We love acronyms in IBM :-)  This dispatched thread interruption applies to ALL stalled threads, even those consuming excessive CPU.

So how does one set up ITI, ? You get ITI by default IF you do NOT have recovery set to session.

Remove the following JVM custom properties
protocol_http_timeout_output_recovery        SESSION
protocol_https_timeout_output_recovery       SESSION

Add the following properties 
protocol_http_timeout_output_recovery         Servant
protocol_https_timeout_output_recovery        Servant
server_region_stalled_thread_threshold_percent    80

There are also some other cool features like the MODIFY,DISPLAY, THREADS command

MODIFY ,DISPLAY,THREADS,TIMEDOUT,DETAILS
MODIFY ,DISPLAY,THREADS,AGE=30,DETAILS

This command, which offers both a SUMMARY and DETAILS format, displays information about server activity, which you can use for identifying requests that run longer than expected.

Another favorite runtime monitoring and  introspection feature of mine is the Dispatch Progress Monitor. In the flood of trace output from hundreds or thousands of requests, it is difficult to find traces related to the occasional long running request. This is where DPM helps as it can be enabled/disabled at runtime.

To enable the DPM, enter the MODIFY command, as follows:
MODIFY ,DPM, xxxx=
MODIFY ,DPM,DUMP_ACTION=JAVACORE
default dump action is the TRACEBACK.

Here is an example with the dump action set to TRACEBACK (and formatted for readability):
BBOJ0118I: ThreadDetails: ASID = 005B, TCB = 0X008CBE88, Request = fffff503,
Is JVM Blocked = false, Tried to interrupt = false, Given up = false,
Internal Work Thread = false, Hung Reason = Not Hung,
SR Dispatch Time = 2008/05/05 12:15:31.371625,
CTL Receive Time = 2008/05/05 12:15:31.366693,
CTL Queued to WLM Time = 2008/05/05 12:15:31.371328,
Details = , ODI Details = .JVM INTERRUPTIBLE THREAD, Monitor ACTIVE.
 

BBOJ0117I: JAVA THREAD STACK TRACEBACK FOR THREAD WebSphere:ORB.thread.pool
t=008cbe88: Dispatch Progress Monitor
Traceback for thread WebSphere:ORB.thread.pool t=008cbe88:
com.ibm.ws390.orb.ClientDelegate.invokeRequestCFW(Native Method)
com.ibm.ws390.orb.ClientDelegate.commonInvoke(ClientDelegate.java:998)



 

Servlet filter for updating session attributes


Often times developers will put objects in session and modify them without calling javax.servlet.http.HttpSession.setAttribute(String, Object) or javax.servlet.http.HttpSession.removeAttribute(String).

This is BAD because if session persistence is enabled the session manager does not know that the session is touched and fails to replicate to the persistence store. This persistence store can be another server, a database, a data grid or an appliance.

To solve this problem I have written a servlet that forces a sync and writes out all the session attributes to the persistence store at the end of the servlet request.

Take a look and download the src here ..
If you will also need to add the following filter.xml to your web.xml  sorry not everyone is on servlet 3.0 :-)  

Archives

December 2006   September 2008   January 2009   February 2009   March 2009   September 2009   October 2009   November 2009   December 2009   January 2010   February 2010   March 2010   April 2010   October 2010   January 2011   February 2011   April 2011   May 2011   June 2011   July 2011   August 2011   September 2011   October 2011   November 2011   December 2011   January 2012   February 2012   March 2012   April 2012   May 2012   June 2012   July 2012   August 2012   September 2012   October 2012   November 2012   January 2013   May 2013  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]