Friday, June 19, 2015

Tsung crashes when running with multiple clients.

When running tsung over 3 different client machines, I keep seeing a crash

[root@dhcp-223-187 .tsung]# tsung start
Starting Tsung
"Log directory is: /root/.tsung/log/20150618-2351"
{"Kernel pid terminated",application_controller,"{application_terminated,tsung_controller,shutdown}"}

Crash dump was written to: erl_crash.dump

This happened, because all the 3 clients had different date/time set, or atleast were drifting apart by more than 5-6 seconds.

After setting date/time via ntp I was able to get tsung to run without issues. Remember to run the ntpdate command below on all the client machines.

[root@dhcp-223-187 .tsung]# ntpdate -b time.microsoft.com
19 Jun 04:56:58 ntpdate[7293]: step time server 10.113.60.176 offset 18079.920147 sec


[root@dhcp-223-187 .tsung]# tsung start
Starting Tsung
"Log directory is: /root/.tsung/log/20150619-0458"

Labels: , ,

Wednesday, June 3, 2015

Enable monitor switches on DB2 instance

db2 => get monitor switches

            Monitor Recording Switches

Switch list for db partition number 0
Buffer Pool Activity Information  (BUFFERPOOL) = OFF
Lock Information                        (LOCK) = OFF
Sorting Information                     (SORT) = OFF
SQL Statement Information          (STATEMENT) = OFF
Table Activity Information             (TABLE) = OFF
Take Timestamp Information         (TIMESTAMP) = OFF
Unit of Work Information                 (UOW) = OFF


db2 =>  update monitor switches using SORT on
DB20000I  The UPDATE MONITOR SWITCHES command completed successfully.
db2 =>  update monitor switches using bufferpool on
DB20000I  The UPDATE MONITOR SWITCHES command completed successfully.
db2 =>  update monitor switches using statement on
DB20000I  The UPDATE MONITOR SWITCHES command completed successfully.
db2 =>  update monitor switches using table on
DB20000I  The UPDATE MONITOR SWITCHES command completed successfully.
db2 =>  update monitor switches using lock on
DB20000I  The UPDATE MONITOR SWITCHES command completed successfully.

db2 =>  get monitor switches

            Monitor Recording Switches

Switch list for db partition number 0
Buffer Pool Activity Information  (BUFFERPOOL) = ON  06/03/2015 20:54:39.404121
Lock Information                        (LOCK) = ON  06/03/2015 20:55:10.877652
Sorting Information                     (SORT) = ON  06/03/2015 20:54:24.260609
SQL Statement Information          (STATEMENT) = ON  06/03/2015 20:54:48.091248
Table Activity Information             (TABLE) = ON  06/03/2015 20:54:57.851274
Take Timestamp Information         (TIMESTAMP) = OFF
Unit of Work Information                 (UOW) = OFF



Labels: