Monday, December 22, 2014

some solution to increase jdeveloper and integrated weblogic performance

Go to your JDeveloper root directory, is should be something like
     C:\Oracle\jdev\Middleware\jdeveloper

1- Open the file ide\bin\ide.conf, scroll down to the default memory settings:
                 AddVMOption -Xms128M
                 AddVMOption -Xmx768M

Boost the memory to something larger, like so:
        AddVMOption -Xms1024M
        AddVMOption -Xmx1024M


2- Open the file jdev\bin\jdev.conf
Add the following config settings:
        # optimize the JVM for strings / text editing
        AddVMOption -XX:+UseStringCache
        AddVMOption -XX:+OptimizeStringConcat
        AddVMOption -XX:+UseCompressedStrings

 # if on a 64-bit system, but using less than 32 GB RAM, this reduces object pointer memory size
        AddVMOption -XX:+UseCompressedOops

        # use an aggressive garbage collector (constant small collections)
        AddVMOption -XX:+AggressiveOpts

 # for multi-core machines, use multiple threads to create objects and reduce pause times
        AddVMOption -XX:+UseConcMarkSweepGC
         AddVMOption -DVFS_ENABLE=true      AddVMOption -Dsun.java2d.ddoffscreen=false      AddVMOption -XX:+UseParNewGC      AddVMOption -XX:+CMSIncrementalMode     AddVMOption -XX:+CMSIncrementalPacing     AddVMOption -XX:CMSIncrementalDutyCycleMin=0     AddVMOption -XX:CMSIncrementalDutyCycle=10
Then restart JDeveloper... If it doesn't start, you'll need to reduce the amount of memory allocate in the ide.conf 

to increase heap size of the integrated weblogic server

go to 

%APPDATA%\JDeveloper\system11.*****/DefaultDomain/bin
then edit setDomainEnv.cmd

change the following parameter depend on if you are using Jdk or jrocket

#if you are using jdk 

set XMS_SUN_64BIT=2048
set XMX_SUN_64BIT=4096

#if you are using 32 bit

set XMS_SUN_32BIT=1024
set XMX_SUN_32BIT=1024


if you are using jrocket

set XMS_JROCKIT_64BIT=2048
set XMX_JROCKIT_64BIT=4096

#32bit

set XMS_JROCKIT_32BIT=1024
set XMX_JROCKIT_32BIT=1024
 



Preparing Oracle ADF application to run on High Availability Architecure

i found a good topic that explain high availability  architecture  and how to prepare the application to run in that architecture here is the link

Running Adf Application on High Availability architecure