e-go
e-go

Reputation: 21

Wildfly 11 randomly logs to console.log instead of server log

Problem

Wildfly 11 randomly logs to console.log instead of the server.log file, although console log is not configured in the standalone.xml. This behaviour is reproducable at startup and sometimes happens in production mode, probably when there is extensive logging going on. This might be an important information, since the vast majority of log entries find their way to the server.log and only a few lines are logged to console log.

My first idea was, that Wildfly did not make the switch of the logging config from logging.properties to standalone.xml, yet at startup, when this happens. Due to the fact that this strange behaviour happens after successful deployment as well, the reason seems to be something else.

Log entries in the console.log cannot not be found in the server.log, so it looks like the files are exlusive, so one log entry is written to exactly one log file only. However, based on the logging categories all entries should be written to server.log.

Configuration

Questions

Is there any logical reason for this behaviour? Is Wildfly using the console as fallback in exceptional cases, when it cannot write to the server.log? Do periodic-rotating-file-handlers have some kind of buffer size and if yes does it make sense to change that size? If yes, how can this size be changed?

I assume the large number of applications (wars) deployed cause the logging problem. Is there some resource (Threads/Thread pool etc) that can be exhausted in such a scenario?

I am thankful for any help I can get, so please share your ideas with me!

Upvotes: 1

Views: 1327

Answers (1)

e-go
e-go

Reputation: 21

We identified the problem. After another analysis in turned out, that the log entries are not random and we could identify a component with a custom logging config.

Upvotes: 1

Related Questions