|
| 1 | +.. Licensed to the Apache Software Foundation (ASF) under one |
| 2 | + or more contributor license agreements. See the NOTICE file |
| 3 | + distributed with this work for additional information# |
| 4 | + regarding copyright ownership. The ASF licenses this file |
| 5 | + to you under the Apache License, Version 2.0 (the |
| 6 | + "License"); you may not use this file except in compliance |
| 7 | + with the License. You may obtain a copy of the License at |
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + Unless required by applicable law or agreed to in writing, |
| 10 | + software distributed under the License is distributed on an |
| 11 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 12 | + KIND, either express or implied. See the License for the |
| 13 | + specific language governing permissions and limitations |
| 14 | + under the License. |
| 15 | + |
| 16 | +
|
| 17 | +Disable Omit Stack Trace |
| 18 | +------------------------ |
| 19 | + |
| 20 | +The JVM, by default stops printing some stack traces in the logs. To enable printing full stack traces at all times: |
| 21 | + |
| 22 | +#. Edit the following configuration file for the respective service to disable there and restart it: |
| 23 | + |
| 24 | + - For cloudstack-management.service in the Management Server: |
| 25 | + |
| 26 | + .. code:: bash |
| 27 | +
|
| 28 | + /etc/default/cloudstack-management |
| 29 | +
|
| 30 | + - For cloudstack-usage.service in the Usage Server: |
| 31 | + |
| 32 | + .. code:: bash |
| 33 | +
|
| 34 | + /etc/default/cloudstack-usage |
| 35 | +
|
| 36 | + - For cloudstack-agent.service in the KVM Host: |
| 37 | + |
| 38 | + .. code:: bash |
| 39 | +
|
| 40 | + /etc/default/cloudstack-agent |
| 41 | +
|
| 42 | + - For cloud.service in the SSVM: |
| 43 | + |
| 44 | + .. code:: bash |
| 45 | +
|
| 46 | + /usr/local/cloud/systemvm/_run.sh |
| 47 | +
|
| 48 | +#. Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable the omit stack trace flag in the JVM so that all |
| 49 | + the stack traces are always printed on the logs. This flag is enabled by default in the JVM to omit the stack traces |
| 50 | + for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not |
| 51 | + recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required. |
| 52 | + |
| 53 | + .. code:: bash |
| 54 | +
|
| 55 | + JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow" |
0 commit comments