facing perm gen space error in weblogic

后端 未结 5 702
离开以前
离开以前 2021-01-02 02:27

I am new to weblogic. After starting the server when i see administrator console and get log-in it throws below exception.

Root cause of ServletException.
ja         


        
相关标签:
5条回答
  • 2021-01-02 02:49

    to complete the reponse of user267 you must change also : set MEM_MAX_PERM_SIZE_64BIT=-XX:MaxPermSize=256m

    set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=256m

    0 讨论(0)
  • 2021-01-02 03:01

    To set PermGen size you can use e.g. -XX:PermSize=512m -XX:MaxPermSize=512m.

    Regarding Weblogic, set the JAVA_OPTIONS and see if these options are properly passed in as parameters into your Java process. You can also directly set these parameters in the startWeblogic.cmd script.

    To check that your JAVA_OPTIONS are set properly, add echo %JAVA_OPTIONS% into the startWeblogic.cmd script and see the output. Also, you can use e.g. jConsole, jstat, or jmap to monitor Heap usage of the Weblogic process at runtime. This will show you the sizes and occupation of the PermGen.

    0 讨论(0)
  • 2021-01-02 03:08

    I just want to share what solved the problem for me: I sourced setDomainEnv.sh and echo ${JAVA_OPTIONS} and noticed that the MEM arguments were not there.

    So I added MEM_ARGS to the last setup of the JAVA_OPTIONS.

    Like so:
    JAVA_OPTIONS="${JAVA_OPTIONS} ${MEM_ARGS}" export JAVA_OPTIONS

    Cheers

    0 讨论(0)
  • 2021-01-02 03:09

    In my case the solution was to edit the DOMAIN\bin\setDomainEnv.cmd file. The following modifications were made before the server would start as intended:

    • The -Xms and -Xmx values were increased
    • the -XX:PermSize and -XX:MaxPermSize values were increased too

    and lastly, but probably most importantly

    • the if "%JAVA_VENDOR%"=="Sun" ( conditions were changed to if "%JAVA_VENDOR%"=="Oracle" ( in order to properly recognize my JVM.

    Before this last modification the memory changes were only partly reflected to the initialised JVM, and this meant that the parameters regarding the PermGen Space were simply ignored.

    0 讨论(0)
  • 2021-01-02 03:12

    You can try by changing the memory settings of weblogic in your server. * Go to - <weblogic path>\Middleware\user_projects\domains\fms_domain\bin\setDomainEnv.cmd * Open the file * Change the settings

    if "%JAVA_VENDOR%"=="Sun" (
    set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
    set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m
    ) else (
    set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
    set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
    )
    

    Change these settings as per your requirement and environment.

    0 讨论(0)
提交回复
热议问题