Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle WebLogic Server 12c Advanced Administration Cookbook

You're reading from   Oracle WebLogic Server 12c Advanced Administration Cookbook If you want to extend your capabilities in administering Oracle WebLogic Server, this is the helping hand you've been looking for. With 70 recipes covering both basic and advanced topics, it will provide a new level of expertise.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher
ISBN-13 9781849686846
Length 284 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Dalton Iwazaki Dalton Iwazaki
Author Profile Icon Dalton Iwazaki
Dalton Iwazaki
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Oracle WebLogic Server 12c Advanced Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Install, Configure, and Run FREE CHAPTER 2. High Availability with WebLogic Clusters 3. Configuring JDBC Resources for High Availability 4. Configuring JMS Resources for Clustering and High Availability 5. Monitoring WebLogic Server 12c 6. Troubleshooting WebLogic Server 12c 7. Stability and Performance 8. Security Index

Rotating the STDOUT logfile


Oracle WebLogic Server 12c does not provide an out of the box configuration to rotate the STDOUT and STDERR logfiles in runtime (.out file). In the previous recipe, as a workaround, it was redirected to the server logfile and disabled.

Fortunately in Linux, the included logrotate command-line tool can do the job.

In this recipe, the logrotate will be configured to run hourly and rotate all .out files from the PROD_DOMAIN WebLogic instances larger than 50 MB. It will rotate to the limit of 20 files, repeating the configuration of the server logfiles in the previous recipe.

Getting ready

The logrotate settings must be configured in the machine shell. To do this log in to the prod01 machine.

How to do it...

Carry out the following steps to rotate the .out file:

  1. Log in as a wls user to shell and create a new file wls-stdout-logrotate.conf and save it to the $DOMAIN_HOME folder:

    [wls@prod01]$ cd /oracle/Middleware/user_projects/domains/PROD_DOMAIN
    [wls@prod01]$ vi wls-stdout...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime