Sunday 13 April 2014

Stopping weblogic server

++++++++++++++++++++++++++++++++++++
Adminserver/Weblogic server is not getting down
++++++++++++++++++++++++++++++++++
[fusion@wlsadmin bin]$ pwd
/u02/Middleware_console/user_projects/domains/base_domain/bin
[fusion@wlsadmin bin]$ ./stopWebLogic.sh
Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Please enter your username :weblogic
Please enter your password :
Connecting to t3://wlsadmin.user.com:9001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

Shutting down the server AdminServer with force=false while connected to AdminServer ...
WLST lost connection to the WebLogic Server that you were
connected to, this may happen if the server was shutdown or
partitioned. You will have to re-connect to the server once the
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server:


Exiting WebLogic Scripting Tool.

Done
Stopping Derby Server...
[fusion@wlsadmin bin]$ clear


-----------------
Still running
----------
[fusion@wlsadmin bin]$ pwd
/u02/Middleware_console/user_projects/domains/base_domain/bin
[fusion@wlsadmin bin]$
[fusion@wlsadmin bin]$ ps -fu fusion|grep -i java|grep -i adminserver
fusion    6141  6092 48 21:28 pts/2    00:00:23 /u02/jdk1.7.0_45/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/u02/Middleware_console/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u02/Middleware_console/wlserver_10.3 -Dwls.home=/u02/Middleware_console/wlserver_10.3/server -Dweblogic.home=/u02/Middleware_console/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u02/Middleware_console/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
[fusion@wlsadmin bin]$

------------
Note
----------
Even after stopping the Admin server/weblogic server it is not getting down 
We can kill the java process using below command but which is not suggestable
because it can corrupt configuration file.

[fusion@wlsadmin bin]$ ps -fu fusion|grep -i java|grep -i adminserver
fusion    6141  6092 48 21:28 pts/2    00:00:23 /u02/jdk1.7.0_45/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/u02/Middleware_console/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u02/Middleware_console/wlserver_10.3 -Dwls.home=/u02/Middleware_console/wlserver_10.3/server -Dweblogic.home=/u02/Middleware_console/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u02/Middleware_console/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
[fusion@wlsadmin bin]$ kill -9 6141
[fusion@wlsadmin bin]$ ps -fu fusion|grep -i java|grep -i adminserver
[fusion@wlsadmin bin]$

No comments:

Post a Comment