{"id":144,"date":"2008-05-06T17:34:50","date_gmt":"2008-05-06T22:34:50","guid":{"rendered":"http:\/\/www.dannorris.com\/?p=144"},"modified":"2019-04-01T13:58:14","modified_gmt":"2019-04-01T13:58:14","slug":"configuring-weblogic-for-restart-after-reboot-on-windows","status":"publish","type":"post","link":"https:\/\/www.dannorris.com\/blog\/2008\/05\/06\/configuring-weblogic-for-restart-after-reboot-on-windows\/","title":{"rendered":"Configuring Weblogic For Restart After Reboot on Windows"},"content":{"rendered":"<p>\t\t\t\tI have been working on a customer project involving new installations of Oracle Database (a two-node failover cluster using Oracle Clusterware&#8211;good stuff) and two load-balanced <span style=\"text-decoration: line-through;\">BEA<\/span> Oracle Weblogic servers for the middle tier. The middle tier environment runs on Windows Server 2003 Enterprise x64 Edition and is managed by an outsourced hosting facility.<\/p>\n<p>I had worked with Weblogic before this project, but not on Windows and I was a little surprised by the difficulty finding relatively simple information on BEA&#8217;s support site as well as in their documentation.<\/p>\n<p>&lt;rant&gt;I have to say that I&#8217;m pleased that Oracle closed this deal so that (I never thought I&#8217;d say this) they can make BEA&#8217;s support as good as Oracle Support and Metalink. I know it will take quite a while&#8211;probably 6-12 months&#8211;but it absolutely needs to happen. It&#8217;s little reminders like these that make me glad I work with Oracle (or the companies they ultimately buy) and not other software. I&#8217;m as guilty as anyone of not knowing how good we Oracle professionals have it when it comes to good, well-organized documentation, a solid support site with a killer knowledge repository (with an awesome search), and a warm, active community of users (too many &#8220;thanks to&#8221; to mention at this point).&lt;\/rant&gt;<\/p>\n<p>Back to the reason you&#8217;re reading: this post will summarize what turns out to be the relatively easy changes required to ensure that your Windows-based Weblogic managed servers will start up at boot time.<\/p>\n<p>When creating a new Weblogic Domain on Windows, you&#8217;ll sometimes have the opportunity to choose the Sun JDK or BEA JRockit JDK to use for your domain&#8217;s Java engine. Be conscious of which one you choose (for WL 10.0, it&#8217;s on the screen where you choose a Development or Production configuration). I chose BEA JRockit for my environment&#8217;s servers because on 64-bit Windows, it&#8217;s the only one supported. For 32-bit Windows, you have the option to use Sun&#8217;s JDK, but then we&#8217;d have a mix and more potential for new bugs to pop up due to the JDK differences. There&#8217;s a small change in this process when using Sun&#8217;s JDK versus BEA JRockit and I&#8217;ll note that as well.<\/p>\n<p>To ensure that your Windows-based BEA Weblogic Managed Server(s) start at boot time, follow these steps:<\/p>\n<ol>\n<li>After creating the new domain and the new Managed Server (Managed Server is a Weblogic term to identify the differences between an Admin Server and the application server where applications should be deployed), modify the Managed Server settings.<\/li>\n<li>Lock &amp; Edit the configuration and proceed to Environment &gt; Servers &gt; (name of your Managed Server) &gt; Configuration tab &gt; Server Start subtab. Then scroll down to the Arguments box and enter <code>-Xnohup<\/code> in the box. If you&#8217;re using Sun&#8217;s JDK instead of BEA JRockit, enter <code>-Xrs<\/code> in that box instead. This is documented at http:\/\/edocs.bea.com\/wls\/docs100\/server_start\/nodemgr.html#wp1101004.<\/li>\n<li>Once that&#8217;s in place, you can Activate Changes.<\/li>\n<li>The admin server says that no restarts are needed, but I would restart it just to make sure. I&#8217;m not sure how the admin server can change a JDK flag without restarting the application server. Maybe I&#8217;m just not knowledgeable enough to know how it works, but I think it&#8217;s just not smart enough to know that you *do* have to restart.<\/li>\n<li>The last change was the one that I missed initially. Briefly, the reason I missed it was that it has to do with crash recovery and in my opinion, a server reboot shouldn&#8217;t cause an application server to crash, so I ignored this part of the documentation. One has to ask why you wouldn&#8217;t want crash recovery enabled by default anyway, but that&#8217;s probably for another rant some other day. Anyway, the final change is to modify a property for the node manager process. Edit <code>BEA_HOME\\wlserver_10.0\\common\\nodemanager\\nodemanager.properties<\/code> and set <code>CrashRecoveryEnabled=true<\/code> (it is in the file set to false by default). Save and exit the editor.<\/li>\n<li>This is Windows, so go to the Services control panel and restart the BEA Products NodeManager service to put the change into effect.<\/li>\n<li>Ensure that your managed server is up and running. Then, test the changes you&#8217;ve made by rebooting the node and see that your managed server restarts after the reboot is complete (and you&#8217;ve given time for node manager to start the managed server).<\/li>\n<\/ol>\n<p>If you have problems, check the node manager logfile (<code>BEA_HOME\\wlserver_10.0\\common\\nodemanager\\nodemanager.log<\/code>) as it will be most useful in determining what happened. If you don&#8217;t see any hint that it even tried to restart the server after the reboot, then it&#8217;s probably because the crash recovery setting is not enabled&#8211;make sure you changed the right thing in the right file.<\/p>\n<p>I didn&#8217;t test to see if this process will restart the admin server as well, but I think it probably will or at least should. With a production configuration, you have to enter the username\/password for the admin server when starting it, so you may have to store that in the admin server configuration, but that should be a relatively easy fix. In my case, we didn&#8217;t want our admin server running all the time and only start it when needed, so having it start after a reboot wasn&#8217;t necessary or desired.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working on a customer project involving new installations of Oracle Database (a two-node failover cluster using Oracle Clusterware&#8211;good stuff) and two load-balanced BEA Oracle Weblogic servers for the middle tier. The middle tier environment runs on Windows Server 2003 Enterprise x64 Edition and is managed by an outsourced hosting facility. I had &hellip; <a href=\"https:\/\/www.dannorris.com\/blog\/2008\/05\/06\/configuring-weblogic-for-restart-after-reboot-on-windows\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Configuring Weblogic For Restart After Reboot on Windows&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,18,22,28],"tags":[45,48,182,231,232,233],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-app-server","category-rants","category-technical","category-weblogic","tag-application-server","tag-bea","tag-restart","tag-weblogic","tag-weblogic-10","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":1,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":546,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions\/546"}],"wp:attachment":[{"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannorris.com\/blog\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}