Solved

weblogic log rotation

Posted on 2007-03-13
7,137 Views
Last Modified: 2013-12-10
Weblogic 8.
Currently redirecting stdout and stderr of a JVM from inside the startscript to a file (via 2>&1). Looking into using instead:
-Dweblogic.Stdout="stdout-filename"
-Dweblogic.Stderr="stderr-filename"
But have some questions:
1> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?
2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

0
Question by:sparks1984
    3 Comments
     
    LVL 30

    Expert Comment

    by:mayankeagle
    >> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?

    I think there should be no issue.
    0
     
    LVL 13

    Accepted Solution

    by:
    > Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?

    We do this all the time - and there really is no issue.

    2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

    As far as I know weblogic 8 does not provide a way to rotate the logs.. However if you are on Unix, you do have the utility logrotate which you can use (try man logrotate to read more about this):

    From "man logrotate":

    DESCRIPTION
           logrotate is designed to ease administration of systems that generate large numbers of log
    files.  It allows automatic rotation, compression, removal, and mailing of log files.  Each log
    file may be han­dled daily, weekly, monthly, or when it grows too large.
    0
     
    LVL 30

    Expert Comment

    by:mayankeagle
    Hadn't I answered half the Q ;-) ?
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    659 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    35 Experts available now in Live!

    Get 1:1 Help Now