Solved

weblogic log rotation

Posted on 2007-03-13
3
7,153 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
Comment
Question by:sparks1984
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18714000
>> 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:
anokun7 earned 500 total points
ID: 18717746
> 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:Mayank S
ID: 18724474
Hadn't I answered half the Q ;-) ?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

778 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