PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Ginekolog Poznań
- Hiszpański Poznań
- Biuro rachunkowe Opole
- Nadruki Poznań
- Herbata biała
- Biuro Rachunkowe Poznań
- Posadzki Granitowe
- Meble Sklepowe
Czytnik RSS
» HP jest gotów zapłacić za 3PAR 2,35 mld USDGdy wydawało się, że bitwa o przejęcie firmy 3PAR została zakończona, po tym gdy Dell któryś raz z rzędu podniósł poprzeczkę i zgodził się zapłacić za 3PAR prawie 2,3 mld USD, Hewlett-Packard jeszcze raz wszedł do gry i zaproponował więcej: 2,35 mld USD.
» Microsoft Office Live Workspace dla Polaków
Firma Microsoft poinformowała o udostępnieniu wersji beta usługi Microsoft Office Live Workspace w języku polskim oraz w czterech innych: holenderskim, włoskim, koreańskim i tradycyjnym chińskim, zwiększając tym samym do 10 łączną liczbę języków, w których ta usługa jest dostępna. Wersja beta usługi Office Live Workspace stanowi bezpłatne, internetowe rozszerzenie pakietu Microsoft Office, które zapewnia użytkownikom dostęp do ich dokumentów online oraz pozwala udostępniać swoje prace innym. Wersja beta usługi Office Live Workspace była jedną z pierwszych pozycji w nowej ofercie usług online stanowiących urzeczywistnienie koncepcji połączenia oprogramowania z usługami zaprezentowanej ubiegłej jesieni przez firmę Microsoft.
» Arc Touch - rewolucyjna myszka Microsoftu oficjalnie zapowiedziana
Po miesiącach spekulacji na temat nowej myszki Microsoftu firma z Redmond wreszcie zabrała głos w sprawie i oficjalnie zaprezentowała swój nowy produkt - Arc Touch. Urządzenie posiada kilka bardzo interesujących innowacji, które mają szansę stać się nowym standardem.
» PSI 2.0 sprawdzi, czy masz aktualne aplikacje
Specjalizująca się w bezpieczeństwie informatycznym firma Secunia udostępniła nową wersję znakomitego narzędzia, służącego do sprawdzania, czy zainstalowane w systemie aplikacje są odpowiednio zaktualizowane. PSI (Personal Software Inspector) 2.0 jest dostępny ramach otwartego programu beta.
chapter 24. monitoring database activity
- table of contents
- 24.1. standard unix tools
- 24.2. the statistics collector
- 24.2.1. statistics collection configuration
- 24.2.2. viewing collected statistics
- 24.3. viewing locks
a database administrator frequently wonders, "what is the system doing right now?" this chapter discusses how to find that out.
several tools are available for monitoring database activity and analyzing performance. most of this chapter is devoted to describing postgresql's statistics collector, but one should not neglect regular unix monitoring programs such as ps, top, iostat, and vmstat. also, once one has identified a poorly-performing query, further investigation may be needed using postgresql's explain command. section 13.1 discusses explain and other methods for understanding the behavior of an individual query.
24.1. standard unix tools
on most platforms, postgresql modifies its command title as reported by ps, so that individual server processes can readily be identified. a sample display is
$ ps auxww | grep ^postgres postgres 960 0.0 1.1 6104 1480 pts/1 sn 13:17 0:00 postmaster -i postgres 963 0.0 1.1 7084 1472 pts/1 sn 13:17 0:00 postgres: stats buffer process postgres 965 0.0 1.1 6152 1512 pts/1 sn 13:17 0:00 postgres: stats collector process postgres 998 0.0 2.3 6532 2992 pts/1 sn 13:18 0:00 postgres: tgl runbug 127.0.0.1 idle postgres 1003 0.0 2.4 6532 3128 pts/1 sn 13:19 0:00 postgres: tgl regression [local] select waiting postgres 1016 0.1 2.4 6532 3080 pts/1 sn 13:19 0:00 postgres: tgl regression [local] idle in transaction
(the appropriate invocation of ps varies across different platforms, as do the details of what is shown. this example is from a recent linux system.) the first process listed here is the postmaster, the master server process. the command arguments shown for it are the same ones given when it was launched. the next two processes implement the statistics collector, which will be described in detail in the next section. (these will not be present if you have set the system not to start the statistics collector.) each of the remaining processes is a server process handling one client connection. each such process sets its command line display in the form
postgres: user database host activity
the user, database, and connection source host items remain the same for the life of the client connection, but the activity indicator changes. the activity may be idle (i.e., waiting for a client command), idle in transaction (waiting for client inside a begin block), or a command type name such as select. also, waiting is attached if the server process is presently waiting on a lock held by another server process. in the above example we can infer that process 1003 is waiting for process 1016 to complete its transaction and thereby release some lock or other.
tip: solaris requires special handling. you must use /usr/ucb/ps, rather than /bin/ps. you also must use two w flags, not just one. in addition, your original invocation of the postmaster command must have a shorter ps status display than that provided by each server process. if you fail to do all three things, the ps output for each server process will be the original postmaster command line.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron