1

in my project,the log file is taking more memory compared to the assumed memory,so,my task is,i sholud make the tomcat server to generate new log file in catalina folder for every 2MB,it means log file size should limit for 2MB.

user3962745
  • 1,097
  • 2
  • 12
  • 17

1 Answers1

0

You can use -Dlog4j.appender.R.MaxFileSize=5MB in the log4j file to choose the size . For more info http://tomcat.apache.org/tomcat-8.0-doc/logging.html

Harinder
  • 11,776
  • 16
  • 70
  • 126