IBM 000-8697 Manual do Utilizador Página 125

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 702
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 124
System Architecture 2-31
Orphaned Database Server Processes
The application development tool process and the database server process
communicate with each other through unnamed UNIX pipes. Each process
reads from one pipe and writes to the other. This interaction is illustrated in
Figure 2-3.
Orphaned Database Server Processes
Adatabaseserverprocessisconsideredorphanedwhentheapplicationdevel-
opment tool process (the parent process) dies prematurely and cannot
terminate its associated database server process (the child process). The
database server process continues working, orphaned, and can create bottle-
necks in the system. For example, an orphaned server process might hold
shared-memory resources without properly releasing them, forcing legit-
imateserverprocessestowaitindefinitely.Youmightbeunableto gracefully
take OnLine to quiescent mode if an orphaned process remains attached to
shared memory. The lingering process must be killed before OnLine can be
brought to offline mode.
The database server process eventually discovers that its parent process has
died whenthe server process beginsreading from orwriting to a pipe. If the
server process is reading from a pipe, it receives a -1 or 0 from the blocked
read.If theserverprocessiswritingto apipe,itreceivesa SIGPIPE signal.The
SIGPIPE signal indicates that the server is trying to write to a pipe whose
opposite end has been closed. At this point, theserver process automatically
performs cleanup and terminates gracefully.
You might be tempted to kill a server process if you suspect the process is
orphaned. If the database server process is doing work, you might find
yourselfwaiting for the processtoreturntothepipe to reador to write. Ifthe
server process is in a wait state, waiting for a latch or a lock to be released,
this delay could be lengthy.
Figure 2-3
The application
process and the
database server
process
communicate
through unnamed
UNIX pipes.
Read
Application
process
Database
server
process
Write
Read
Write
Vista de página 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 701 702

Comentários a estes Manuais

Sem comentários