<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAP Cloud Platform - Web IDE - memory allocation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251873#M4588166</link>
    <description>&lt;P&gt;In case you deploy using MTA.yaml check the memory property of your java module&lt;/P&gt;</description>
    <pubDate>Sun, 27 Sep 2020 07:59:08 GMT</pubDate>
    <dc:creator>yuval_morad</dc:creator>
    <dc:date>2020-09-27T07:59:08Z</dc:date>
    <item>
      <title>SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaq-p/12251872</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
  &lt;P&gt;I'm having a difficulty to allocate less memory for my application.&lt;/P&gt;
  &lt;P&gt;We started to write APIs with SAP Cloud WEB IDE.&lt;/P&gt;
  &lt;P&gt;I have 3 java applications that are already running on the server.&lt;/P&gt;
  &lt;P&gt;For some reason, each java application has lower bound of 600+ MB for publishing although the application is using only 100-200MB.&lt;/P&gt;
  &lt;P&gt;Currently we have 2GB of memory allowed.&lt;/P&gt;
  &lt;P&gt;How do we change the lower bound to be less than 600+ MB?&lt;/P&gt;
  &lt;P&gt;Are there any settings in the cloud platform cockpit for it?&lt;/P&gt;
  &lt;P&gt;Thank you,&lt;/P&gt;
  &lt;P&gt;Dor Alon&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 06:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaq-p/12251872</guid>
      <dc:creator>yaniv200976</dc:creator>
      <dc:date>2020-09-27T06:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251873#M4588166</link>
      <description>&lt;P&gt;In case you deploy using MTA.yaml check the memory property of your java module&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 07:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251873#M4588166</guid>
      <dc:creator>yuval_morad</dc:creator>
      <dc:date>2020-09-27T07:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251874#M4588167</link>
      <description>&lt;P&gt;I did,&lt;/P&gt;&lt;P&gt;But when I changed the "memory run-time" to 256mb it sends an error.&lt;/P&gt;&lt;P&gt;because of some calculations, The minimum for an application is 628mb.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 08:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251874#M4588167</guid>
      <dc:creator>yaniv200976</dc:creator>
      <dc:date>2020-09-27T08:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251875#M4588168</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;yaniv200976&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Java memory parameters can be tweaked in the JAVA_OPTS JBP options on the Java Buildpack.&lt;BR /&gt;Please check:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/505a71ae53e84c7a972bb6c34b4316fb.html" target="test_blank"&gt;https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/505a71ae53e84c7a972bb6c34b4316fb.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you really need 600MB to start your application, there is really no way to share this amount of memory with other applications. Suppose you have your app stopped and other Java Applications running, taking 1.5GB os the available memory. If you try to start your application, since it requires 600MB it will not be able to start. So you would have to stop another app to start yours and later start the app you have stopped previously - which makes no sense at all. Therefore, your application will use 600MB of the available memory in your space. &lt;/P&gt;&lt;P&gt;Try to understand why your application requires 600MB to boot up. Is there another way to prevent this from happening?  &lt;/P&gt;&lt;P&gt;If you are still having issues, could you please share your mta.yaml file?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251875#M4588168</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2020-09-28T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251876#M4588169</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My application costs maximum 100m runtime memory.&lt;/P&gt;&lt;P&gt;I tried to change the memory calculation without any success.&lt;/P&gt;&lt;P&gt;Here is the print-screen of the error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1847739-untitled.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dor Alon&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251876#M4588169</guid>
      <dc:creator>yaniv200976</dc:creator>
      <dc:date>2020-09-29T10:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251877#M4588170</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;yaniv200976&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;
Did you setup the JBP_CONFIG_JAVA_OPTS  in your Java module?
Are you able to run the same application with with SAP_JVM locally while setting it with memory parameters to fit the JVM into 100MB?&lt;/P&gt;&lt;P&gt;
I don't see that in your MTA.yaml and it seems to me that the Memory Calculator V2 is enabled and its settings are the defaults. &lt;/P&gt;&lt;P&gt;Could you please share the java module's settings related to JBP configuration. 
It should look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;modules:
  - name: memory
    type: java
    path: target/memory.jar
    parameters:
      disk-quota: 256M
      memory: 256M
    properties:
      JBP_CONFIG_JAVA_OPTS: "[java_opts: '-Xmn10M -Xms30M -Xmx100M -Xss3M ']"&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please note, that You should figure out any of the -X parameters on your on using a local JVM so it can safely occupy at most 256M (probably using a profiler - like the one you'll find in SAPJVM). &lt;BR /&gt;&lt;BR /&gt;You say that you application doesn't use more than 100MB - and I believe you. However, you need to also account the memory required by the JVM. So, when you tweak the -X parameters, you have to make sure it fit all into a JVM of size 100MB.&lt;/P&gt;&lt;P&gt;I've done so using the same parameters on a simple Hello World based application using Jetty. &lt;/P&gt;&lt;P&gt;Best regard,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251877#M4588170</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2020-09-30T08:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud Platform - Web IDE - memory allocation</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251878#M4588171</link>
      <description>&lt;P&gt;Dear Ivan,&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;The problem was the way that i wrote the settings for the memory calculation.&lt;/P&gt;&lt;P&gt;By writing the following lines:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;properties:
      JBP_CONFIG_JAVA_OPTS:"[java_opts: '-Xmn10M -Xms30M -Xmx100M -Xss3M ']"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Fixed my error.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dor Alon&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-platform-web-ide-memory-allocation/qaa-p/12251878#M4588171</guid>
      <dc:creator>yaniv200976</dc:creator>
      <dc:date>2020-09-30T17:07:25Z</dc:date>
    </item>
  </channel>
</rss>

