java.lang.OutOfMemoryError: Java heap space after upgrade 9.20-9.23,9.24

0
  hi all, After  upgraded mendix version from 9.20-9.23,9.24 , I can build and deploy success , but my application can’t start . I got error error message below. How to fix ?    2023-04-19T16:40:35.603001577+07:00 INFO: 2023-04-19T16:40:35.603131635+07:00 ## . 2023-04-19T16:40:35.603163097+07:00 ## ## ## == 2023-04-19T16:40:35.603180872+07:00 ## ## ## ## === 2023-04-19T16:40:35.603197837+07:00 /""""""""""""""""\___/ === 2023-04-19T16:40:35.603214923+07:00 ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ 2023-04-19T16:40:35.603231729+07:00 \______ o __/ 2023-04-19T16:40:35.603248907+07:00 \ \ __/ 2023-04-19T16:40:35.603374538+07:00 \____\______/ 2023-04-19T16:40:35.603408450+07:00 2023-04-19T16:40:35.603436175+07:00 __ __ _ _ _____ _ 2023-04-19T16:40:35.603465224+07:00 | \/ | | || | | __ \ | | 2023-04-19T16:40:35.603495246+07:00 | \ / |_ __ | || |_ | | | | ___ ___| | _____ _ __ 2023-04-19T16:40:35.603522327+07:00 | |\/| \ \/ / |__ _| | | | |/ _ \ / __| |/ / _ \ '__| 2023-04-19T16:40:35.603550808+07:00 | | | |> < | | | |__| | (_) | (__| < __/ | 2023-04-19T16:40:35.603581094+07:00 |_| |_/_/\_\ |_| |_____/ \___/ \___|_|\_\___|_| 2023-04-19T16:40:35.603605715+07:00 2023-04-19T16:40:35.603632439+07:00 digitalecosystems@mendix.com 2023-04-19T16:40:35.603658079+07:00 2023-04-19T16:40:35.603682547+07:00 2023-04-19T16:40:35.603712809+07:00 2023-04-19T16:40:35.603782082+07:00 INFO: Executing export_industrial_edge_config_variable... 2023-04-19T16:40:35.604330978+07:00 INFO: Adding uid to /etc/passwd 2023-04-19T16:40:37.350295316+07:00 INFO: Mendix Cloud Foundry Buildpack v4.30.14 [dadf3dc] starting... 2023-04-19T16:40:37.350377646+07:00 WARNING: CF_INSTANCE_INDEX environment variable not found, assuming cluster leader responsibility... 2023-04-19T16:40:37.392105054+07:00 /opt/mendix/buildpack/buildpack/infrastructure/database.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6. 2023-04-19T16:40:37.392203216+07:00 from cryptography.hazmat.primitives import serialization 2023-04-19T16:40:37.392240161+07:00 ERROR: Unable to fixup permissions of directory 'model' with mode 700: [Errno 1] Operation not permitted: '/opt/mendix/build/model', Ignoring. 2023-04-19T16:40:37.392333601+07:00 ERROR: Unable to fixup permissions of directory 'web' with mode 755: [Errno 1] Operation not permitted: '/opt/mendix/build/web', Ignoring. 2023-04-19T16:40:37.392482586+07:00 ERROR: Unable to fixup permissions of directory 'data' with mode 700: [Errno 1] Operation not permitted: '/opt/mendix/build/data', Ignoring. 2023-04-19T16:40:37.425704568+07:00 WARNING: External file store not configured. Files stored by the application will not persist across restarts. See https://github.com/mendix/cf-mendix-buildpack for file store configuration details. 2023-04-19T16:40:37.532298733+07:00 ERROR: Cannot get REST handlers from model: [Errno 2] No such file or directory: 'strings': 'strings' 2023-04-19T16:40:37.575440820+07:00 INFO: MENDIX-LOGGING-HEARTBEAT: Heartbeat number 1 2023-04-19T16:40:37.830208851+07:00 INFO: Using Java version: 2023-04-19T16:40:37.830327541+07:00 INFO: openjdk version "11.0.16.1" 2022-08-12 2023-04-19T16:40:37.830657772+07:00 INFO: OpenJDK Runtime Environment Temurin-11.0.16.1+1 (build 11.0.16.1+1) 2023-04-19T16:40:37.830680673+07:00 INFO: OpenJDK 64-Bit Server VM Temurin-11.0.16.1+1 (build 11.0.16.1+1, mixed mode) 2023-04-19T16:40:37.831155963+07:00 INFO: The buildpack is starting the runtime... 2023-04-19T16:40:37.834720661+07:00 INFO: Trying to start the MxRuntime... 2023-04-19T16:40:49.661970081+07:00 2023-04-19 16:40:49.638 INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet' 2023-04-19T16:40:50.268966495+07:00 2023-04-19 16:40:50.268 INFO - Logging: Logging to file: /opt/mendix/build/log/out.log, max size: 1099511627776KiB, max rotation: 10 2023-04-19T16:40:50.287020272+07:00 INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet' 2023-04-19T16:40:50.287833211+07:00 INFO - Logging: Logging to file: /opt/mendix/build/log/out.log, max size: 1099511627776KiB, max rotation: 10 2023-04-19T16:40:50.317976293+07:00 INFO - M2EE: Initializing runtime... 2023-04-19T16:40:50.331630547+07:00 INFO - Core: Mendix Runtime 9.24.0.2965 (build 9.24.0.2965). Copyright © 2003-2023 Mendix bv. All rights reserved. 2023-04-19T16:40:50.387996867+07:00 INFO - M2EE: Initialized runtime. 2023-04-19T16:40:50.388284986+07:00 INFO - M2EE: Creating Runtime server... 2023-04-19T16:40:50.466213485+07:00 INFO - M2EE: Setting MaxFormContentSize for Runtime Server to 10485760 2023-04-19T16:40:50.485936171+07:00 INFO - M2EE: Runtime server started. 2023-04-19T16:40:50.525284190+07:00 INFO - Configuration: Updating configuration... 2023-04-19T16:40:50.569167322+07:00 INFO - Configuration: updateConfiguration: ApplicationRootUrl= https://www.batratcat.com, SessionTimeout=1800000, LogMinDurationQuery=10000, com.mendix.webui.StateSizeWarningThreshold=2000 2023-04-19T16:40:50.765487800+07:00 INFO - Configuration: Configuration updated. 2023-04-19T16:40:51.197543474+07:00 INFO - Services: Adding 0 authority certificate(s) 2023-04-19T16:40:51.360018230+07:00 INFO - Metrics: Started metrics on Micrometer 2023-04-19T16:41:49.402339079+07:00 # 2023-04-19T16:41:49.402476041+07:00 # java.lang.OutOfMemoryError: Java heap space 2023-04-19T16:41:49.402518173+07:00 # -XX:OnOutOfMemoryError="kill -s USR2 8" 2023-04-19T16:41:49.402550564+07:00 # Executing /bin/sh -c "kill -s USR2 8"... 2023-04-19T16:41:49.429918788+07:00 INFO: Waiting for the application to shutdown... 2023-04-19T16:41:56.670791920+07:00 INFO - Core: Mendix Runtime is shutting down now... 2023-04-19T16:41:56.673058988+07:00 INFO - Core: Mendix Runtime is now shut down. 2023-04-19T16:41:56.676292359+07:00 CRITICAL - M2EE: Java heap space 2023-04-19T16:41:56.678311229+07:00 2023-04-19 16:41:56.675 ERROR - M2EE: An error occurred while executing action 'start'. 2023-04-19T16:41:56.680215087+07:00 com.mendix.m2ee.api.AdminException: 2023-04-19T16:41:56.680245266+07:00 at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandlerBase.service(HttpAdminHandlerBase.java:156) 2023-04-19T16:41:56.680262713+07:00 2023-04-19T16:41:56.680283168+07:00 Caused by: java.lang.OutOfMemoryError: Java heap space 2023-04-19T16:41:56.680307511+07:00 at scala.collection.immutable.Map$Map4.keysIterator(Map.scala:532) 2023-04-19T16:41:56.680328556+07:00 at scala.collection.MapOps$GenKeySet.iterator(Map.scala:195) 2023-04-19T16:41:56.680348564+07:00 at scala.collection.MapOps$GenKeySet.iterator$(Map.scala:195) 2023-04-19T16:41:56.680449784+07:00 at scala.collection.immutable.MapOps$ImmutableKeySet.iterator(Map.scala:144) 2023-04-19T16:41:56.680463080+07:00 at scala.collection.IterableOnceOps.foldLeft(IterableOnce.scala:673) 2023-04-19T16:41:56.680474255+07:00 at scala.collection.IterableOnceOps.foldLeft$(IterableOnce.scala:669) 2023-04-19T16:41:56.680484834+07:00 at scala.collection.AbstractIterable.foldLeft(Iterable.scala:933) 2023-04-19T16:41:56.680495414+07:00 at scala.collection.immutable.SetOps.diff(Set.scala:60) 2023-04-19T16:41:56.680531322+07:00 at scala.collection.immutable.SetOps.diff$(Set.scala:59) 2023-04-19T16:41:56.680542087+07:00 at scala.collection.immutable.AbstractSet.diff(Set.scala:348) 2023-04-19T16:41:56.680551819+07:00 at com.mendix.modelstorage.FillObjectState.objectDone(FillObjectState.scala:19) 2023-04-19T16:41:56.680561325+07:00 at com.mendix.modelstorage.ModelBuilder.objectDone(ModelBuilder.scala:79) 2023-04-19T16:41:56.680570975+07:00 at org.bson.BSONCallbackAdapter.doWriteEndDocument(BSONCallbackAdapter.java:66) 2023-04-19T16:41:56.680580461+07:00 at org.bson.AbstractBsonWriter.writeEndDocument(AbstractBsonWriter.java:307) 2023-04-19T16:41:56.680590181+07:00 at org.bson.AbstractBsonWriter.pipeDocument(AbstractBsonWriter.java:813) 2023-04-19T16:41:56.680599496+07:00 at org.bson.AbstractBsonWriter.pipeValue(AbstractBsonWriter.java:824) 2023-04-19T16:41:56.680608843+07:00 at org.bson.AbstractBsonWriter.pipeArray(AbstractBsonWriter.java:908) 2023-04-19T16:41:56.680618092+07:00 at org.bson.AbstractBsonWriter.pipeValue(AbstractBsonWriter.java:827) 2023-04-19T16:41:56.680627277+07:00 at org.bson.AbstractBsonWriter.pipeDocument(AbstractBsonWriter.java:804) 2023-04-19T16:41:56.680638487+07:00 at org.bson.AbstractBsonWriter.pipe(AbstractBsonWriter.java:759) 2023-04-19T16:41:56.680654748+07:00 at org.bson.BasicBSONDecoder.decode(BasicBSONDecoder.java:90) 2023-04-19T16:41:56.680675534+07:00 at org.bson.BasicBSONDecoder.decode(BasicBSONDecoder.java:97) 2023-04-19T16:41:56.680691173+07:00 at com.mendix.modelstorage.ModelLoader.$anonfun$loadModel$3(ModelLoader.scala:26) 2023-04-19T16:41:56.680707203+07:00 at com.mendix.modelstorage.ModelLoader$$Lambda$1157/0x00000001007d0040.apply$mcI$sp(Unknown Source) 2023-04-19T16:41:56.680721859+07:00 at scala.runtime.java8.JFunction0$mcI$sp.apply(JFunction0$mcI$sp.scala:17) 2023-04-19T16:41:56.680737342+07:00 at scala.util.Try$.apply(Try.scala:210) 2023-04-19T16:41:56.680756173+07:00 at com.mendix.modelstorage.ModelLoader.decodeRecursive$1(ModelLoader.scala:26) 2023-04-19T16:41:56.680770655+07:00 at com.mendix.modelstorage.ModelLoader.$anonfun$loadModel$2(ModelLoader.scala:39) 2023-04-19T16:41:56.680787636+07:00 at com.mendix.modelstorage.ModelLoader$$Lambda$1145/0x00000001007b6840.apply(Unknown Source) 2023-04-19T16:41:56.680808466+07:00 at scala.util.Using$.$anonfun$apply$1(Using.scala:261) 2023-04-19T16:41:56.680825270+07:00 at scala.util.Using$.apply(Using.scala:113) 2023-04-19T16:41:56.680840008+07:00 at com.mendix.modelstorage.ModelLoader.loadModel(ModelLoader.scala:17) 2023-04-19T16:41:56.680854480+07:00 2023-04-19T16:41:56.939999309+07:00 INFO: The application has been stopped successfully.  
asked
1 answers
1

 

fixed by  set MAX LIMIT : 3GB on secrete.

answered