You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2022/03/13 03:18:49 UTC

[GitHub] [incubator-heron] thinker0 commented on a change in pull request #3789: Remove fixed young generation heap space of instance

thinker0 commented on a change in pull request #3789:
URL: https://github.com/apache/incubator-heron/pull/3789#discussion_r825379781



##########
File path: heron/executor/src/python/heron_executor.py
##########
@@ -610,11 +610,20 @@ def _get_jvm_instance_options(self, instance_id, component_name, remote_debugger
             java_version.startswith("1.6") or \
             java_version.startswith("1.5"):
       java_metasize_param = 'PermSize'
+    xmn_param = '-Xmn%dM' % xmn_size
+    if self._get_java_major_version() >= 11:
+        # For Java 11 and above.
+        # The Xmx value is 25% of the available memory with a maximum of 25 GB.

Review comment:
       Want to delete -Xmn.
   
   If there is this setting, YoungHeap area is too limited, so if -Xmx4g, only 2g is used.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@heron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org