Step:1:
Open a browser and go to:
http://<host>:<port>/console
Login with the weblogic admin username/password.
Step:2:
Navigate to the Server
In the left panel, go to: Environment → Servers
You’ll see a list of managed servers:
OACore_server1 → OACore
OAFM_server1 → OAFM
Step:3:
For OACore (4 GB):oacore_server1:
Set JVM Heap Size
Go to the Server → Server Name → Server Start tab.
In the Arguments field, you will see something like below:
Click on Lock and Edit
oafm - 2GB
Validations:
ReplyDeleteps -ef | grep '[o]acore' | awk '{for(i=1;i<=NF;i++) if($i ~ /-Xmx| -Xms/) print $i}'
-Xmx4096m
ps -ef | grep '[o]acore' | awk '{for(i=1;i<=NF;i++) if($i ~ /-Xmx| -Xms/) print $i}'
ps -ef | grep '[o]afm' | awk '{for(i=1;i<=NF;i++) if($i ~ /-Xmx| -Xms/) print $i}'
-Xmx2048m
Optional: Show PID + Heap Sizes
ReplyDeleteps -ef | grep '[o]acore' | awk '{pid=$2; for(i=1;i<=NF;i++) if($i ~ /-Xmx| -Xms/) h=h" "$i; print "PID="pid, h; h=""}'
more $CONTEXT_FILE|grep -i oafm_jvm_start_options
ReplyDeletemore $CONTEXT_FILE|grep -i oacore_jvm_start_options