How to set SOA Memory Argument in SOA Suite 12.2.1.4 (extra java options / arguments)

Objective :

Setting JVM memory arguments Xms & Xmx for managed servers like SOA and OSB in weblogic server.

Description :

Most commonly the JVM memory arguments Xms (minimum allocation size) and Xmx (maximum allocation size) for weblogic managed servers are set either using following options.

  1. Managed Server’s Server Start -> Arguments
  2. Setting respective startup group config in file setStartupEnv.sh file or setDomainEnv.sh file or setSOADomainEnv.sh file under DOMAIN_HOME/bin folder
  3. Create an external script file and refer from setSOADomainEnv.sh

With 12.2.1.4 version of SOA Suite there is one additional file used which consolidates lots of useful extra java parameter in one single file : setSOARefConfigEnv.sh

How to :

  1. Go to folder ORACLE_HOME/soa/common/bin
  2. Look out for file setSOARefConfigEnv.sh
  3. Set as below
# JVM Memory Arguments
if [ "${STARTUP_GROUP}" = "AdminServerStartupGroup" ] ; then
    MEM_ARGS_NEW_MIN="-Xms4g"
    export MEM_ARGS_NEW_MIN

    MEM_ARGS_NEW_MAX="-Xmx4g"
    export MEM_ARGS_NEW_MAX
else
    MEM_ARGS_NEW_MIN="-Xms16g"
    export MEM_ARGS_NEW_MIN

    MEM_ARGS_NEW_MAX="-Xmx18g"
    export MEM_ARGS_NEW_MAX
fi

Good to Know :

setSOARefConfigEnv.sh file is used inside setDomainEnv.sh as below

# Set reference configuration extra java options, if parameter passed to setSOARefConfigEnv script is true.
# To unset reference configuration extra java options, pass false as parameter to setSOARefConfigEnv script.
if [ -f /your_path/Middleware/Oracle_Home/soa/common/bin/setSOARefConfigEnv.sh ] ; then
. /your_path/Middleware/Oracle_Home/soa/common/bin/setSOARefConfigEnv.sh true
fi

This file is not mandatory file to present, if you want you can still manage all your memory and other arguments in setXXX.sh file under DOMAIN_HOME/bin folder.

If this file is set you can start your Admin via startWeblogic.sh script while all managed server must start using Node Manager (like starting managed server from Admin console or nmconnect) to take advantage of this file.

If you use scripts like startManagedWebLogic.sh to start your managed server then this file may not very helpful.

If you look at some of the key property added or being set in this file, its quite useful or easy to maintain. You can always bring more java arguments under the same file to centralize your java extra property settings.

OSB 12.2.1.4 Payload Size setting :

-Dweblogic.MaxMessageSize for message size on all protocol – This does not state that message size of your request payload that SOA or OSB can process. for that you need to set

PAYLOAD="-Dsoa.payload.threshold.kb=100000"
export PAYLOAD


provided below property is also set to true


SOA_REFCONFIG_ENABLED="-Dsoa.refconfig.enabled=true"
export SOA_REFCONFIG_ENABLED

Other useful property that you can set is soa / osb attachment size, minimum ssl protocol version, connection timeout, read timeout etc

Let me know if you find this topic interesting & useful.

Oracle API PCS (Platform Cloud Service) Gateway Users Password Reset

Please find 5 simple steps to Reset your Gateway users for API PCS Gateway Nodes. If you are searching for how then must know why !!! Check below link to find out steps to update Gateway Runtime / Manager users Password on you Gateway Nodes.

Page Link : Oralce API PCS Gateway Users Password Reset

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

Our New YouTube Channel

I love working on Fusion Middleware tool & I am a big foodie too. We come up with a new Channel with exciting food recipes. Please do visit and Subscribe to our YouTube Channel and Support us getting more recipe to you 🙂

Quick View On WordPress : https://sswaro.wordpress.com/priyashree-foodfashion/

Channel Link : https://www.youtube.com/c/priyashreefoodfashion

PLEASE SUBSCRIBE 🙂

Some Videos From Channel:

And Lots More on Our Channel. Please do Subscribe to Support.

Add or Subtract Date Using xQuery

As a feature of message enrichment we need to modify/update message from its original value to something what required by target system. If you are using OSB as your Middleware you can do that easily using xQuery built-in function.

Page Link : Add or Subtract Date Using xQuery

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

Two Way SSL Negotiation in OSB Outbound

If you are looking for a solution where you want to invoke a web service from OSB which is using client SSL certificate negotiation then below page can help you on step by step setup you need to do for that.

Page describes what are the resources we need to create(Credential Mapper and Service Key Provider) and how we can configure our proxy and business service to use them for outbound two way ssl certificate negotiation.

Page Link : Client Certificate Authentication for OSB Outbound

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

SSL minimum negotiable version configuration in SOA

Lots of web application are now using encryption. HTTP SSL encryption are very common however they are becoming old and new TLS(newer version to SSL) are getting implemented with more secure encryption and key exchange mechanism. You have decided to move your system to support latest SSL version however lots of your clients are still does not support it. A solution would be to keep your system upgraded to run on latest TLS with support to old SSL encryption.

SO, How to configure specific SSL version in SOA ? How to specify old SSL version negotiation in SOA? You can get some idea from below page.

Page Link : Minimum negotiable SSL version in SOA

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

SOA/OSB managed servers start to ADMIN State

Do you ever face situation where you found during server start, managed servers are failed to start properly and goes to ADMIN state. This happen when server failed to initiate required resources. Below page will give you some idea on this and solution to avoid such situation.

Page Link : SOA OSB managed server start to ADMIN State

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

Setup CORS Profile in Oracle API Gateway (OAG) v11.1.2.3 for REST Services

Cross origin request blocking is a security feature implemented by web browsers to prevent browser scripts making requests from a different domain. This some time causes issue when client service runs on a different domain and need to call a web service exposed on other domain.

To enable client scripts invoke REST services, different API providers have option called CORS profile which enable/allows HTTP call from cross domain from browser script.

Below page shows how to enable CORS profile in Oracle API Gateway, enabling REST call from a client(AJAX) fro a different domain.

Page Link : CORS Profile in Oracle API Gateway (OAG)

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.

oracle.security.jps.JpsException: JPS-01055: Could not create credential store instance

After changing security provider from OPSS to LDAP, Admin and managed servers failed to start.

Two files jps-config.xml and jps-config-jse.xml are modified and ldap configs are defaulted for which during server startup its not able to fetch security details from OPSS schema.

Please find fix in details at below link.

Page Link : Could not create credential store instance[JPS-01055]

Like it if you have learned something. Comment your views, queries. Any suggestion and corrections are always appreciated. Keep learning.