I am using Weblogic Server 10 installed in LINUX .
Currently it is using -XMS 256 -XMX 512 .
Please tell me how can i increase the Memory for Weblogic .
Exactly Under what file and where we need to to make changes ??
We are using Clustering with 2 cluster servers and one Admin Server.
I am using Admin and two clustered servers . do i need to set this under startWebLogic.sh (Admin server ) or for Clustered server (startManagedWebLogic.sh)
Please reply .
Joined: Jan 30, 2006
It's set by servername and you specify the amount of memory each server starts with on the command line for that server. I have Admin and 4 managed servers each starting with a different amount of memory. Take a read through those start scripts and you should get the general idea. I believe everyhing defaults to 256Kb and somewhere in there is a check to see if the server is Admin and whether USER_MEM_ARGS has been set.
Before you make changes to java settings please cross verify your swap space and memory limits. allocating more heap space will cause to machine to slow down.
1) since you have mentioned that you have 1-admin & 2-man clustered its better to allocate less heap to Admin.
2) if you want to allocate same [256M-1024M] heap to both managed servers you can edit the startManagedServers.sh script and setDomainEnv.sh
3) If you are using different heap size for 2 managed servers . you can better write a shell script for each server which can start a WL process using Weblogic.Server class in which you can specify the memory size.