Solved

restart weblogic server automatically after crash without node manager

Posted on 2011-02-26
5
1,251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
remove spaces from a file name linux 3 81
Glassfish admin console not working 1 89
SSRS - Powershell 7 81
wild fly 8 startup error 2 83
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 …
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 …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 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