3

I want to turn off tomcat's logs jvm.stderr and jvm.stdout which have been set in the wrapper.properties, I've commented these lines out but that just redirects the logs to be written to the root tomcat folder.

The reason for turning them off is that these logs do not seem to have any sort of size control so I have a situation where they are getting too big and causing problems.

Is it possible to totally disable them or at least put in place some sort of management to stop the files getting too big.

Thanks

skaffman
  • 398,947
  • 96
  • 818
  • 769

1 Answers1

1

Have you tried setting the logs locations to /dev/null in the wrapper.properties? Alternatively, on if you're on Windows try the /dev/null equivalent.

Community
  • 1
  • 1
Mike McQuaid
  • 9,615
  • 6
  • 33
  • 38
  • Thats the problem this is on windows 2003 server :( –  Jul 27 '09 at 14:19
  • I've updated my answer to include a link to a stackoverflow conversation about /dev/null in Windows. – Mike McQuaid Jul 27 '09 at 14:26
  • Thanks, I've tried putting it into startup.bar and/or wrapper.properties at the end of wrapper.cmd_line but the logs still get created :( –  Jul 27 '09 at 14:59
  • put > NUL into the log locations as you said, made the mistake of just doingt cmd_line previously, thanks very much for your help –  Jul 27 '09 at 15:08