Oracle WebLogic Thread Pool Tuning



Similar documents
Understanding Server Configuration Parameters and Their Effect on Server Statistics

ActiveVOS Performance Tuning

ActiveVOS Clustering with JBoss

Orchestrating Document and Media Management using CMIS

Introduction to Business Model Simulation ActiveVOS Designer

Analyzing IBM i Performance Metrics

WebSphere Performance Monitoring & Tuning For Webtop Version 5.3 on WebSphere 5.1.x

Informatica Master Data Management Multi Domain Hub API: Performance and Scalability Diagnostics Checklist

An Oracle White Paper September Advanced Java Diagnostics and Monitoring Without Performance Overhead

Oracle WebLogic Server Monitoring and Performance Tuning

Monitoring and Diagnosing Production Applications Using Oracle Application Diagnostics for Java. An Oracle White Paper December 2007

Oracle WebLogic Server 11g Administration

Oracle WebLogic Server 11g: Monitor and Tune Performance

WEBLOGIC ADMINISTRATION

How To Improve Performance On An Asa 9.4 Web Application Server (For Advanced Users)

J2EE-JAVA SYSTEM MONITORING (Wily introscope)

CHAPTER 1 - JAVA EE OVERVIEW FOR ADMINISTRATORS

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

TDA - Thread Dump Analyzer

IBM Tivoli Composite Application Manager for WebSphere

Winning the J2EE Performance Game Presented to: JAVA User Group-Minnesota

Load Testing and Monitoring Web Applications in a Windows Environment

<Insert Picture Here> Java Application Diagnostic Expert

How To Monitor A Server With Zabbix

KillTest. 半 年 免 费 更 新 服 务

Agility Database Scalability Testing

Running a Workflow on a PowerCenter Grid

Java Monitoring. Stuff You Can Get For Free (And Stuff You Can t) Paul Jasek Sales Engineer

Tuning WebSphere Application Server ND 7.0. Royal Cyber Inc.

Scalability Tuning vcenter Operations Manager for View 1.0

ESB Versus ActiveVOS

JD Edwards Performance Tuning guide for Oracle Application Server and Oracle Portal Server 10g.

The Complete Performance Solution for Microsoft SQL Server

Mission-Critical Java. An Oracle White Paper Updated October 2008

MagDiSoft Web Solutions Office No. 102, Bramha Majestic, NIBM Road Kondhwa, Pune Tel: /

Robert Honeyman

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

TRACE PERFORMANCE TESTING APPROACH. Overview. Approach. Flow. Attributes

Estimate Performance and Capacity Requirements for Workflow in SharePoint Server 2010

Top 10 reasons your ecommerce site will fail during peak periods

MONITORING A WEBCENTER CONTENT DEPLOYMENT WITH ENTERPRISE MANAGER

IBM Software Group. SW5706 JVM Tools IBM Corporation 4.0. This presentation will act as an introduction to JVM tools.

Monitoring Experience Redefined

CA Unified Infrastructure Management

This document summarizes the steps of deploying ActiveVOS on oracle Weblogic Platform.

Monitoring HP OO 10. Overview. Available Tools. HP OO Community Guides

WebLogic Server System Administration Top Ten Fundamentals Concepts Session ID# 11579

Crystal Reports Server 2008

An Oracle White Paper July Oracle Primavera Contract Management, Business Intelligence Publisher Edition-Sizing Guide

VirtualCenter Database Performance for Microsoft SQL Server 2005 VirtualCenter 2.5

Improve Business Productivity and User Experience with a SanDisk Powered SQL Server 2014 In-Memory OLTP Database

SQL Sentry Essentials

SQL Server Performance Tuning and Optimization

Performance Testing of Java Enterprise Systems

WebSphere Application Server V7: Monitoring the Runtime

BusinessObjects Enterprise XI Release 2

Identifying Performance Bottleneck using JRockit. - Shivaram Thirunavukkarasu Performance Engineer Wipro Technologies

Java Performance Tuning

What's New in ActiveVOS 7.0

Zing Vision. Answering your toughest production Java performance questions

Performance Monitor. Intellicus Web-based Reporting Suite Version 4.5. Enterprise Professional Smart Developer Smart Viewer

VMware vrealize Automation

Avoiding Performance Bottlenecks in Hyper-V

Performance Tuning and Optimizing SQL Databases 2016

VMware vrealize Automation

Liferay Performance Tuning

IBM Tivoli Composite Application Manager for WebSphere

THE BUSY DEVELOPER'S GUIDE TO JVM TROUBLESHOOTING

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

Performance Monitoring and Tuning. Liferay Chicago User Group (LCHIUG) James Lefeu 29AUG2013

Tool - 1: Health Center

Oracle Corporation Proprietary and Confidential

What s Cool in the SAP JVM (CON3243)

Setup Database as a Service using EM12c

Java Troubleshooting and Performance

WITH A FUSION POWERED SQL SERVER 2014 IN-MEMORY OLTP DATABASE

Monitoring Pramati EJB Server

Microsoft Internet Information Services Solution 1.0

Creating and Issuing the Workstation Authentication Certificate Template on the Certification Authority

Weblogic Server Administration Top Ten Concepts. Mrityunjay Kant, AST Corporation Scott Brinker, College of American Pathologist

WebLogic Server Admin

TUTORIAL WHITE PAPER. Application Performance Management. Investigating Oracle Wait Events With VERITAS Instance Watch

Oracle Weblogic. Setup, Configuration, Tuning, and Considerations. Presented by: Michael Hogan Sr. Technical Consultant at Enkitec

Case Study - I. Industry: Social Networking Website Technology : J2EE AJAX, Spring, MySQL, Weblogic, Windows Server 2008.

Delivering Quality in Software Performance and Scalability Testing

11.1 inspectit inspectit

CA Nimsoft Monitor Snap

No.1 IT Online training institute from Hyderabad URL: sriramtechnologies.com

Service Name: Software Support Service

Greenplum Database (software-only environments): Greenplum Database (4.0 and higher supported, or higher recommended)

Manage Traps in a VDI Environment. Traps Administrator s Guide. Version 3.3. Copyright Palo Alto Networks

Desktop Activity Intelligence

Configuring and Integrating JMX

AGENDA. Introduction About Weblogic Server Weblogic Server Administration Top Ten Concepts Q & A

PRODUCT OVERVIEW SUITE DEALS. Combine our award-winning products for complete performance monitoring and optimization, and cost effective solutions.

WEBLOGIC SERVER MANAGEMENT PACK ENTERPRISE EDITION

Effective Java Programming. measurement as the basis

Transcription:

Oracle WebLogic Thread Pool Tuning AN ACTIVE ENDPOINTS TECHNICAL NOTE 2010 Active Endpoints Inc. ActiveVOS is a trademark of Active Endpoints, Inc. All other company and product names are the property of their respective owners. 2010 0

Content Oracle WebLogic Thread Pool Tuning... 2 Configure ActiveVOS to use its own Work Manager... 2 Create a global work manager for the ActiveVOS application... 2 Create a Request Class... 3 Create a Minimum Threads Constraint... 3 Create a Capacity Constraint... 3 Remember to adjust the sizing of other resources to handle concurrency needs... 4 Monitor Thread Pool & Resource Usage under Load... 4 Tuning stuck thread detection behavior... 5 Use Java s Built-in JVM monitoring facility... 5 About Active Endpoints... 6 Oracle WebLogic Thread Pool Tuning The description below explains how to configure Work Managers in Oracle WebLogic Server 10.3.x. Since the specific tuning parameters will vary from application to application and server to server, the specific values here are strictly examples and not specific recommendations. To determine the proper values for your application, you need to follow the steps outlined below, monitor your servers under load and make the appropriate adjustments until you are satisfied with the throughput. For detailed explanations of each of these components, please refer to the Oracle WebLogic Server documentation at http://www.oracle.com/technetwork/middleware/weblogic/documentat ion/index.html. Configure ActiveVOS to use its own Work Manager Using a separate Work Manager is highly recommended as it allows you to monitor and tune the thread pool used by your application. Create a global work manager for the ActiveVOS application 1. Open the Oracle Weblogic Admin Console 2. Navigate to Environment -> Work Managers 3. Choose New to create a Global Work Manager 4. Name your new work manager wm/activevos 5. Target the Work Manager to the same deployment target(s) as the ActiveVOS Server 6. Save Copyright 2010, Active Endpoints, Inc. Page 2 of 6

Create a Request Class The Request Class configuration allows you to choose how the self-tuning thread pool optimizes itself, based on your requirements. In this example, we would like to tune our thread pool to meet a target response time of 1 second per request. 1. Open the Work Manager you just created 2. Choose New next to the Request Class drop-down 3. Choose Response Time as the type 4. Enter a descriptive name for the new class 5. Enter the goal in milliseconds, in our example use 1000 for 1 second 6. Target to the same deployment target(s) as the ActiveVOS Server 7. Save Create a Minimum Threads Constraint This sets the minimum number of threads allocated to this Work Manager. Set this to a value that reflects the anticipated usage for your application to avoid having to deal with deadlocks. 1. Open the Work Manager you just created 2. Choose New next to the Minimum Threads Constraint dropdown 3. Enter a descriptive name for the new class 4. For an initial value, number of (threads per user) x (expected number of concurrent users) 5. Target to the same deployment target(s) as the ActiveVOS Server 6. Save Create a Capacity Constraint This sets the maximum number of queued (waiting) requests allowed before the server starts rejecting new requests. Setting a value here will prevent the server from getting into a bind where too many requests are backed up to the point where it can no longer do any work at all and needs to be bounced. 1. Open the Work Manager you just created 2. Choose New next to the Capacity Constraint drop-down 3. Enter a descriptive name for the new class 4. Enter the highest value of waiting threads that can be tolerated before the server gets completely flooded Copyright 2010, Active Endpoints, Inc. Page 3 of 6

