Solved

How do i know server process id for websphere in linux?

Posted on 2007-12-01
8
3,424 Views
Last Modified: 2013-12-16
i have 2 profiles in websphere;for these 2 profiles i want to know the process id(server.pid) in linux.
0
Comment
Question by:chaitu chaitu
8 Comments
 
LVL 20

Expert Comment

by:nedvis
ID: 20388453
I'm not  a developer nor familiar with Websphere but I came accross this IBM document: which
may help you:

http://tinyurl.com/2utgsc
0
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20388552
From inside of websphere or just from a unix command prompt?  From a command prompt you could "pgrep -l websphere".
0
 

Expert Comment

by:j_steenkamp
ID: 20390919
First of all, please be more specific. Which release of Websphere? I assume 6.0 or 6.1 , because you mention profiles. Which version? i.e. express or network deployment edition.

A profile itself has no id because the profile isn't an application server. Inside your profile your can have many application servers. Those will have process id's.

ps -auxwww | grep java will do on solaris and aix.

like arrkerr1024 mentioned; inside the ibm administration (web) console you are able to see the process number.

Third option. On the filesystem you will have a pid file in the base log directory of your application server.
0
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20393035
As j_steenkamp mentioned, the pid file on the filesystem is the BEST way to find the pid.

If you just "pgrep -l java" you're not only going to get websphere, but you're also going to get any other java programs - maybe you also run tomcat, maybe some monitoring program, etc...  don't do it.  Even if you aren't now, someone may start one in a year and confuse the whole process.  Not only that, but you'd then have to find the parent pid... should be the lowest ID... but the pid file should be your best bet.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 20

Author Comment

by:chaitu chaitu
ID: 20455194
i executed this command pgrep -l websphere inside websphere but nothing is coming;
0
 
LVL 5

Expert Comment

by:Waswiz
ID: 20517176
Go to the UNIX command prompt and execute ps -ef  and see what Id  the WebSphere processes are running.
0
 
LVL 14

Accepted Solution

by:
arrkerr1024 earned 500 total points
ID: 20519788
pgrep -l websphere would like processes that are named websphere, but the websphere process is actually a java application, so you have to "pgrep -l java", or "pgrep -fl websphere" - the -f searches the whole command line and not just the process name.
0
 

Expert Comment

by:fightinghippo
ID: 24341940
ps -ef | grep java

server is represented by java processes. or another way is to go under the install directory/profiles/profilename/logs/servername and then open the server.pid file
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now