<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:10:20 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-1032] Error setting max JVM heap size based on cgroup limits in Java-based FOLIO docker containers </title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-1032</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Java-based docker images using the fabric8-based base images log the following error in their logs: &lt;/p&gt;

&lt;p&gt;cat: /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes: No such file or directory&lt;br/&gt;
/usr/verticles/container-limits: line 46: [: 9223372036854771712: unary operator expected&lt;/p&gt;

&lt;p&gt;Because of this error, containers are unable to properly determine the proper amount of RAM to allocate to the JVM when the container is configured with memory limits at runtime.   &lt;/p&gt;</description>
                <environment></environment>
        <key id="80506">FOLIO-1032</key>
            <summary>Error setting max JVM heap size based on cgroup limits in Java-based FOLIO docker containers </summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Duplicate</resolution>
                                                        <assignee accountid="5f9abc1eb45b2e007453f423">John Malconian</assignee>
                                                                <reporter accountid="5f9abc1eb45b2e007453f423">John Malconian</reporter>
                                    <labels>
                            <label>ci</label>
                    </labels>
                <created>Tue, 16 Jan 2018 20:48:13 +0000</created>
                <updated>Fri, 6 Sep 2019 17:46:50 +0000</updated>
                            <resolved>Fri, 6 Sep 2019 17:46:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                    <timespent seconds="3600">1 hour</timespent>
                                <comments>
                                                            <comment id="189451" author="5f9abc1eb45b2e007453f423" created="Tue, 16 Jan 2018 20:54:03 +0000"  >&lt;p&gt;It appears that /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes does not exist on Debian-based host systems.  Will need to investigate other options. Possibly an experimental java option called -XX:+UseCGroupMemoryLimitsforHeap. &lt;/p&gt;</comment>
                                                            <comment id="189453" author="5f9abc1eb45b2e007453f423" created="Tue, 16 Jan 2018 21:04:37 +0000"  >&lt;p&gt;ubuntu@ip-10-36-1-185:/proc/sys/kernel$ sudo docker info&lt;br/&gt;
Containers: 20&lt;br/&gt;
 Running: 20&lt;br/&gt;
 Paused: 0&lt;br/&gt;
 Stopped: 0&lt;br/&gt;
Images: 20&lt;br/&gt;
Server Version: 17.05.0-ce&lt;br/&gt;
Storage Driver: aufs&lt;br/&gt;
 Root Dir: /var/lib/docker/aufs&lt;br/&gt;
 Backing Filesystem: extfs&lt;br/&gt;
 Dirs: 125&lt;br/&gt;
 Dirperm1 Supported: true&lt;br/&gt;
Logging Driver: json-file&lt;br/&gt;
Cgroup Driver: cgroupfs&lt;br/&gt;
Plugins: &lt;br/&gt;
 Volume: local&lt;br/&gt;
 Network: bridge host macvlan null overlay&lt;br/&gt;
Swarm: inactive&lt;br/&gt;
Runtimes: runc&lt;br/&gt;
Default Runtime: runc&lt;br/&gt;
Init Binary: docker-init&lt;br/&gt;
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145&lt;br/&gt;
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228&lt;br/&gt;
init version: 949e6fa&lt;br/&gt;
Security Options:&lt;br/&gt;
 apparmor&lt;br/&gt;
 seccomp&lt;br/&gt;
  Profile: default&lt;br/&gt;
Kernel Version: 4.4.0-1047-aws&lt;br/&gt;
Operating System: Ubuntu 16.04.3 LTS&lt;br/&gt;
OSType: linux&lt;br/&gt;
Architecture: x86_64&lt;br/&gt;
CPUs: 4&lt;br/&gt;
Total Memory: 15.67GiB&lt;br/&gt;
Name: ip-10-36-1-185&lt;br/&gt;
ID: TVAK:DYFP:YM2U:I43A:EBNV:TTTP:CPGX:E56N:VYNB:WLIU:Q7RH:RG5C&lt;br/&gt;
Docker Root Dir: /var/lib/docker&lt;br/&gt;
Debug Mode (client): false&lt;br/&gt;
Debug Mode (server): false&lt;br/&gt;
Registry: &lt;a href=&quot;https://index.docker.io/v1/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://index.docker.io/v1/&lt;/a&gt;&lt;br/&gt;
Experimental: false&lt;br/&gt;
Insecure Registries:&lt;br/&gt;
 127.0.0.0/8&lt;br/&gt;
Live Restore Enabled: false&lt;/p&gt;

&lt;p&gt;WARNING: No swap limit support&lt;/p&gt;</comment>
                                                            <comment id="189456" author="5f9abc1eb45b2e007453f423" created="Tue, 16 Jan 2018 21:26:47 +0000"  >&lt;p&gt;Docker spells out the issue with swap limit support and how to enable it in Debian-based distributions pretty clearly here.  &lt;br/&gt;
&lt;a href=&quot;https://docs.docker.com/engine/installation/linux/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.docker.com/engine/installation/linux/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our tests systems contain 0 swap.  I wonder if enabling swap on these systems is detrimental anyway.   If we don&apos;t need to swap, we could just use &apos; /sys/fs/cgroup/memory/memory.limit_in_bytes instead.    &lt;/p&gt;

</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="81114">FOLIO-1729</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzy7hz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>