Showing posts with label Application Server Performance Tuning. Show all posts
Showing posts with label Application Server Performance Tuning. Show all posts

Wednesday, 28 October 2015

client access slow for weblogic forms / Minimizing Forms 11g Application’s First Time Startup overhead/ Forms access faster form client end

When  client accesses Forms application for the first time, java run-time classes bundled in JAR files are downloaded to client JRE cache.  These files include frmall.jar,frmwebutil.jar and jacob.jar. Cumulative size of these files is more than 2mb. If your application has some additional JAR files for example, JAR file containing icons, more time will be required to download these additional files. On a slow connection, it creates a significant difference. Remember these files are downloaded only once when the application is accessed for the first time.  JRE caches these files. when application is accessed next time, JRE reuses these files if no changes are made to these files on server. If JRE detects new version of JAR files on server, files are downloaded again.
We can reduce this download time by keeping a copy of these files on client side prior to accessing the application. If we place these file on the default CLASSPATH of JRE , JRE use these files form client side instead of downloading it from server. Suppose JRE is  installed  in C: drive, you can place these files in following directory,




C:\Program Files\Java\jre6\lib\ext

Now when you access Forms 11g application, JRE loads all required JAR files from  \ext directory.  This saves significant time on a slow connection.

You can get the jar files from Application server also from following location

/u01/oracle/middleware/Oracle_FRHome1/forms/java


Reference :
http://www.exploreoracle.com/2010/07/02/minimizing-forms-11g-application%E2%80%99s-first-time-startup-overhead/




Monday, 19 October 2015

Configuring the Java Memory Parameters on Application Servers/ Weblogic Server

WebLogic 10.3.x on Windows

Edit the setDomainEnv.cmd file in the WebLogic domain bin folder. Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT.  You should find something like this:
set WLS_MEM_ARGS_64BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_64BIT = -Xms1024m -Xmx1024m

2. Search for WLS_MEM_ARGS_32BIT.  You should find something like this:
set WLS_MEM_ARGS_32BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_32BIT = -Xms1024m -Xmx1024m

3. Search for MEM_PERM_SIZE_64BIT.  You should find something like this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=256m

4. Search for MEM_PERM_SIZE_32BIT.  You should find something like this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=48m
Replace all occurrences with this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=256m

5. Search for MEM__MAX_PERM_SIZE_64BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=256m

6. Search for MEM_MAX_PERM_SIZE_32BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=256m



WebLogic 10.3.x on Linux

Edit the setDomainEnv.sh(/u01/oracle/middleware/user_projects/domains/ClassicDomain/bin) file in the WebLogic domain bin folder
.
Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT. You should find something like this:
WLS_MEM_ARGS_64BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_64BIT = "-Xms1024m -Xmx1024m"

2. Search for WLS_MEM_ARGS_32BIT. You should find something like this:
WLS_MEM_ARGS_32BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_32BIT = "-Xms1024m -Xmx1024m"

3. Search for MEM_PERM_SIZE_64BIT. You should find something like this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=256m"

4. Search for MEM_PERM_SIZE_32BIT. You should find something like this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=48m"
Replace all occurrences with this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=256m"

5. Search for MEM__MAX_PERM_SIZE_64BIT. You should find something like this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=256m"

6. Search for MEM_MAX_PERM_SIZE_32BIT. You should find something like this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=256m"


Ref:  http://support.sas.com/documentation/cdl/en/citmblcg/64709/HTML/default/viewer.htm#n1hplivnigb4ptn1nbn5kixqja3m.htm