• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Log file rotation issue in weblogic10

Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Currently i am using Weblogic version.
In my project we have 4 server instance which generate logs separately and also we have one domain level logging . we are not using log4j logging . we are using weblogc defult logging mechanism for logging. And my server is running in production mode.

My problem is in domain level my log file is not rotating . I have tried all the general option like modification of log attribute in both config.xml file and also using admin console level. And after that also restarted server but still facing same issue.
Note: i have tried both rotation policy "By Size" and "BY TIME".

IS there any thought? what would be the solution.
IS it weblogic version issue?
Or its a know issue and we can resolved this using WLST ?

Please reply me soon. with your thought...
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I do not think that this is a Bug

can you try the below suggestion and let me know?

#invoke WLST
C:\>java weblogic.WLST
#connect WLST to an Administration Server
wls:/offline> connect('username','password')
#navigate to the ServerRuntime MBean hierarchy
wls:/mydomain/serverConfig> serverRuntime()
#navigate to the server LogRuntimeMBean
wls:/mydomain/serverRuntime> cd('LogRuntime/myserver')
wls:/mydomain/serverRuntime/LogRuntime/myserver> ls()
-r-- Name myserver
-r-- Type LogRuntime
-r-x forceLogRotation java.lang.Void :
#force the immediate rotation of the server log file
wls:/mydomain/serverRuntime/LogRuntime/myserver> cmo.forceLogRotation()
The server immediately rotates the file and prints the following message:
<Mar 2, 2005 3:23:01 PM EST> <Info> <Log Management> <BEA-170017> <The log file C:\diablodomain\servers\myserver\logs\myserver.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Mar 2, 2005 3:23:01 PM EST> <Info> <Log Management> <BEA-170018> <The log file has been rotated to C:\diablodomain\servers\myserver\logs\myserver.log00001. Log messages will continue to be logged in C:\diablodomain\servers\myserver\logs\myserver.log.>

Also, this link will help you a lot



Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing a similar issue with my weblogic server. But in my case, the log rotates the first time and creates a xxx.log001 and then xxx.log002. But after this i can see that .log001 keeps getting bigger and bigger, and new files are not created. I have used the by size attribute and specified MIN number of files as 7.

basanta, where you able to resolve your issue or find any workaround for it?
    Bookmark Topic Watch Topic
  • New Topic