Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Database Administration » Starting and Connecting to Your Database » SQL Anywhere database connections » Troubleshooting connections


Testing embedded SQL connection performance

You can use the Ping utility (dbping) to obtain information about the performance of embedded SQL connections by specifying the -s or -st options. The following statistics are gathered:

Statistic Description
DBLib connect and disconnect The time to perform one DBLib connect and disconnect. Note that the performance of connecting and disconnecting using other interfaces, such as ODBC, is typically slower than DBLib because more requests are required to complete the connection.
Round trip simple request The time it takes to send a request from the client to the server plus the time it takes to send a response from the server back to the client. The round trip time is twice the average latency.
Send throughput The throughput based on transferring 100 KB of data for each iteration from dbping to the database server.
Receive throughput The throughput based on transferring 100 KB of data for each iteration from the database server to dbping.

If your network has both high round trip times and high throughput, the reported throughput will be lower than your actual network throughput because of the high round trip times. Using dbping -s can be useful to give an indication of whether communication compression may improve performance. The performance statistics are approximate, and are more accurate when both the client and server computers are fairly idle. The transferred data can be compressed to approximately 25% of its original size if communication compression is used.

The following is an example of the output from dbping -s for the dbping command dbping -s -c "UID=DBA;PWD=sql;ENG=sampleserver;LINKS=TCPIP":

SQL Anywhere Server Ping Utility Version
Connected to SQL Anywhere server "sampleserver" and database 
"sample" at address
Performance statistic           Number            Total Time    Average
----------------------------    --------------    ----------    ------------
DBLib connect and disconnect      175 times       1024 msec         5 msec
Round trip simple request        2050 requests    1024 msec        <1 msec
Send throughput                  7600 KB          1024 msec      7421 KB/sec
Receive throughput              10100 KB          1024 msec      9863 KB/sec
Ping database successful.
See also