Enter the following command (all on one line) to turn off tracing.
java org.apache.derby.drda.NetworkServerControl trace off [-s connection number] [-h hostname] [-p portnumber]
The tracing files are named ServerX.trace, where X is a connection number.