Wednesday, April 22, 2015

The WebLogic Server 12c .STATE file

One of the managed servers (wls_soa1) on our Oracle WebLogic Server 12c installation was showing a state of STARTING, but there was no process running on the Linux server:

oracle@soahost1:/home/oracle> ps -ef | grep wls_soa1
oracle@soahost1:/home/oracle> 

 

Under the $DOMAIN_HOME/servers/wls_soa1/data/nodemanager folder, you will find multiple files:
oracle@soahost1:/u01/share/oracle/middleware/config/domains/soa_domain/servers/wls_soa1/data/nodemanager> ls -l
total 40 
-rw-r----- 1 oracle oinstall 174 Apr 14 22:14 boot.properties 
-rw-r----- 1 oracle oinstall 427 Apr 14 22:14 startup.properties 
-rw-r--r-- 1 oracle oinstall   6 Apr 22 14:41 wls_soa1.pid 
-rw-r----- 1 oracle oinstall  13 Apr 22 14:43 wls_soa1.state 
-rw-r----- 1 oracle oinstall  31 Mar 29 12:07 wls_soa1.url

The content of the .state file will show STARTING, which is identical to what you see on the console:
oracle@soahost1:/u01/share/oracle/middleware/config/domains/soa_domain/servers/wls_soa1/data/nodemanager> cat wls_soa1.state 
STARTING:N:N

Delete this .state file:
oracle@soahost1:/u01/share/oracle/middleware/config/domains/soa_domain/servers/wls_soa1/data/nodemanager> rm wls_soa1.state

When you refresh the page on the WebLogic Admin Console, it will default to SHUTDOWN now:

Only after the console refresh will a new .state file be created with the SHUTDOWN state:
oracle@soahost1:/u01/share/oracle/middleware/config/domains/soa_domain/servers/wls_soa1/data/nodemanager> cat wls_soa1.state 
SHUTDOWN:N:N



Applicable Versions:
  • Oracle WebLogic Server 12c (12.1.3) 

 

No comments: