Solved

restart weblogic server automatically after crash without node manager

Posted on 2011-02-26
5
1,232 Views
Last Modified: 2012-06-27
Hi Folks,

I'm seeking suggestions on how  we can restart a weblogic or any application server automatically after it crashed for some reason.We dont want to use node manager or any such utilities.
Is it possible to automate restart using shell script?
Basically,we dont want to rely on cronjob to check the running weblogic server every after few mins and if its down then restart it.

Is there any way to achieve this?
Basically we want to minimize server down time and exclude manual interference.

Please suggest.
Thank you,
Joe
0
Comment
Question by:jayatallen
  • 2
  • 2
5 Comments
 
LVL 20

Accepted Solution

by:
netcmh earned 125 total points
ID: 35009303
I think monitoring the service, and restarting it when it goes down is the only correct way of doing this to ensure least amount of downtime.

Something along these lines: http://bash.cyberciti.biz/web-server/restart-apache2-httpd-shell-script/
0
 
LVL 8

Expert Comment

by:allen-davis
ID: 35033364
For WebLogic, I would actually depend on the nodemanager to help do the restarts.  WebLogic's nodemanager is pretty solid unless you already have a reason not to trust it.  It will poll the managed servers running on the physical server and restart them for you if they crash.  Even if you do not want to wait on the polling and would instead have your own watcher daemon running, you should still consider using WLST directly to the nodemanager to restart the managed servers in server independence mode.
0
 
LVL 3

Expert Comment

by:saranyannarayanan
ID: 35047346
Decide on the monitoring mechanism first. If this is production you can check site scope monitoring to send an alert, and restart the weblogic instance.

You can also implement a shell script to check status using python script for checking the state of the Weblogic server and restart if it is down
0
 
LVL 3

Assisted Solution

by:saranyannarayanan
saranyannarayanan earned 125 total points
ID: 35047352
use ps -ef | grep java | grep "servername" to check if process of Weblogic is up
0
 
LVL 20

Expert Comment

by:netcmh
ID: 35188820
Thanks for the grade. Good luck.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 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

16 Experts available now in Live!

Get 1:1 Help Now