This discussion is archived
9 Replies Latest reply: Mar 10, 2013 11:17 AM by souvik_das RSS

How to rotate server out file Weblogic 10g

SSR1234 Newbie
Currently Being Moderated
Hi,
We are using Weblogic 10 on sunsolaris(unix). we are very frequently seeing teh server out file getting filled quickly and we have to stop, remove the out file and start the servers. Is there any way we can make this weblogic it self take care, means rotate as it does to log files.

Cheers,
  • 1. Re: How to rotate server out file Weblogic 10g
    935865 Newbie
    Currently Being Moderated
    Hi

    It's pretty much possible to rotate and clean up the old logs in Weblogic. Log rotation and clean up is a customizable parameters in weblogic.
  • 2. Re: How to rotate server out file Weblogic 10g
    SSR1234 Newbie
    Currently Being Moderated
    yep, I can see the steps to rotate logs, I need to rototate .out file of the weblogic server, how can I do this.
  • 3. Re: How to rotate server out file Weblogic 10g
    alpyanar Explorer
    Currently Being Moderated
    Hi,
    Follow this instructions:
    1) Set -Dweblogic.log.RedirectStdoutToServerLogEnabled=true in your start script.
    2) Login your Weblogic Domain and go to Enviroment--Server--Server_x--Loging--General
    3) Set your rotation type and "Limit number of retained files" parameters.
    4) Restart the manage server.

    You should do all steps for your all manage servers.
  • 4. Re: How to rotate server out file Weblogic 10g
    the_assface Explorer
    Currently Being Moderated
    I have tried this and it works for the logs named .log but the .out logs in the \domain\server folders don't seem to get this same result. In the .out section of the console logging tab it doesn't seem to have a way to restrict the number and size of the .out files. You would think if you check the box to enable stdout logging to go to the weblogic logs then it would not even create a .out log.....but that;s not true by my testing.
  • 5. Re: How to rotate server out file Weblogic 10g
    Jos de Jong Newbie
    Currently Being Moderated
    Hi all,

    Have a look at the wlscontrol.sh file in $WL_HOME/common/bin
    There's a function which you can use to rotate the out logs:

    # Rotate the specified log file. Rotated log files are named
    # <server-name>.outXXXXX where XXXXX is the current log count and the
    # highest is the most recent. The log count starts at 00001 then cycles
    # again if it reaches 99999.
    #
    save_log()
    ....
    if [ "$logCount" -eq "99999" ]; then
    logCount=0
    fi
  • 6. Re: How to rotate server out file Weblogic 10g
    the_assface Explorer
    Currently Being Moderated
    I am on a windows system...is there a similar file for that platform? I don't see one in my /bin folder....

    Thanks
  • 7. Re: How to rotate server out file Weblogic 10g
    Jos de Jong Newbie
    Currently Being Moderated
    Sorry, can't help you with windows. Don't have any windows weblogic servers.
    Maybe you can show me the contents of the bin directory on a windows machine?

    Greetz
  • 8. Re: How to rotate server out file Weblogic 10g
    the_assface Explorer
    Currently Being Moderated
    Thanks, here is what I have in the /bin folder

    Directory of C:\Oracle\Middleware\wlserver_10.3\common\bin

    03/09/2012 09:13 AM <DIR> .
    03/09/2012 09:13 AM <DIR> ..
    03/31/2010 03:46 PM 6,877 commEnv.cmd
    03/31/2010 03:46 PM 18,391 commEnv.sh
    04/14/2010 06:37 AM <DIR> config
    03/31/2010 03:46 PM 2,082 config.cmd
    03/31/2010 03:44 PM 67,584 config.exe
    03/31/2010 03:46 PM 2,382 config.sh
    03/31/2010 03:46 PM 1,493 config_builder.cmd
    03/31/2010 03:46 PM 2,185 config_builder.sh
    03/31/2010 03:39 PM 45,056 console.exe
    03/31/2010 03:39 PM 53,760 consolew.exe
    12/07/2006 06:19 AM 20,480 DfRegistryWin32.dll
    04/14/2010 06:37 AM 472 fileRealm.properties
    03/31/2010 03:47 PM 133 nm_data.properties
    03/09/2012 08:57 AM 133 nm_data.properties.old
    05/11/2011 10:08 AM 1,580 nm_service_classpath.txt
    07/09/2010 10:38 AM 156 nodemanager.domains
    03/09/2012 08:57 AM 0 nodemanager.log.lck
    03/09/2012 09:09 AM 1,902 nodemanager.log.old
    05/05/2010 08:55 AM 812 nodemanager.properties
    03/09/2012 08:57 AM 756 nodemanager.properties.old
    03/31/2010 03:46 PM 1,646 pack.cmd
    03/31/2010 03:46 PM 2,780 pack.sh
    04/14/2010 06:37 AM <DIR> security
    04/14/2010 07:14 AM <DIR> servers
    03/31/2010 03:46 PM 1,882 setPatchEnv.cmd
    03/31/2010 03:46 PM 2,176 setPatchEnv.sh
    03/31/2010 03:46 PM 3,889 startManagedWebLogic.cmd
    03/31/2010 03:46 PM 4,155 startManagedWebLogic.sh
    03/31/2010 03:46 PM 6,717 startPointBase.cmd
    03/31/2010 03:46 PM 5,722 startPointBase.sh
    03/31/2010 03:46 PM 3,170 startPointBaseConsole.cmd
    03/31/2010 03:46 PM 2,739 startPointBaseConsole.sh
    03/31/2010 03:46 PM 2,284 stopPointBase.cmd
    03/31/2010 03:46 PM 1,872 stopPointBase.sh
    04/14/2010 07:18 AM <DIR> tmp
    03/31/2010 03:46 PM 1,760 unpack.cmd
    03/31/2010 03:46 PM 2,210 unpack.sh
    03/31/2010 03:46 PM 3,272 upgrade.cmd
    03/31/2010 03:46 PM 3,382 upgrade.sh
    03/31/2010 03:46 PM 30,739 wlscontrol.sh
    03/31/2010 03:39 PM 773 wlsifconfig.cmd
    03/31/2010 03:39 PM 13,838 wlsifconfig.sh
    03/31/2010 03:46 PM 496 wlst.cmd
    03/31/2010 03:46 PM 680 wlst.sh
  • 9. Re: How to rotate server out file Weblogic 10g
    souvik_das Newbie
    Currently Being Moderated
    René van Wijk a very popular and active contributor to the Oracle Forums has written a brilliant post about the same here
    http://middlewaremagic.com/weblogic/?p=8338

    Please follow the same for Solaris or Linux. For windows it would be perhaps using windows services
    René 's profile on Oracle Forum - https://forums.oracle.com/forums/profile.jspa?userID=525850

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points