~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/monitoring.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Monitoring Database Activity</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
9
REV="MADE"
 
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
 
11
REL="HOME"
 
12
TITLE="PostgreSQL 9.1beta1 Documentation"
 
13
HREF="index.html"><LINK
 
14
REL="UP"
 
15
TITLE="Server Administration"
 
16
HREF="admin.html"><LINK
 
17
REL="PREVIOUS"
 
18
TITLE="Standby Server Settings"
 
19
HREF="standby-settings.html"><LINK
 
20
REL="NEXT"
 
21
TITLE="Standard Unix Tools"
 
22
HREF="monitoring-ps.html"><LINK
 
23
REL="STYLESHEET"
 
24
TYPE="text/css"
 
25
HREF="stylesheet.css"><META
 
26
HTTP-EQUIV="Content-Type"
 
27
CONTENT="text/html; charset=ISO-8859-1"><META
 
28
NAME="creation"
 
29
CONTENT="2011-04-27T21:20:33"></HEAD
 
30
><BODY
 
31
CLASS="CHAPTER"
 
32
><DIV
 
33
CLASS="NAVHEADER"
 
34
><TABLE
 
35
SUMMARY="Header navigation table"
 
36
WIDTH="100%"
 
37
BORDER="0"
 
38
CELLPADDING="0"
 
39
CELLSPACING="0"
 
40
><TR
 
41
><TH
 
42
COLSPAN="5"
 
43
ALIGN="center"
 
44
VALIGN="bottom"
 
45
><A
 
46
HREF="index.html"
 
47
>PostgreSQL 9.1beta1 Documentation</A
 
48
></TH
 
49
></TR
 
50
><TR
 
51
><TD
 
52
WIDTH="10%"
 
53
ALIGN="left"
 
54
VALIGN="top"
 
55
><A
 
56
TITLE="Standby Server Settings"
 
57
HREF="standby-settings.html"
 
58
ACCESSKEY="P"
 
59
>Prev</A
 
60
></TD
 
61
><TD
 
62
WIDTH="10%"
 
63
ALIGN="left"
 
64
VALIGN="top"
 
65
><A
 
66
TITLE="Recovery Configuration"
 
67
HREF="recovery-config.html"
 
68
>Fast Backward</A
 
69
></TD
 
70
><TD
 
71
WIDTH="60%"
 
72
ALIGN="center"
 
73
VALIGN="bottom"
 
74
></TD
 
75
><TD
 
76
WIDTH="10%"
 
77
ALIGN="right"
 
78
VALIGN="top"
 
79
><A
 
80
TITLE="Monitoring Disk Usage"
 
81
HREF="diskusage.html"
 
82
>Fast Forward</A
 
83
></TD
 
84
><TD
 
85
WIDTH="10%"
 
86
ALIGN="right"
 
87
VALIGN="top"
 
88
><A
 
89
TITLE="Standard Unix Tools"
 
90
HREF="monitoring-ps.html"
 
91
ACCESSKEY="N"
 
92
>Next</A
 
93
></TD
 
94
></TR
 
95
></TABLE
 
96
><HR
 
97
ALIGN="LEFT"
 
98
WIDTH="100%"></DIV
 
99
><DIV
 
100
CLASS="CHAPTER"
 
101
><H1
 
102
><A
 
103
NAME="MONITORING"
 
104
></A
 
105
>Chapter 27. Monitoring Database Activity</H1
 
106
><DIV
 
107
CLASS="TOC"
 
108
><DL
 
109
><DT
 
110
><B
 
111
>Table of Contents</B
 
112
></DT
 
113
><DT
 
114
>27.1. <A
 
115
HREF="monitoring-ps.html"
 
116
>Standard Unix Tools</A
 
117
></DT
 
118
><DT
 
119
>27.2. <A
 
120
HREF="monitoring-stats.html"
 
121
>The Statistics Collector</A
 
122
></DT
 
123
><DD
 
124
><DL
 
125
><DT
 
126
>27.2.1. <A
 
127
HREF="monitoring-stats.html#MONITORING-STATS-SETUP"
 
128
>Statistics Collection Configuration</A
 
129
></DT
 
130
><DT
 
131
>27.2.2. <A
 
132
HREF="monitoring-stats.html#MONITORING-STATS-VIEWS"
 
133
>Viewing Collected Statistics</A
 
134
></DT
 
135
></DL
 
136
></DD
 
137
><DT
 
138
>27.3. <A
 
139
HREF="monitoring-locks.html"
 
140
>Viewing Locks</A
 
141
></DT
 
142
><DT
 
143
>27.4. <A
 
144
HREF="dynamic-trace.html"
 
