The JVM, by default stops printing some stack traces in the logs. To enable printing full stack traces at all times:
Edit the following configuration file for the respective service to disable there and restart it:
For cloudstack-management.service in the Management Server:
/etc/default/cloudstack-management
For cloudstack-usage.service in the Usage Server:
/etc/default/cloudstack-usage
For cloudstack-agent.service in the KVM Host:
/etc/default/cloudstack-agent
For cloud.service in the SSVM:
/usr/local/cloud/systemvm/_run.sh
Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable the omit stack trace flag in the JVM so that all the stack traces are always printed on the logs. This flag is enabled by default in the JVM to omit the stack traces for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required.
JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow"