dmctl -s <domain> exec stacktrace
This command will write useful messaging debug including environmental and thread information to the logfile for the running Smarts domain.