145
>Dynamic Tracing</A
 
146
></DT
 
147
><DD
 
148
><DL
 
149
><DT
 
150
>27.4.1. <A
 
151
HREF="dynamic-trace.html#COMPILING-FOR-TRACE"
 
152
>Compiling for Dynamic Tracing</A
 
153
></DT
 
154
><DT
 
155
>27.4.2. <A
 
156
HREF="dynamic-trace.html#TRACE-POINTS"
 
157
>Built-in Probes</A
 
158
></DT
 
159
><DT
 
160
>27.4.3. <A
 
161
HREF="dynamic-trace.html#USING-TRACE-POINTS"
 
162
>Using Probes</A
 
163
></DT
 
164
><DT
 
165
>27.4.4. <A
 
166
HREF="dynamic-trace.html#DEFINING-TRACE-POINTS"
 
167
>Defining New Probes</A
 
168
></DT
 
169
></DL
 
170
></DD
 
171
></DL
 
172
></DIV
 
173
><P
 
174
>  A database administrator frequently wonders, <SPAN
 
175
CLASS="QUOTE"
 
176
>"What is the system
 
177
  doing right now?"</SPAN
 
178
>
 
179
  This chapter discusses how to find that out.
 
180
 </P
 
181
><P
 
182
>   Several tools are available for monitoring database activity and
 
183
   analyzing performance.  Most of this chapter is devoted to describing
 
184
   <SPAN
 
185
CLASS="PRODUCTNAME"
 
186
>PostgreSQL</SPAN
 
187
>'s statistics collector,
 
188
   but one should not neglect regular Unix monitoring programs such as
 
189
   <TT
 
190
CLASS="COMMAND"
 
191
>ps</TT
 
192
>, <TT
 
193
CLASS="COMMAND"
 
194
>top</TT
 
195
>, <TT
 
196
CLASS="COMMAND"
 
197
>iostat</TT
 
198
>, and <TT
 
199
CLASS="COMMAND"
 
200
>vmstat</TT
 
201
>.
 
202
   Also, once one has identified a
 
203
   poorly-performing query, further investigation might be needed using
 
204
   <SPAN
 
205
CLASS="PRODUCTNAME"
 
206
>PostgreSQL</SPAN
 
207
>'s <A
 
208
HREF="sql-explain.html"
 
209
>EXPLAIN</A
 
210
> command.
 
211
   <A
 
212
HREF="using-explain.html"
 
213
>Section 14.1</A
 
214
> discusses <TT
 
215
CLASS="COMMAND"
 
216
>EXPLAIN</TT
 
217
>
 
218
   and other methods for understanding the behavior of an individual
 
219
   query.
 
220
  </P
 
221
></DIV
 
222
><DIV
 
223
CLASS="NAVFOOTER"
 
224
><HR
 
225
ALIGN="LEFT"
 
226
WIDTH="100%"><TABLE
 
227
SUMMARY="Footer navigation table"
 
228
WIDTH="100%"
 
229
BORDER="0"
 
230
CELLPADDING="0"
 
231
CELLSPACING="0"
 
232
><TR
 
233
><TD
 
234
WIDTH="33%"
 
235
ALIGN="left"
 
236
VALIGN="top"
 
237
><A
 
238
HREF="standby-settings.html"
 
239
ACCESSKEY="P"
 
240
>Prev</A
 
241
></TD
 
242
><TD
 
243
WIDTH="34%"
 
244
ALIGN="center"
 
245
VALIGN="top"
 
246
><A
 
247
HREF="index.html"
 
248
ACCESSKEY="H"
 
249
>Home</A
 
250
></TD
 
251
><TD
 
252
WIDTH="33%"
 
253
ALIGN="right"
 
254
VALIGN="top"
 
255
><A
 
256
HREF="monitoring-ps.html"
 
257
ACCESSKEY="N"
 
258
>Next</A
 
259
></TD
 
260
></TR
 
261
><TR
 
262
><TD
 
263
WIDTH="33%"
 
264
ALIGN="left"
 
265
VALIGN="top"
 
266
>Standby Server Settings</TD
 
267
><TD
 
268
WIDTH="34%"
 
269
ALIGN="center"
 
270
VALIGN="top"
 
271
><A
 
272
HREF="admin.html"
 
273
ACCESSKEY="U"
 
274
>Up</A
 
275
></TD
 
276
><TD
 
277
WIDTH="33%"
 
278
ALIGN="right"
 
279
VALIGN="top"
 
280
>Standard Unix Tools</TD
 
281
></TR
 
282
></TABLE
 
283
></DIV
 
284
></BODY
 
285
></HTML
 
286
>
 
 
b'\\ No newline at end of file'