Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Indeed_1 — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi
I want to monitor Transaction Per Second of informix database. and need to write TPS on log file after that monitor that file.
How configure informix to store TPS on log file (without query on sysmaster)?
Thanks
------------------------------
Indeed_1
------------------------------
#Informix
↪ replying to Indeed_1
Art Kagel — source: IBM Community (ConnectedCommunity.org) Informix forum
You could run an "onstat -p" and parse out the time since startup and the number of COMMITs from the output. That will not be accurate if you have reset the server's stats (onstat -z) since the server was last bounced. Also it will be skewed low if your transactions don't run at a constant rate 24x7 and so will be an average over time rather than a peak, mode, or median value which may be what you seek. You won't get better numbers out of sysmaster, although you could get around the onstat reset issue that way (sysshmvals.
sh_pfclrtime).
Better to configure your applications to keep score or add a trigger to a table that's included in every transaction to record the transaction or increment a counter in some other table.
Art
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com
------------------------------
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.