Solved

restart weblogic server automatically after crash without node manager

Posted on 2011-02-26
5
1,227 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

Suggested Solutions

Title # Comments Views Activity
Help with a backup script in Linux 4 75
cron job says it ran, no results 25 114
How do I send an email from raspberry pi at user login? 8 68
Remote install of MSI file 4 41
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

12 Experts available now in Live!

Get 1:1 Help Now