Search code examples
javalogginglog4jweblogic

will multiple weblogic managed nodes with same log4j result in file lock?


My production setup has 1 physical server with 2 weblogic managed nodes running and deployed with a package war file.

The package war file contains the log4j configuration file which specifies the log file to be written to /log/mypath/mylogfile.log.

Will multiple weblogic managed nodes attempting to read/write to the same log file result in file lock/IO issues?


Solution

  • Yes, you will have issues that will prevent the logs from rolling. Adding the the server name as a variable name with alleviate this, but will give you two log files instead of one. The log path will look like this:

    /log/mypath/mylogfile.${weblogic.Name}.log