I would like to set -DUseSunHttpHandler=true argument on WebLogic. I add this argument in WebLogic console -> Environment -> Servers -> serverName -> Configuration -> ServerStart -> Arguments
Configuration -> ServerStart
Arguments
Then I restart server and AdminServer, but this arguments are ignored. Using System.getenv("JAVA_OPTIONS"); gives me:
-Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -javaagent:C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\debugpatch-agent.jar -da -Dwls.home=C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server -Dweblogic.home=C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server
But, when I edit the setDomainEnv.sh file, and add export JAVA_OPTIONS=$JAVA_OPTIONS -DUseSunHttpHandler=true, everything works as expected.
My question: How can I set -DUseSunHttpHandler=true without editing any scripts?
You did it correctly by adding the new options to the server start tab. Unfortunately and unintuitively, the node manager service caches the server start tab parameters, you should restart that first, then restart the managed server.
(also, note that WebLogic checks for custom parameters in the setUserOverides and setUserOverridesLate scripts as per https://docs.oracle.com/middleware/12213/wls/START/overview.htm#GUID-8B78ABB1-20AB-41CB-AB50-0DE5CB3F7234 - that's also a good option for adding parameters without the node manager hassle)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With