mirror of https://github.com/apache/nifi.git
NIFI-1374 updated admin guide to provide advice for permgen and codecache
Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
parent
035562bb33
commit
684f48ff92
|
@ -35,7 +35,11 @@ Apache NiFi can run on something as simple as a laptop, but it can also be clust
|
|||
** Google Chrome 36+
|
||||
** Safari 8
|
||||
|
||||
Note that there is a known issue in Internet Explorer (IE) 10 and 11 that can cause problems when moving items on the NiFi graph. If you encounter this problem, we suggest using a browser other than IE. This known issue is described here: https://connect.microsoft.com/IE/Feedback/Details/1050422.
|
||||
**Note** There is a known issue in Internet Explorer (IE) 10 and 11 that can cause problems when moving items on the NiFi graph. If you encounter this problem, we suggest using a browser other than IE. This known issue is described here: https://connect.microsoft.com/IE/Feedback/Details/1050422.
|
||||
|
||||
**Note** Java 7 default perm gen sizing can result in 'out of memory errors' due to the amount of classes loaded by NiFi. See the <<bootstrap_properties>> section for more information.
|
||||
|
||||
**Note** Under sustained and extremely high throughput the CodeCache settings may need to be tuned to avoid sudden performance loss. See the <<bootstrap_properties>> section for more information.
|
||||
|
||||
How to install and start NiFi
|
||||
-----------------------------
|
||||
|
@ -500,7 +504,25 @@ take effect only after NiFi has been stopped and restarted.
|
|||
configured recipients if the bootstrap determines that NiFi has unexpectedly died.
|
||||
|====
|
||||
|
||||
*Java 7 PermGen Sizing*
|
||||
The provided _bootstrap.conf_ file may include a line such as
|
||||
....
|
||||
#java.arg.11=-XX:PermSize=128M
|
||||
#java.arg.12=-XX:MaxPermSize=128M
|
||||
....
|
||||
If running in Java 7 it is recommended to uncomment those lines to ensure the PermGen size and maximum can be larger than is available by default. This is important because NiFi
|
||||
can load a significant number of classes which will result in OutOfMemoryError due to PermGen being full. You might choose a value larger than 128MB as well.
|
||||
|
||||
*Java 7 and 8 handling of codecache*
|
||||
It has been observed in both Java 7 and Java 8 runtime environments that performance can suddenly drop by more than an order of magnitude after days or weeks of otherwise ideal
|
||||
behavior. This has only been observed under extremely high load and in cases where considerable Just in Time (JIT) compilation occurs. The core problem is the CodeCache becomes
|
||||
full and is seemingly not properly garbage collected or grown. When this occurs JIT seems to no longer occur or involve considerable delays and performance drops.
|
||||
This is easily overcome by ensuring the following lines are available in the _boostrap.conf_. By default they are there but commented. Uncomment them for maximum sustained throughput.
|
||||
....
|
||||
#java.arg.7=-XX:ReservedCodeCacheSize=256m
|
||||
#java.arg.8=-XX:CodeCacheFlushingMinimumFreeSpace=10m
|
||||
#java.arg.9=-XX:+UseCodeCacheFlushing
|
||||
....
|
||||
|
||||
[[notification_services]]
|
||||
Notification Services
|
||||
|
@ -877,57 +899,3 @@ Only configure these properties for the cluster manager.
|
|||
|
||||
|
||||
NOTE: *For Upgrading* - Take care when configuring the properties above that are marked with an asterisk (*). To make the upgrade process easier, it is advisable to change the default configurations to locations outside the main root installation directory. In this way, these items can remain in their configured location through an upgrade, and NiFi can find all the repositories and configuration files and pick up where it left off as soon as the old version is stopped and the new version is started. Furthermore, the administrator may reuse this _nifi.properties_ file and any other configuration files without having to re-configure them each time an upgrade takes place. As previously noted, it is important to check for any changes in the _nifi.properties_ file of the new version when upgrading and make sure they are reflected in the _nifi.properties_ file you use.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue