QuestionQ125

VerifiedConfiguring WebLogic Server Resources

You are operating WebLogic Server on a 64-bit HotSpot JVM.

You modify your domain’s setDomainEnv.sh script to set the minimum and maximum heap sizes as follows:

USER_MEM_ARGS="-Xms32meg ""Xmx150meg"  
  
Export USER_MEM_ARGS -  

You then attempt to start a managed server by running the domain start script from the command line. The server fails with this message:

Invalid initial heap size: -Xms32meg  

Why does the server fail with this message?

Explanation

HotSpot heap-size values use no suffix for bytes, or k/K, m/M, and g/G for kilobytes, megabytes, and gigabytes. meg is not a valid suffix, so -Xms32meg cannot be parsed as an initial heap size; the megabyte form is 32m (and likewise 150m for the maximum heap size).

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!