Hi guys today I am going to share an interesting topic on weblogic server start up flags.which will be used for atg or any other server start up.
Most of us will configure the weblogic in local and start and stop server through the command prompt will not cause any issue on the logging. Where else some part of the people especially people working on the build and deployment and those who responsible for the configuration of the servers will face this issue .
The issue is logging the logs in to the out file and because of the gc threads running across, for this I have found the solution and delighted to share with you as well .
Before pitching into that , weblogic gives us the provision where we can configure the server from the console , after configuring it also gives us the way to define the server start up arguments ,memory and jvm options .
So what ever I am describing below can be configured from the console of weblogic java arguments or from the start up script in the java_options variable .
$java_options= “xxxxx”
Export $java_options
Export $java_options
1)Server logging .
By default the logging will not be redirected to the out file , you have to mention it explicitly , if you are not mentioning it then weblogic will not be knowing where to write the output ie it can be error , logging,debugging or the info. Just configure the below and see the file during the start up and after it will be writing to it.
-Dweblogic.Stdout=/data/logs/weblogic/dev1a.out
-Dweblogic.Stderr=/data/logs/weblogic/dev1a.out
-Dweblogic.Stderr=/data/logs/weblogic/dev1a.out
2) java memory .
Once if you define like the below memory will be allocated for the server instances.
Xms4096m -Xmx4096m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=512m -XX:MaxPermSize=512m
3)gc threading.
By default in Linux gc thread will be writing the logs all the time. When you define like below It will disable and give the clean log , of the server.
XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4
If you find any difficulties please raise to me . so I can develop my post further.
Happy learning.!!!!
No comments:
Write comments