Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'list application':how to know which application is under name 'java'?

Status
Not open for further replies.

grofaty

IS-IT--Management
Jan 16, 2003
370
SI
Hi,

My java application is running under application server (e.g. IBM WebSphere Application Server) and application connects to IBM DB2 database.

On DB2 database I can see 'application ID' and the name of application. Java applications running from windows environment I see application name 'java.exe' and java applications running from unix environment I see application name 'java'. But I don't know which java application is it. Is there any way to find out which application si running under application name 'java'?

Thanks,
Grofaty
 
Hi,
can you please provide the exact command for solving my problem?
Thanks,
Grofat
 
gregsimpson,
thanks for reply. I have seached all the db2pd info and I can't find out the useful info.
This is probably more question about WebSphere than DB2. So how to find out from the data on db2 site which application is run under WebSphere. I can find out the clientPID (process ID). Is there any way to say in WebSphere which process ID is running which java application?
Thanks,
Grofaty
 
grofaty,

you've lost me with the websphere bit. However if you issue

db2pd -db dbname -age

You will get a list containing a clientpid and agent pid and an application handle, amongst other things. The client pid is the as it says the pid at the client, so in my instance I had connections from windows and AIX and could trace the pids on windows and AIX which are runnin the db2 applications on AIX, where my database resides.

Does that help at all

Cheers
greg
 
gregsimpson,
all of the ClientPIDs have the same PID, because at WebSphere I am using connection pooling. So only one process (WebSphere connection polling 'program') is connected to DB2. WebSphere applications are 'connected' to connection polling and connection polling is connected to DB2. So at DB2 site I can see only one ClientPID.

Is there any other solution?

Thanks,
Grofaty
 
You just answered you own question, didn't you? How do you qualify "an application"? What do you want to distunguish?

Maybe you should split-up your WebShere configuration and give each application it's own container/JVM.

It's more of a J2EE issue (would not call it a problem) than a DB2 issue. Did you try thoose forums?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top