Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to ensure Weblogic is running or not with Linux command

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have started Weblogic , using startweblogic.sh , running under LINUX using Putty tool , it has started and working fine .

Later after sometime , how can i ensure that weblogic is running or not ??

Please let me know if there is any command for this ??

(I dont want to open the console through browser )


Thanks in advance .
 
Matt Cartwright
Ranch Hand
Posts: 152
Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using WebLogic tools, you basically have two options from the command line:

  • weblogic.Admin class
  • WebLogic Scripting Tool (WLST)


  • You can find the weblogic.Admin command line reference here.

    Hope that helps
    Matt
     
    Renjan Thomas
    Ranch Hand
    Posts: 49
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Also you can use a grep command to check that the process is running as it is a java process

    something like -> ps -ef | grep java or ps -ef | grep startweblogic
     
    Matt Cartwright
    Ranch Hand
    Posts: 152
    Linux VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Renjan Thomas wrote:
    Also you can use a grep command to check that the process is running as it is a java process

    something like -> ps -ef | grep java or ps -ef | grep startweblogic


    yep, sort of

    this one only works if WebLogic is not started in the background from your
    startWeblogic.sh script.

    What if you have multiple WebLogic instances running on that box?
    Also, you should filter out the grep.


    where <UserName> is the user ID that started the server and
    <ServerName> is the name of your WebLogic Server instance.

    This will verify the JVM hosting WebLogic is running, but the
    server might be suspended, which is NOT running, NOT accepting
    requests.


    If you have ti KILL the Java process, you could pipe the above command
    line into awk, print the 4th parameter and use it w/ kill



    All this only works on UNIX systems where you have access to the process' environment.

    M
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic