Solved

weblogic log rotation

Posted on 2007-03-13
3
7,162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web service Rest Client creation 4 104
hashcode is calculated on the basis of value object 2 131
splunk tool 1 80
getSandwich  java challenge 22 109
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.…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

710 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