• Home
  • Java API Examples
  • Python examples
  • Java Interview questions
  • More Topics
  • Contact Us

Program Talk

All about programming : Java core, Tutorials, Design Patterns, Python examples and much more

log4j2

log4j2 contributing to memory leakage on redeploy

December 17, 2015 by T Tak 4 Comments

We have a number of wars in one tomcat. And recently we upgraded from log4j1.x to log4j2.x. And since then we have faced a lot of issues. One of them is listed here. After the above issue we took out the log4j2 jars and placed them in the tomcat lib folder. But we didn’t move … [Read more…]

Like this post? Don’t forget to share it!
Posted in: java Tagged: log4j2

log4j2 writing multiple files for multiple webapps in tomcat

October 25, 2015 by T Tak Leave a Comment

As we moved to the latest version of the log4j. We were using log4j 1.x and now we upgraded to log4j 2.x. We have 4 webapps in single tomcat container and they all share the same log4j2.xml. This log4j2.xml is provided at the startup of the tomcat container using the property “log4j.configurationFile”. property In log4j2.xml we had … [Read more…]

Like this post? Don’t forget to share it!
Posted in: java Tagged: log4j2

log4j 2 configuration for writing all the logs to a file

October 25, 2015 by T Tak Leave a Comment

Here is an example of a configuration which would write all the logs to a file and once a size limit has been reached it will create a history file for the logs in a folder. So let us see the xml configuration then: So the above configuration will create a tomcat.log file in the … [Read more…]

Like this post? Don’t forget to share it!
Posted in: java Tagged: log4j2

log4j2 issues with maven assembly plugin

October 8, 2015 by T Tak Leave a Comment

I was working on a project and we needed an executable jar will the dependencies in. So I googled and found maven-assembly-plugin. So I took the plugin and used it build my executable jar. After running the executable the log4j2 stopped to work. I tried to build the executable with log4j2.xml in src/main/resources but the … [Read more…]

Like this post? Don’t forget to share it!
Posted in: java Tagged: log4j2, maven
Program Talk

Useful tools

  • Share Your own examples

Subscribe

Be the first to know about latest content

Recent Posts

  • How to schedule tasks with Spring boot
  • Spring Security Interview Questions
  • MICROSERVICES INTERVIEW QUESTIONS
  • Convert Array to Streams in Java 8
  • Software development cycle and the importance of agile testing

Copyright © 2021 Program Talk.

Omega- WordPress Theme by T Tak