2.2 Creating Domain and Servers

The following section details the steps to create domain and servers.
  1. In Unix/Linux machine, once the Oracle WebLogic Server is installed, navigate to the following path - <WL_HOME>/oracle_common/common/bin.
  2. In Unix, run config.sh

    Figure 2-14 Weblogic Domain Creation 1



  3. Select Create a new domain and specify the Domain Location.
  4. Click Next to continue.
    The following window is displayed.

    Figure 2-15 Weblogic Domain Creation 2



  5. Select the option Create Domain Using Product Templates in the list of available templates and select Oracle Enterprise Manager [em]. On selection, the following options are auto-selected:
    • Oracle JRF [oracle_common]
    • Weblogic coherence cluster Extension [wlserver]
  6. Click Next.
    The following window is displayed.

    Figure 2-16 Weblogic Domain Creation 3



  7. Specify the Domain Name in the Application location field. You can click browse to directly select the path (if required). Click Next.
    The following window is displayed.

    Figure 2-17 Weblogic Domain Creation 4



  8. Enter credentials for the following:
    • Name
    • Password
    • Confirm Password
  9. Click Next.
    The following window is displayed.

    Figure 2-18 Weblogic Domain Creation 5



  10. Select the Domain Mode as Production and JDK from Available JDKs. You can also select any other JDK by selecting Other JDK Locationoption. Click Next.
    The following window is displayed.

    Figure 2-19 Weblogic Domain Creation 6



  11. Specify the RCU data and click on Get RCU Configuration.
    The following window is displayed.

    Figure 2-20 Weblogic Domain Creation 7



  12. Click Next.
    The following window is displayed.

    Figure 2-21 Weblogic Domain Creation 8



  13. Click Next.
    The following window is displayed.

    Figure 2-22 Weblogic Domain Creation 9



  14. Select Administration Server and Topology and click Next.
    The following window is displayed.

    Figure 2-23 Weblogic Domain Creation 10



  15. Enter Administration Server Name and Listen Port details. Click Next.
    The following window is displayed.

    Figure 2-24 Weblogic Domain Creation 11



  16. Click Add button to create ManagedServer.
  17. Select the Server Group as JRF-MAN-SVR. Selecting this server group ensures that the Oracle JRF services are targeted to the specific Managed Servers created.

    Note:

    It is recommended to create two managed servers, one each for UI and Web Services.
  18. Click Next.
    The following window is displayed.

    Figure 2-25 Weblogic Domain Creation 12



  19. Configure as required and click Next.
    The following window is displayed.

    Figure 2-26 Weblogic Domain Creation 13



  20. Configure as required and click Next.
    The following window is displayed.

    Figure 2-27 Weblogic Domain Creation 14



  21. Configure as required and click Next.
    The following window is displayed.

    Figure 2-28 Weblogic Domain Creation 15



  22. Click Create.
    The following window is displayed.

    Figure 2-29 Weblogic Domain Creation 16



  23. Click Next.
    The following window is displayed.

    Figure 2-30 Weblogic Domain Creation 17



  24. Click Next.
    The following window is displayed.

    Figure 2-31 Weblogic Domain Creation 18



  25. Click Next.
    The following window is displayed.

    Figure 2-32 Weblogic Domain Creation 19



  26. Click Next.
    The following window is displayed.

    Figure 2-33 Weblogic Domain Creation 20



  27. Once the creation of the Domain is complete, click Finish to close the window.

    Note:

    The default Weblogic installation will be running JVM with 512MB, this has to be increased for the ADF managed server. Say, for a 2 CPU Quad Core with 16 GB it could have the JVM running at 8 GB as:

    USER_MEM_ARGS="-Xms8192m –Xmx8192m -XX:PermSize=2048m -XX:Max­PermSize=2048m"

  28. The "$MW_HOME/user_projects/domains/<mydomain>" directory contains a script that can be used to start the Admin server.
    • $ cd $MW_HOME/user_projects/domains/<mydomain>/bin
    • $ ./startWebLogic.sh

    If the server is required to be running and access to command line needs to be returned use "nohup" and "&"

    $ nohup ./startWebLogic.sh &

  29. To Start Managed Server
    • $ cd $MW_HOME/user_projects/domains/<mydomain>/bin
    • $ ./$MW_HOME/user_projects/domains/<mydomain>/bin/startManagedWebLogic.sh {ManagedServer_name} {AdminServer URL}

    If the server is required to be running and access to command line needs to be returned use "nohup" and "&".

    $ nohup ./$MW_HOME/user_projects/domains/<mydomain>/bin/startManagedWebLogic.sh {ManagedServer_name} {AdminServer URL} &

    The recommended parameters for each Managed Server for application and web services are as follows:

    • For managed server where application is deployed:

      -Xms8g -Xmx8g -XX:NewRatio=3 -XX:HeapDumpPath=/tmp -Dweblogic.threadpool.MinPoolSize=40 -Dweblogic.threadpool.MaxPoolSize=150 -XX:SoftRefLRUPolicyMSPerMB=10 -Dweblogic.diagnostics.debug.DebugLogger.DISABLED=true -Dweblogic.management.discover=false -Dweblogic.llr.table.specjdsl=wl_llr_jent31_1 -Dweblogic.llr.table.specjds2=wl_llr_jent31_2 -Dsun.net.inetaddr.ttl=0 -Dnetworkaddress.cache.ttl=0 -XX:AllocatePrefetchDistance=256 -XX:AllocatePrefetchStyle=1 -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxTenuringThreshold=4 -XX:-UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:CMSTriggerRatio=60 -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+CMSCompactWhenClearAllSoftRefs -XX:PrintCMSStatistics=1 -XX:+PrintClassHistogram -XX:-UseParallelGC -XX:ParallelGCThreads=10 -XX:-TraceClassUnloading -XX:-UseParallelOldGC -XX:+UseCompressedOops -XX:+UseBiasedLocking -XX:+AlwaysPreTouch -XX:-UseAdaptiveSizePolicy -Djbo.load.components.lazily=true -Djbo.ampool.initpoolsize=100 -Djbo.recyclethreshold=200 -Djbo.ampool.minavailablesize=200 -Djbo.ampool.maxavailablesize=200 -Djbo.ampool.timetolive=-1 -Djbo.locking.mode=optimistic -Djbo.doconnectionpooling=true -Djbo.txn.disconnect_level=1 -Djbo.ampool.doampooling=true -Djbo.dofailover=false -Djbo.ampool.maxinactiveage=3600000 -Djbo.ampool.monitorsleepinterval=360000 -Doracle.multitenant.enabled=false -Dweblogic.mdb.message.MinimizeAQSessions=true -Dweblogic.ejb.container.MDBDestinationPollIntervalMillis=6000 -XX:StringTableSize=100003 -XX:ReservedCodeCacheSize=1g -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Doracle.adfm.useSharedTransactionForFrame=false

    • For managed server where web services are deployed:

      -Xms8g -Xmx8g -XX:NewRatio=3 -XX:HeapDumpPath=/tmp -Dweblogic.threadpool.MinPoolSize=40 -Dweblogic.threadpool.MaxPoolSize=150 -XX:SoftRefLRUPolicyMSPerMB=10 -Dweblogic.diagnostics.debug.DebugLogger.DISABLED=true -Dweblogic.management.discover=false -Dweblogic.llr.table.specjdsl=wl_llr_jent31_1 -Dweblogic.llr.table.specjds2=wl_llr_jent31_2 -Dsun.net.inetaddr.ttl=0 -Dnetworkaddress.cache.ttl=0 -XX:AllocatePrefetchDistance=256 -XX:AllocatePrefetchStyle=1 -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxTenuringThreshold=4 -XX:-UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:CMSTriggerRatio=60 -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+CMSCompactWhenClearAllSoftRefs -XX:-UseParallelGC -XX:ParallelGCThreads=10 -XX:-TraceClassUnloading -XX:-UseParallelOldGC -XX:+UseCompressedOops -XX:+UseBiasedLocking -XX:+AlwaysPreTouch -XX:-UseAdaptiveSizePolicy -Doracle.multitenant.enabled=false -XX:StringTableSize=100003 -XX:ReservedCodeCacheSize=1g -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UnlockCommercialFeatures -XX:+FlightRecorder