Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java log4j2: Log messages go missing sporadically, especially in multi-threaded scenarios #3488

Open
hexagon-ecosys opened this issue Jan 7, 2024 · 1 comment

Comments

@hexagon-ecosys
Copy link

Expected behavior

All log messages should be sent to App Insights

Actual behavior

Log messages go missing sporadically in multi-threaded scenarios when several threads are logging simultaneously
Application Insights log file has no errors

To Reproduce

Clone https://github.com/hexagon-ecosys/azure-app-insights.git and run it several times by supplying the single parameter value '3' (which runs it in multi-threaded mode with long messages upto 20K characters in length)

System information

  • App Insights 3.4.18
  • MacOS 14.2 and Alpine 3.18 with Eclipse Temurin JDK 21

Additional Information

  • I cannot not see any pattern to this issue other than the fact that it happens more during weekdays (we're based in New York City) and less during the weekends
  • I am using the preview option generalExportQueueCapacity. Without it, I can see error messages in the Application Insights log file asking that it be set
@michaldaniel
Copy link

michaldaniel commented Feb 2, 2024

I'm experiencing something very similar where there are portions of log messages missing from the same logger output executed at different time and we are also using log4j2 and there also seems to be no obvious pattern (using version 3.4.19 integrated with JVM argument).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants