Skip Headers
Oracle® Application Server Enterprise Deployment Guide
10g Release 3 (10.1.3.5.0)

Part Number E15355-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 Maintaining the SOA Suite

Managing the SOA Suite

Enabling Disaster Recovery

Best Practices for Cluster-based BPEL Deployments

Resolving Out-of-Memory Errors in the BPEL Runtime Console

Configuring Oracle Enterprise Service Bus for Singleton Adapters

5.1 Managing the SOA Suite

Common administration operations are listed in Table 5-1. You can monitor and manage the system using consoles or command line tools.

Table 5-1 System administration tasks, tools, and related documentation

Task or operation Tool Where documented

Access the Application Server Control Console

Application Server Control Console

Oracle Application Server Administrator's Guide

Start and stop Oracle Application Server

Application Server Control Console

Oracle Application Server Administrator's Guide

Create and delete OC4J instances

Application Server Control Console

Oracle Application Server Administrator's Guide

List and view log files

Application Server Control Console

Oracle Application Server Administrator's Guide

Back up and restore instances

Command line

Oracle Application Server Administrator's Guide

Change hostname, domain name, or IP address

Command line

Oracle Application Server Administrator's Guide

Manage wallets and Certificate Revocation Lists

Command line

Oracle Application Server Administrator's Guide

Start and stop the BPEL Process Manager server

Command line

Oracle Application Server Administrator's Guide

Manage, administer, and debug processes deployed to Oracle BPEL server

Oracle BPEL Console

Oracle BPEL Process Manager Quick Start Guide

Deploy Oracle Web Services Manager components

Web Services Manager Control Console

Oracle Web Services Manager Deployment Guide


5.2 Enabling Disaster Recovery

For recommendations and instructions on enabling disaster recovery, see the Oracle Application Server High Availability Guide

5.3 Best Practices for Cluster-based BPEL Deployments

When deploying applications in a BPEL cluster, ensure that you:

5.4 Resolving Out-of-Memory Errors in the BPEL Runtime Console

When you work with tasks in the BPEL Console, this error may occur:

500 Internal Server Error

java.lang.OutOfMemoryError: PermGen space

To resolve the error, you increase the memory allocated to the PermGen space (used for loading static classes) with the MaxPermSize parameter. Follow these instructions to set the MaxPermSize parameter in the Oracle Application Server instances on APPHOST1 and APPHOST2:

  1. Open the ORACLE_HOME/opmn/conf/opmn.xml file and locate the MaxPermSize parameter, if present (shown in bold in Example 5-1). You might need to add the parameter to opmn.xml. The parameter must be added for the OC4J_SOA container startup.

    Example 5-1 MaxPermSize Parameter in opmn.xml

    ...
    <category id="start-parameters">
                        <data id="java-options" value="-Xrs -server
    -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3
     -Djava.security.policy=$ORACLE_HOME/j2ee/Admin/config/java2.policy
     -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
                       </category>
                       <category id="stop-parameters">
                          <data id="java-options"
     value="-Djava.security.policy=$ORACLE_HOME/j2ee/Admin/config/java2.policy
     -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    ...
    
  2. Increase the value, or add the MaxPermSize parameter for all OC4J containers., for example:

    -XX:MaxPermSize=256M

  3. Save and close the file, and restart the OC4J instance using these commands:

    opmnctl reload

    opmnctl stopproc process-type=OC4J_SOA

    opmnctl startproc process-type=OC4J_SOA

5.5 Configuring Oracle Enterprise Service Bus for Singleton Adapters

If Oracle Enterprise Service Bus is deployed across a cluster, and an ESB flow is triggered by a singleton adapter (such as a file adapter), one, and only one instance of the clustered ESB should pick up the file and start one process. The ESB inbound endpoint property clusterGroupId enforces singleton behavior by adapters in a clustered environment. This feature is designed for endpoints, such as a file system, that do not natively support a solid locking mechanism, as does a SQL database.

This singleton control of adapters requires that the ESB and BPEL instances belong to the same Jgroup configuration, obtained from the mcast-addr and mcast-port values in the ORACLE_HOME/bpel/system/config/jgroup-protocol.xml file, as described in Section 3.12, "Configuring the Cluster of BPEL Instances on APPHOST1 and APPHOST2."

To configure this behavior, you assign a combination of J2EE Connector Architecture (JCA) endpoint activations to a specific cluster group (typically, activations toward the same non-transactional endpoint, such as the same directory). Only one activation can be active at any given time. For example:

Cluster 1, instance 1:

<service name="InboundServiceX" ...>
   ... 
   <endpointProperties> 
      <property name="clusterGroupId" value="cluster1"/>
   </endpointProperties> 
</service>

Cluster1, instance 2:

<service name="InboundServiceX" ...>
   ... 
   <endpointProperties>
      <property name="clusterGroupId" value="cluster1"/>
   </endpointProperties>
</service> 

Cluster1, instance 3:

<service name="InboundServiceX" ...>
   ...
   <endpointProperties>
      <property name="clusterGroupId" value="cluster1"/>
   </endpointProperties>
</service>

[...] 

In this configuration, all JCA adapter endpoint activations belonging to the same cluster group (in this case, cluster 1) will at any given time have only one activation active (the primary activation), and will be actively polling the endpoint (the file system). The others will be "hot standby", or secondary activations. For example, if instance 2 is the primary activation and it stops, instance 1 and instance 3 will immediately detect this, and then instance 1 or instance 3 will resume the activation responsibility (that is, become the primary activation). If instance 2 is restored to operation, it may re-assume the primary activation responsibility if instance 1 or instance 3 stops, and so on.

For more information, see "How to Add Endpoint Properties" in the Oracle SOA Suite Developer's Guide.