Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 705185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:01:30+00:00 2026-05-14T04:01:30+00:00

Our app servers (weblogic) all use log4j to log to the same file on

  • 0

Our app servers (weblogic) all use log4j to log to the same file on a network share. On top of this we have all web apps in a managed server logging errors to a common error.log. I can’t imagine this is a good idea but wanted to hear from some pros. I know that each web app has its own classloader, so any thread synchronization only occurs within the app. So what happens when multiple processes start converging on a single log file? Can we expect interspersed log statements? Performance problems? What about multiple web apps logging to a common log file? The environment is Solaris.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:01:31+00:00Added an answer on May 14, 2026 at 4:01 am

    This is generaly bad idea to have not synchronized write access to a file and certainly bad programming practice. The only case it might work is an append to a file on local machine – everybody just adds lines at the end of file.

    But, since your file is on the network share, it will probably quickly turn into garbage. You didn’t tell which distributed filesystem you are using, but for NFS you can find following explanation on open(2) man page:

    O_APPEND
    The file is opened in append mode. Before each write(), the file offset
    is positioned at the end of the file,
    as if with lseek(). O_APPEND may lead
    to corrupted files on NFS file systems
    if more than one process appends data
    to a file at once. This is because NFS
    does not support appending to a file,
    so the client kernel has to simulate
    it, which can’t be done without a race
    condition.

    Of course this is C, but since Java is implemented in C it cannot do any better than that (at least not with regard to system calls:-)).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company uses virtual machines for our web/app servers. This allows for very easy
We're building an app that sends email using our clients' servers. The servers have
We have weblogic appserver running on unix box with our application which uses log4j
We have 2 web servers and 1 app server in our QA environment. Each
I have written software (C#. NET console app) to run on all of our
We have been facing Out of Memory errors in our App server for sometime.
Our app uses a component that requires a license file in the directory with
We frequently get a series of Stuck threads on our Weblogic servers. I've analyzed
For a enterprise customer, who will be running our Rails app on their servers,
Our asp.net app is running on 10 web servers, after we deployed the new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.