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 Weblogic Server shutting down automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic Server shutting down automatically" Watch "Weblogic Server shutting down automatically" New topic
Author

Weblogic Server shutting down automatically

Kavitha Kamalanathan
Greenhorn

Joined: Apr 21, 2006
Posts: 10
Weblogic is shutting down automatically very often. In the error log "+ set +x" is getting printed. There is no message in the log , stating weblogic is stopped .. but when we look at the process running in unix machine using ps command java process is not running. this is happening very very often.. 4 times or 5 times in a day when the users are accessing ..

Any inputs on the same y this is happening..

this is quite urgent ....
Sachin Dimble
Ranch Hand

Joined: Dec 07, 2005
Posts: 100
Hi Kavitha,
Check out your web-application which you have hosted on weblogic,
check out on accessing which component it gets shut down!
From your explination it seems that somewhere your code is killing jvm(e.g System.exit(0)) instance of weblogic.

-Saaaaaaaaaachin!!!
Trimoorthy Kotte
Greenhorn

Joined: Mar 31, 2006
Posts: 9
Kavitha,

In addition to what Sachin has pointed out, there is one more common mistake in the unix weblogic startup script is thatdevelopers tend to run the script in the background and the server will be running only till you/developer keeps the unix/telnet session active. Once the sessio is inactive and timesout the weblogic server also goes down.

This is due to the java process is atarted in the same shell as the user shell.
Trimoorthy Kotte
Greenhorn

Joined: Mar 31, 2006
Posts: 9
Small correction : Generally the startup scripts are not configured to run in background and script runs in same/user (also called current) shell by default
Boobalan Jegathesan
Greenhorn

Joined: Jan 08, 2007
Posts: 17
Hi Kavitha,

Checkout the default timeout settings or standby rule for your WLS


Thanks<br />Boobalan.(SCJP1.4)
Nandu Jawale
Greenhorn

Joined: Feb 04, 2002
Posts: 22
If you are working in a Bourne Shell, then bourne shell passes interrupts (like Ctrl-C, terminal closed) to the child processes.

Try putting '-Xrs' option in your shell script that starts the Weblogic Server.
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
Check your wls and jrockit version, I've experienced similar problems when buggy code runs, and crashes the JVM. The newer JRockit is able to handle it gracefully, and just throw an exception.
[ February 08, 2007: Message edited by: Chu Tan ]
 
 
subject: Weblogic Server shutting down automatically