• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to ensure Weblogic is running or not with Linux command

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 152
VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
     
    Ranch Hand
    Posts: 49
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    VI Editor Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic