File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How to ensure Weblogic is running or not with Linux command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to ensure Weblogic is running or not with Linux command" Watch "How to ensure Weblogic is running or not with Linux command" New topic
Author

How to ensure Weblogic is running or not with Linux command

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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 .


Save India From Corruption - Anna Hazare.
Matt Cartwright
Ranch Hand

Joined: Aug 25, 2008
Posts: 149

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

    Joined: Jan 09, 2009
    Posts: 49

    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

    Joined: Aug 25, 2008
    Posts: 149

    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
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: How to ensure Weblogic is running or not with Linux command
     
    Similar Threads
    Weblogic in debug mode
    How to have Weblogic running on two IP addresses?
    Profiling - Heap & GC between Linux and Windows
    Identifying Idle or a corrupt process
    how to start weblogic 8.1 in linux startup time!! URGENT!!!