HP NonStop JDBC Type 4 Driver Performance Tuning Guide for Version 1.0



Similar documents
Module File Cache for NonStop SQL/MX

Tuning WebSphere Application Server ND 7.0. Royal Cyber Inc.

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

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

MDM Multidomain Edition (Version 9.6.0) For Microsoft SQL Server Performance Tuning

Java DB Performance. Olav Sandstå Sun Microsystems, Trondheim, Norway Submission ID: 860

Top 10 Performance Tips for OBI-EE

Configuring Apache Derby for Performance and Durability Olav Sandstå

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package Data Federation Administration Tool Guide

Performance brief for IBM WebSphere Application Server 7.0 with VMware ESX 4.0 on HP ProLiant DL380 G6 server

IBM Tivoli Monitoring V6.2.3, how to debug issues with Windows performance objects issues - overview and tools.

HP OO 10.X - SiteScope Monitoring Templates

Holistic Performance Analysis of J2EE Applications

WebSphere Architect (Performance and Monitoring) 2011 IBM Corporation

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

Cognos8 Deployment Best Practices for Performance/Scalability. Barnaby Cole Practice Lead, Technical Services

Tuning Your GlassFish Performance Tips. Deep Singh Enterprise Java Performance Team Sun Microsystems, Inc.

Configuring Apache Derby for Performance and Durability Olav Sandstå

ActiveVOS Performance Tuning

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

<Insert Picture Here> Java Application Diagnostic Expert

Performance and scalability of a large OLTP workload

Performance Testing of Java Enterprise Systems

SOLUTION BRIEF. Advanced ODBC and JDBC Access to Salesforce Data.

Plug-In for Informatica Guide

DB2 Connect for NT and the Microsoft Windows NT Load Balancing Service

ITG Software Engineering

Liferay Portal Performance. Benchmark Study of Liferay Portal Enterprise Edition

Crystal Reports Server 2008

Tool - 1: Health Center

Documentum Business Process Analyzer and Business Activity Monitor Installation Guide for JBoss

Readme File for All Platforms

Web Services Performance: Comparing Java 2 TM Enterprise Edition (J2EE TM platform) and the Microsoft.NET Framework

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

HOW TO DEPLOY AN EJB APLICATION IN WEBLOGIC SERVER 11GR1

Solutions for detect, diagnose and resolve performance problems in J2EE applications

FileNet Business Activity Monitor (BAM) Release Notes

MONITORING A WEBCENTER CONTENT DEPLOYMENT WITH ENTERPRISE MANAGER

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

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

Java Performance Tuning

A Performance Engineering Story

PeopleSoft Online Performance Guidelines

Availability Digest.

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

Version Overview. Business value

By Wick Gankanda Updated: August 8, 2012

NetIQ AppManager for WebLogic Server UNIX. Management Guide

Tuning Guide for BEA WebLogic Server on HP NonStop Servers Author: Santosh Menon November 17, 2005

IBM Business Monitor Version IBM Business Monitor Installation Guide

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

IBM Tivoli Composite Application Manager for WebSphere

HP Education Services

WebLogic Server Admin

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

System Requirements. SAS Profitability Management 2.2. Deployment

Monitoring IBM Maximo Platform

Practical Performance Understanding the Performance of Your Application

Scaling out a SharePoint Farm and Configuring Network Load Balancing on the Web Servers. Steve Smith Combined Knowledge MVP SharePoint Server

WSO2 Business Process Server Clustering Guide for 3.2.0

Contents Introduction... 5 Deployment Considerations... 9 Deployment Architectures... 11

Agility Database Scalability Testing

Business white paper. HP Process Automation. Version 7.0. Server performance

Contents. 2. cttctx Performance Test Utility Server Side Plug-In Index All Rights Reserved.

Performance Test Report For OpenCRM. Submitted By: Softsmith Infotech.

Justin Bruns, Performance Test Lead, Fireman's Fund Insurance Robert May, Enterprise Software Tools Administrator Fireman's Fund Insurance

IBM CICS Transaction Gateway for Multiplatforms, Version 7.0

Performance Improvement In Java Application

Spectrum Technology Platform. Version 9.0. Spectrum Spatial Administration Guide

IBM Tivoli Service Request Manager

Open Source DBMS CUBRID 2008 & Community Activities. Byung Joo Chung bjchung@cubrid.com

Performance and Scalability Overview

CHAPTER 1 - JAVA EE OVERVIEW FOR ADMINISTRATORS

