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.