Solved

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

Posted on 2007-12-01
8
3,635 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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
 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

729 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