soliddb Fundamentals & Features Copyright 2013 UNICOM Global. All rights reserved.

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

Legal Notices Introduction... 3

BarTender Integration Methods. Integrating BarTender s Printing and Design Functionality with Your Custom Application WHITE PAPER

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.


PART IV Performance oriented design, Performance testing, Performance tuning & Performance solutions. Outline. Performance oriented design

Enterprise Performance Tuning: Best Practices with SQL Server 2008 Analysis Services. By Ajay Goyal Consultant Scalability Experts, Inc.

Cloud Computing. Adam Barker

Apache Derby Performance. Olav Sandstå, Dyre Tjeldvoll, Knut Anders Hatlen Database Technology Group Sun Microsystems

Performance and Scalability Overview

Java MySQL Connector & Connection Pool

The Data Access Handbook

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Using Tomcat with CA Clarity PPM

The team that wrote this redbook Comments welcome Introduction p. 1 Three phases p. 1 Netfinity Performance Lab p. 2 IBM Center for Microsoft

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Optimizing Performance. Training Division New Delhi

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

HiBench Introduction. Carson Wang Software & Services Group

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

MEASURING WORKLOAD PERFORMANCE IS THE INFRASTRUCTURE A PROBLEM?

CA Workload Automation Agent for Databases

Garbage Collection in NonStop Server for Java

Load Testing Analysis Services Gerhard Brückl

HP SiteScope. HP Vertica Solution Template Best Practices. For the Windows, Solaris, and Linux operating systems. Software Version: 11.

Transcription:

HP NonStop JDBC Type 4 Driver November 22, 2004 Author: Ken Sell 1 Introduction Java applications and application environments continue to play an important role in software system development. Database access accounts for a significant portion of the time and resources used by many Java programs. As database access grows, its impact on the overall performance of an application grows as well. This document contains tips for optimizing performance when using the HP NonStop JDBC Type 4 Driver, version 1.0. 2 Overview The NonStop JDBC Type 4 Driver is one of several components that are used in accessing an HP NonStop SQL/MX database. Although this document focuses on the Type 4 driver component specifically, it also talks about other related components where applicable, such as the NonStop SQL Connectivity Service (MXCS). Optimizing performance can have many meanings, including: CPU usage on the client system (PC, HP-UX, etc.) Memory usage on the client system CPU usage on the HP NonStop server system Memory usage on the server system Throughput (number of transactions per second) Response time (the time it takes for the client application to respond) Furthermore, the meaning of performance can vary when the scalability of a system is considered. When applicable, this document indicates any negative impact that a performance improvement might have on the scalability of an application. Page 1 Hewlett-Packard Company 529619-001 November 29, 2004

3 NonStop JDBC Type 4 Driver Tuning Tips 3.1 Configuration Tips Connection pooling. Use connection pooling either explicitly with your own implementation, the Type 4 driver connection pooling mechanism (the default is no connection pooling) or implicitly through a product that supports connection pooling, such as BEA Weblogic Server, or IBM WebSphere, etc. Maximum pool size. Use the maxpoolsize and minpoolsize properties to tune the connection pool. o The default maxpoolsize is 0 unlimited pool size. o The default minpoolsize is 0 connections are never physically closed but are added to the connection pool. o Set minpoolsize to the anticipated number of connections to be used. For example, set minpoolsize to the number of application threads. Statement pooling. Set the maxstatements property to enable statement pooling (the default is no statement pooling). For example, SQLMXDataSource.setMaxStatements(100). Logging. Turn off logging. Set the t4loglevel property to OFF (the default is OFF). Set the DriverManager.setLogWriter() and/or DataSource.setLogWriter() methods to null (the default is null). Heap manager. Increase or decrease the Java virtual machine (JVM) heap size to balance performance versus memory usage. The Type 4 driver creates objects that must be garbage collected by the JVM. For additional information on JVM heap optimization, see the Tuning Garbage Collection with the 1.4.2 Java Virtual Machine at http://java.sun.com/docs/hotspot/gc1.4.2/ and Turbo-charging Java HotSpot Virtual Machine, v1.4.x to Improve the Performance and Scalability of Application Servers at http://java.sun.com/developer/technicalarticles/programming/turbo/. 3.2 Design and Programming Tips Do not use the same connection simultaneously in different threads. The connection s operations will be serialized. Use different connections with different threads to get parallel execution. Use the same connection to execute multiple statements. Closing and reopening a connection can be very costly. When using connection pooling, avoid setting the connection s catalog, schema, transaction isolation, and autocommit attributes programmatically at Page 2 Hewlett-Packard Company 529619-001 November 29, 2004

