Обсуждение: [GENERAL/OFF-TOPIC]: identifying runaway DB clients

Поиск
Список
Период
Сортировка

[GENERAL/OFF-TOPIC]: identifying runaway DB clients

От
Ed Loehr
Дата:
This is slightly off-topic, but I have some unidentified HPUX processes
running on an HPUX box with a PG server and hammering the database.  I'm
trying to identify them.  In Linux, I'd map from the connecting port to the
client process via fuser -n tcp, but HPUX fuser doesn't appear to support tcp
port mapping.  Does anyone know how to map an HPUX port to the proc pid?


Re: [GENERAL/OFF-TOPIC]: identifying runaway DB clients

От
Tom Lane
Дата:
Ed Loehr <pggeneral@bluepolka.net> writes:
> This is slightly off-topic, but I have some unidentified HPUX
> processes running on an HPUX box with a PG server and hammering the
> database.  I'm trying to identify them.  In Linux, I'd map from the
> connecting port to the client process via fuser -n tcp, but HPUX fuser
> doesn't appear to support tcp port mapping.  Does anyone know how to
> map an HPUX port to the proc pid?

I use lsof (not standard equipment on HPUX, but readily available).

            regards, tom lane