Re: Number of pid in output from onstat -g ses



Jonathan Leffler wrote:
Peternt wrote:
What do it mean pid = -1 in output from onstat -g ses ?

I have an excess of connections from a server, but we can not
determine the origin (the application that opens the connections)
Furthermore, the tty column shows "-", for example:

session #RSAM total used
id user tty pid hostname threads memory
memory
4789782 netcli - -1 srv005 1 212992 65192


If the client is not local (on the same machine as IDS), the PID is -1.
If the client is local, then the PID tells the client process ID.


I'm sorry Jonathan, but that is not correct.
the PID is always the client PID independently if it's local or not.

-1 as the other reply explains, means that it's a java application connecting through JDBC. Unfortunately it's not possible in Java to find the current PID (without calling native interface calls). So the JDBC clients can't collect the PID... This is a real annoyance for anybody that needs to dig into JDBC connection problems... It's usual for me to have the need to inform someone that their application is causing problems, and usually they ask me "which process? Which application" and in these situation (JDBC) I can only tell the client hostname... It could help if we were able to tell the client tcp port for example (did I see plans for this?). That could be used to find the attached process.

Regards.
.



Relevant Pages

  • Re: Strange Client Behavior: Port 8002 Looking for Other Ports
    ... connections and the PID of each process involved in the connections ... the Process with the corresponding PID. ... > periods each day, this client, which is behind Microsoft Proxy ... > connections from source port 8002 to successive ports on our DNS ...
    (microsoft.public.win2000.networking)
  • Re: Strange Client Behavior: Port 8002 Looking for Other Ports
    ... connections and the PID of each process involved in the connections ... the Process with the corresponding PID. ... > periods each day, this client, which is behind Microsoft Proxy ... > connections from source port 8002 to successive ports on our DNS ...
    (microsoft.public.win2000.security)
  • Re: Number of pid in output from onstat -g ses
    ... I have an excess of connections from a server, ... id user tty pid hostname threads memory ... If the client is not local, the PID is -1. ...
    (comp.databases.informix)
  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... I think it will ameliorate the situation if you clean up the client as ... And to come back to my problem: I think with help of the SQL Server admins ... closed connections - but all of these errors are in the version which used ... Every new client opens again 30 connections if I open 30 tables ...
    (microsoft.public.sqlserver.connect)
  • Re: Getting management to move from green screen
    ... You CAN show progress/status with a GUI (at least you can with MY tool ... suggest this is a problem with the technology you have chosen, ... synchronous operations that lock up client connections, ...
    (comp.databases.pick)

Loading