Skip to content

Commit 6ae42a3

Browse files
Update for usage server and ssvm, and move tuning to dir
1 parent ba20dd1 commit 6ae42a3

File tree

4 files changed

+58
-39
lines changed

4 files changed

+58
-39
lines changed

source/adminguide/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Tuning
176176
.. toctree::
177177
:maxdepth: 4
178178

179-
tuning
179+
tuning/tuning
180180

181181

182182
Events and Troubleshooting
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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"
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,7 @@ For more information about memory issues, see "FAQ: Memory" at `Tomcat
5757
Wiki. <http://wiki.apache.org/tomcat/FAQ/Memory>`_
5858

5959

60-
Disable Omit Stack Trace
61-
------------------------
62-
63-
The JVM, by default stops printing some stack traces in the logs. To enable printing full stack traces at all times:
64-
65-
#. Edit the cloudstack-management.service configuration file at:
66-
67-
.. code:: bash
68-
69-
/etc/default/cloudstack-management
70-
71-
#. Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable the omit stack trace flag in the JVM so that all
72-
the stack traces are always printed on the logs. This flag is enabled by default in the JVM to omit the stack traces
73-
for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not
74-
recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required.
75-
76-
.. code:: bash
77-
78-
JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow"
60+
.. include:: disable_omit_stack_trace.rst
7961

8062

8163
Set Database Buffer Pool Size

source/installguide/hypervisor/kvm.rst

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -355,25 +355,7 @@ Limit Resources For the Agent Service
355355
sudo systemctl restart cloudstack-agent
356356
357357
358-
Disable Omit Stack Trace
359-
^^^^^^^^^^^^^^^^^^^^^^^^
360-
361-
The JVM, by default stops printing some stack traces in the logs. To enable printing full stack traces at all times:
362-
363-
#. Edit the cloudstack-agent.service configuration file at:
364-
365-
.. code:: bash
366-
367-
/etc/default/cloudstack-agent
368-
369-
#. Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable the omit stack trace flag in the JVM so that all
370-
the stack traces are always printed on the logs. This flag is enabled by default in the JVM to omit the stack traces
371-
for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not
372-
recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required.
373-
374-
.. code:: bash
375-
376-
JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow"
358+
.. include:: ../../adminguide/tuning/disable_omit_stack_trace.rst
377359

378360

379361
Configure CPU model for KVM guest (Optional)

0 commit comments

Comments
 (0)