I need a custom property to set per each server JVM in Weblogic. What is the better approach doing it?
I know we can specify the argments like below:
I usually create simple call scripts for each managed server under DOMAIN_HOME, that in turn call the generic start scripts in the /bin directory - like the one that WebLogic automatically creates for the Admin Server. I know you can override memory arguments this way and I'm pretty sure you can change JVM.
Here's an example of a tested script for Windows:
cd bin
SET USER_MEM_ARGS=-Xms512m -Xmx512m
startManagedWebLogic.cmd new_ManagedServer_1 localhost:7001
which I guess in UNIX would be something like this (sorry don't know much about bash scripts):
cd bin
export USER_MEM_ARGS="-Xms512m -Xmx512m"
./startManagedWebLogic.sh new_ManagedServer_1 localhost:7001
I think to change the JVM it would be something like:
export JAVA_VENDOR="Oracle"
export USER_MEM_ARGS="-Xms512m –Xmx1g"
./startWebLogic.sh
Would be interested to hear anyone's feedback on this. Hope it helps someone . . .