You quickly search on the Internet and quickly land to documentation such as here: http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/domainconfig/ChangeRuntimeModes.html . The doc says you just need to go to the WebLogic Console to do it. That is easy, right?
But then the next link or so you may found a blog like http://blogs.oracle.com/learnwithpavan/entry/run_weblogic_in_production_mod , which says you need to set some Java parameter to make that happen.
So, which one is right?
Well, the truth of the matter is, to completely change a server from Development to Production Mode, two things need to happen:
- From Console -> Domain -> Production mode, check the Production Mode check box. This change will go into config.xml
- In setDomainEnv.sh, set PRODUCTION_MODE=true.
For differences between Development mode and Production mode, please refer to http://docs.oracle.com/cd/E21764_01/web.1111/e13814/wls_tuning.htm#i1111053 for details.