run time. Set these values appropriately with your data source properties. Note: theses properties are not reset when a connection is pooled. Use prepared statements (PreparedStatement class), and parameterize its arguments. Avoid retrieving unnecessary columns: don't use "SELECT *". Turn off autocommit when possible (the default is on). All transaction levels might operate faster with autocommit turned off, although using this setting requires you to code commits. Leave autocommit on for single statements. Avoid repeatedly calling expensive database query functions such as: getbestrowidentifier; getcolumns, getcrossreference, get ExportedKeys, getimportedkeys, getprimarykeys, gettables, and getversioncolumns. If possible, call these functions once, and cache the returned data. Use the type-correct get() method, rather than getobject(). Always close Statement and ResultSet objects as soon as possible. Use BROWSE (READ UNCOMMITTED) access on SQL statements when possible. 4 MXCS Tuning Tips Use a non-default server data source when making a connection, and configure the data source to optimize performance for your environment. See the serverdatasource property in the NonStop JDBC Type 4 Driver Programmer s Reference manual, and server data source in the SQL/MX Connectivity Service Manual. 5 Database Tuning Tip See the SQL/MX Query Guide. Safeguard supports multiple alias and password pairs for a single Guardian user name. Using these aliases or password pairs can improve performance because object caching reuses the underlying user name. You can set up an anonymous log-in capability by adding a user name such as guest with no password; then map this user name to a user group that has limited access to the SQL objects. Page 3 Hewlett-Packard Company 529619-001 November 29, 2004

Tune the priority of the processes such as DP2, SQL/MX Compiler, SQL/MX Executor. See the Mixed Workload Design Priority Guidelines white paper in the NonStop Technical Library for additional information. Use the CONTROL TABLE <table-name> PRIORITY <priority> SQL/MX control table statement to tune the priority for subsequent file system requests to the Data Manager (DAM). See the SQL/MX Reference Manual for additional information. 6 Hardware considerations Use the fastest Ethernet possible on the NonStop system. The 100-megabitper-second operation offered by the HP 3863 Fast Ethernet ServerNet adapter (FESA) on the NonStop system is recommended. 7 TCP/IP Configuration Set the DATAFORWARDCOUNT and DATAFORWARDTIMER SLSA subsystem values to 1. For additional information, see the LAN Configuration and Management Manual. 8 Performance Measuring Tools Several excellent performance measuring tools are available for analyzing the impact of accessing a SQL/MX database through the Type 4 driver, including: HPjmeter - HPjmeter is a free 100% pure Java tool for analyzing profiling information generated by the JVM. HPjmeter runs on the HP-UX, Solaris, Windows, and Linux platforms. HPjmeter allows you to measure many aspects of your JVM (CPU usage per method, memory usage, etc.). You can download HPjmeter from http://www.hp.com/products1/unix/java/hpjmeter/ Perfmon - Perfmon is available in the Windows environment and allows you to open a performance console and monitor CPU, memory, and thread usage. For more information, see the Microsoft website at http://www.microsoft.com Page 4 Hewlett-Packard Company 529619-001 November 29, 2004

Measure - The Measure performance monitor is available on NonStop systems. Measure is a data collection and measurement tool that provides a wide range of performance statistics on system resources. You can use the Measure performance monitor to gather information about SQL/MX Connectivity Services (MXCS) CPU and memory usage. For more information, see the Measure User s Guide. 8.1 Tool Usage Examples 8.1.1 HPjmeter Run a program (test.testmanythreads), enabling output of performance information (-Xeprof). Note: the -Xeprof Java option is available on HP-UX systems. The Xprof option is available with most other Java implementations and provides similar profiling data. java -Xeprof test.testmanythreads A file containing profiling data is produced. java10275.eprof Invoke HPjmeter, and open the profiling data file. Under Metric, choose Inclusive Method Times (CPU), The following chart is shown. Page 5 Hewlett-Packard Company 529619-001 November 29, 2004

Note that a large amount of time is spent in com.tandem.t4jdbc.sqlmxpreparedstatement.execitequery() (executing the query). This indicates a good place to look for optimization. For example, you might improve your query s performance by using recommendations in the SQL/MX Query Guide. Page 6 Hewlett-Packard Company 529619-001 November 29, 2004