5. Target to the same deployment target(s) as the ActiveVOS Server 6. Save Remember to adjust the sizing of other resources to handle concurrency needs Increasing the number of threads will increase the demand for other resources. Adjust the number of database connections supported in the connection pool to account for the increased concurrency. If there aren t enough database connections, threads will get backed up waiting to get to the database and you can exhaust the thread pool quickly. Increasing the thread count also increases demand for memory and CPU resources. Monitor usage of these resources and crank up the heap size to accommodate the load until your server starts paging to disk. When running with lots of threads and a large heap, you may also need to adjust the I/O and GC settings to avoid spending a lot of time managing the heap and dealing with network bottlenecks. Restart the servers. See the recommended settings for your platform in the Oracle WebLogic server tuning guide at http://download.oracle.com/docs/cd/e14571_01/web.1111/e13814/toc. htm. Monitor Thread Pool & Resource Usage under Load What you want to avoid is having a large pool of requests backing up in the server. This condition often leads to poor performance and deadlocks. In fact, it s much better to just reject new requests before it gets to the point of deadlock. The key server metrics here are the queue depths on the execute thread pools and database connections. Using the admin console, Navigate to Environment->Servers- >server to monitor->monitoring->threads Watch the value of the Queue Length column. On a healthy server, this number should be very small, preferably 0. If it s not, check the server s CPU and Memory utilization. If they re both below 100%, increase the values for the work manager in the ActiveVOS Copyright 2010, Active Endpoints, Inc. Page 4 of 6

console. If it s at 100%, your environment is maxed out and adding more threads is not going to help. Tuning stuck thread detection behavior Oracle WebLogic Server automatically detects when a thread in an execute queue becomes stuck. Because a stuck thread cannot complete its current work or accept new work, the server logs a message each time it diagnoses a stuck thread. Oracle WebLogic Server diagnoses a thread as stuck if it is continually working (not idle) for a set period of time. You can tune a server s thread detection behavior by changing the length of time before a thread is diagnosed as stuck, and by changing the frequency with which the server checks for stuck threads. To configure stuck thread detection behavior, in the admin console, click Lock & Edit and navigate to Environment > Servers > your server > Configuration > Tuning, update as necessary: 1. Stuck Thread Max Time -- Amount of time, in seconds, that a thread must be continually working before a server instance diagnoses a thread as being stuck. 2. Stuck Thread Timer Interval -- Amount of time, in seconds, after which a server instance periodically scans threads to see if they have been continually working for the configured Stuck Thread Max Time. 3. Click Save. Click Activate Changes. Use Java s Built-in JVM monitoring facility The Java 1.5 JDK provides a JVM monitoring feature that gives a nice graphical view of memory and thread usage. Add -Dcom.sun.management.jmxremote.port=<portnum> to the server s startup parameters. Monitor the server using JConsole found under $JAVA_HOME/bin. If you are using JDK 6, then you can instead use the excellent VisualVM monitoring tool, which includes the functionality of JConsole, and is included with the JDK. The JConsole utility is also available in a typical Oracle WebLogic installation, for example at C:\weblogic10_3_2\Middleware\jdk160\bin or C:\weblogic10_3_2\Middleware\jrockit160\bin Copyright 2010, Active Endpoints, Inc. Page 5 of 6

About Active Endpoints Active Endpoints (www.activevos.com) ActiveVOS is the leader in serviceoriented BPM software for process automation. ActiveVOS empowers project teams to create business process management (BPM) applications using services, making their businesses more agile and effective. ActiveVOS promotes mass adoption of SOA-enabled BPM applications by focusing on accelerating project delivery time with a complete, affordable and easy-to-use system. Active Endpoints is headquartered in Waltham, MA with development facilities in Shelton, CT. To find out how Active Endpoints can help your business, visit http://www.activevos.com, call +1 781 547 2900 and press 1 for Sales, or email us at info@activevos.com. Copyright 2010, Active Endpoints, Inc. Page 6 of 6