<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:31 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 append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-108] ByteEncoder and ByteDecoder allocate 8+M buffer each</title>
                <link>https://jira.mongodb.org/browse/JAVA-108</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;ByteEncoder and ByteDecoder allocate 8+M buffer each which means 16+M for each connection.&lt;/p&gt;

&lt;p&gt;This means we need to increase the MaxDirectMemorySize quite significantly to be able to create a decent number of connections to perform well under many concurrent requests.&lt;/p&gt;

&lt;p&gt;While I can understand why this has been done, it would be good to be able to at least configure the MAX_OBJECT_SIZE for our application, as we&apos;ll only ever be passing around documents &amp;lt; 1M.&lt;/p&gt;

&lt;p&gt;Alternatively, could the encoder and decoder stream the requests using a much smaller buffer.&lt;/p&gt;

&lt;p&gt;Am happy to look at creating a patch depending upon preferred solution.&lt;/p&gt;</description>
                <environment>osx, linux</environment>
        <key id="11815">JAVA-108</key>
            <summary>ByteEncoder and ByteDecoder allocate 8+M buffer each</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/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="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="thesmith">Ben Smith</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Apr 2010 06:57:13 +0000</created>
                <updated>Fri, 29 Oct 2010 02:49:58 +0000</updated>
                            <resolved>Tue, 18 May 2010 10:14:13 +0000</resolved>
                                    <version>1.4</version>
                                    <fixVersion>2.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="14307" author="eliot" created="Tue, 18 May 2010 10:13:59 +0000"  >&lt;p&gt;no more large allocations&lt;/p&gt;</comment>
                            <comment id="13763" author="thesmith" created="Thu, 22 Apr 2010 06:43:36 +0000"  >&lt;p&gt;Yeah, I may be wrong about that, but that&apos;s the behaviour we were seeing. I&apos;ll see about recreating the test harness.&lt;/p&gt;</comment>
                            <comment id="13737" author="eliot" created="Wed, 21 Apr 2010 10:26:50 +0000"  >&lt;p&gt;Why do you think they are 8M each?  should be 4M each for a total of 8.&lt;/p&gt;

&lt;p&gt;We could make the Encoder smarter, but the decoder should stay as is.&lt;br/&gt;
Its shown to be much better for most apps this way, as the java driver is definitely a bit enterprise focused.&lt;/p&gt;

&lt;p&gt;We could make it use about 5M / connection pretty easily if that would help, but lets first confirm if its 8 or 16 per pair.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhd6n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14936</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>