Skip to main content

Setting User Defined JVM Memory Arguments in JDeveloper 11g Integrated WebLogic Server


Setting User Defined JVM Memory Arguments in JDeveloper 11g Integrated WebLogic Server






This guide explains how to set your own predefined JVM memory arguments for the JDeveloper WebLogic container at startup for the integrated WebLogic server.  This will help avoid java.lang.OutOfMemoryErrors experienced on heavy java processes and also improve on the integrated JDeveloper WebLogic server’s performance overall.
Steps
  1. Locate the file: setDomainEnv.cmd which should be at:
[JDeveloper Working Directory]\jdeveloper\system.xxx.xx.xx\DefaultDomain\bin
                                i.            Note:
[JDeveloper Working Directory] will be "C:\Documents and Settings\<username>\Application Data per default
                              ii.            xxx.xx.xx will be a version number
  1. After the comments at the start of the file add the following environment variable with your required settings.
    @REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    @REM (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/overview.htm).
    @REM *************************************************************************
    ...

    set USER_MEM_ARGS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m
  2. Save the file.
  3. Run any web project and verify it picks up the new settings.
*** Using port 7101 ***
D:\jdev\jdevprod\11gr2\jdeveloper\jdev\system11.1.1.2.36.55.36\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
.
.
JAVA Memory arguments: -Xms1024m -Xmx1024m -XX:MaxPermSize=256m
.
WLS Start Mode=Development


Comments

Post a Comment

Popular posts from this blog

OBIEE 11g Error "Selected item is not of valid selection type" In Agent When Select Dashboard Page For Content

OBIEE 11g Error"Selected item is not of valid selection type" This error applies to OBIEE - version 11.1.1.7.0 and later . When you try to choose a dashboard page for delivery content in an agent, it constantly fails with the error message " Selected item is not of valid selection type ”.  Solution: This error may happen, when there is an added extra space after the end of the name of the dashboard page. For example, instead of "PAGE", it is "PAGE   "  It may happen with a space at the beginning of the name also. Removal of the extra space by renaming the dashboard page will correct the error.

Monitor the progress of oracle impdp datapump job

So you are running an impdp job and would like to monitor the progress,running this sql statement does the trick SQL>select t.username,t.TIME_REMAINING,t.ELAPSED_SECONDS,t.opname,t.target_desc,t.sofar,t.totalwork,t.message from V$SESSION_LONGOPS t where t.TIME_REMAINING !=0 ; USERNAME                       TIME_REMAINING ELAPSED_SECONDS ------------------------------ -------------- --------------- OPNAME ---------------------------------------------------------------- TARGET_DESC                           SOFAR  TOTALWORK -------------------------------- ---------- ---------- MESSAGE -------------------------------------------------------------------------------- SYSTEM           ...