Tuesday, June 7, 2011

WAS webservices client outbound connections

WAS Webservices outbound connections have an idle timeout of 5 seconds by default. If a peer severs the connection you are more likely to get an Async IO error.

WAS as a client should set the timeout lower than whatever peer it is communicating with to reduce the errors. This way the client severs the connection and is more likely to create a new connection for new webservice requests.

Mojarra JSF Http Session memory leak

JSF has a memory leak, where http sessions will not leave the heap even after http session idle timeout. This happens when the project stage for JSF is set to development. Facelets deve,opment mode should also be set to false.