19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

With the z/<strong>OS</strong> Application Connectivity to <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> feature that provides <strong>DB2</strong> universal<br />

Driver type 4 connectivity, the use of a gateway <strong>DB2</strong> is avoided and a 73% increase in<br />

throughput on the WAS LPAR is realized, see Figure 7-7.<br />

WebSphere<br />

V502<br />

servlet<br />

WebSphere<br />

V502<br />

servlet<br />

WebSphere z/<strong>OS</strong> - <strong>DB2</strong> z/<strong>OS</strong> V8 - Servlet workload<br />

JCC type 2/Gateway <strong>DB2</strong> vs. JCC type 4<br />

z/<strong>OS</strong> 1.3 z/<strong>OS</strong> 1.3<br />

JCC<br />

T2<br />

1.8.36<br />

JCC<br />

T4<br />

1.8.36<br />

<strong>DB2</strong> V8<br />

<strong>for</strong> z/<strong>OS</strong><br />

D<br />

D<br />

F<br />

D <strong>DB2</strong> V8<br />

D <strong>for</strong> z/<strong>OS</strong><br />

F<br />

z/<strong>OS</strong> 1.3 z/<strong>OS</strong> 1.3<br />

D<br />

D<br />

F<br />

<strong>DB2</strong> V8<br />

<strong>for</strong> z/<strong>OS</strong><br />

Figure 7-7 <strong>DB2</strong> Universal Type 2 Driver - Gateway <strong>DB2</strong> vs. <strong>DB2</strong> Universal Type 4 Driver<br />

<strong>DB2</strong> Universal Type 2 Driver vs. <strong>DB2</strong> Universal Type 4 Driver - Local environment<br />

In Figure 7-8 we compare the JCC Type 2 and Type 4 Driver in a local environment. The<br />

intention is to demonstrate the difference in per<strong>for</strong>mance between the Type 2 and Type 4<br />

Driver in a local environment in the same LPAR as <strong>DB2</strong>.<br />

Since the WebSphere Application Server is local to the DBMS (same LPAR), the Type 2<br />

Driver can do “native” calls to <strong>DB2</strong>; this configuration normally provides the best per<strong>for</strong>mance.<br />

Your Java application that is running under the control of WAS can talk to <strong>DB2</strong> through the<br />

Type 2 JDBC Driver, and a local RRS attachment.<br />

Using the Type 4 Driver in this configuration is not a recommended setup <strong>for</strong> a production<br />

environment, since all SQL requests go through DRDA over TCP/IP (so through the TCP/IP<br />

stack) into <strong>DB2</strong>’s DDF address space. Even though DRDA is a very efficient database<br />

communication protocol, it is normally more expensive than going through the local RRS<br />

attachment as will become clear from this test case.<br />

Trans/sec - higher is better<br />

500<br />

400<br />

300<br />

200<br />

100<br />

73 %<br />

14 %<br />

0<br />

WebSphere LPAR<br />

Remote <strong>DB2</strong><br />

JCC type2/<strong>DB2</strong><br />

JCC type 4<br />

Chapter 7. Networking and e-business 295

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!