views:

622

answers:

1

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

+1  A: 

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.

Mike McQuaid
Thats the problem this is on windows 2003 server :(
I've updated my answer to include a link to a stackoverflow conversation about /dev/null in Windows.
Mike McQuaid
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 :(
put > NUL into the log locations as you said, made the mistake of just doingt cmd_line previously, thanks very much for your help
No problem, glad it worked.
Mike McQuaid