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, August 23, 2012

 

Serviceability gem: Deadlock in WebSphere application server

If your application code in WAS is repeatedly running into a deadlock situations and you want to be forewarned, you can use the ThreadMXBean exposed by the JVM  and call these methods

java.lang.management.ThreadMXBean.findDeadlockedThreads()
java.lang.management.ThreadMXBean.findMonitorDeadlockedThreads()

If either of the two threads returns a  non null value programmatically call a system dump and dump whatever other state you need to diagnose the problem. You can view the contents of the system dump in Eclipse Memory Analyzer Tool.

The House MD equivalent for WAS :-) Kevin Grigorenko has an application deadlockWatch.war that you can use to take a javacore, if there is a deadlock in order to capture the state of the system at the time of the deadlock.

There is no way around having to figure out a proper interval which balances catching it versus the overhead of the check. The default in this app is a 5 minute interval (30000 ms) and you can change that with -Dcom.ibm.deadlockWatch.DeadlockWatcherThread.sleepTime=N (where N is in milliseconds).  Source code is included in the application if you'd like to modify it yourself.

 

Is there a limit to how big an HTTPSession object can be in WebSphere Application Server


For memory to memory session persistence you can go as big as you want although anything bigger than 10K is problematic.

If the sessions are being persisted to the database, then there is a possible limit.  If you are using single-row, then if the session size is greater than 2MB - we can not store it and therefore if there is a failover, it will not be retrieved.  Using a multi-row schema allows the attributes to be stored in separate rows and so the overall size of the session object can be > 2MB.  The smaller the better as far as replicating sessions.

I would recommend viewing this doc as it has some information about performance for various session sizes for both database and memory to memory replication: ftp://public.dhe.ibm.com/software/webservers/appserv/was/WASV8_SessionReplication_Performance_v1.0.pdf

* Credit to WAS Session subject matter expert Robert Goff

 

Tuning WebSphere Application Server on Linux on System z

To better utilize, virtualize and optimize your WAS zLinux environment to serve more applications and users please go through the following white papers and best practice documents to squeeze the last bit of performance from WAS on zLinux

1. Idle WebSphere Tuning Considerations
This was a study done specifically on zLinux to help with swapping of JVMs when they are idle
http://ibm.co/jUcb9M

2. Match 31-bit WebSphere Application Server performance with  new features in 64-bit Java on System z
Solve 31-bit virtual memory crowding issues without sacrificing performance by using heap compression and large pages
https://www-304.ibm.com/partnerworld/wps/servlet/ContentHandler/whitepaper/systemz/java_websphere/performance

3. Linux on System z, an end-to-end view: from Sizing to Performance Analysis to Capacity Planning
http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP100908

4. Architecting z/VM and Linux for WebSphere V7 on System z
http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP101803

5. Sharing a WebSphere Application Server V8 installation among many Linux for IBM System z servers
http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102145

* Thanks to Mike Everett and David Hare, WAS performance experts for providing these links

Tuesday, August 14, 2012

 

Monitoring and Operational best practices in WebSphere Application Server

Operational best practices for WebSphere from kelapure

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   June 2013   July 2013   September 2013   October 2013   June 2014   August 2014  

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

Subscribe to Posts [Atom]