<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:11 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>[SERVER-6606] How to reclaim or purge the FileSize of a collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-6606</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a database with only a collection. But FileSize of the UserDb db is huge, and there are lots of files on linux filesytem and disk&apos; util% is high. How to reclaim or purge it.&lt;/p&gt;

&lt;p&gt;PRIMARY&amp;gt; show tables&lt;br/&gt;
loginStatus&lt;br/&gt;
system.indexes&lt;br/&gt;
PRIMARY&amp;gt; db.loginStatus.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;UserDb.loginStatus&quot;,&lt;br/&gt;
        &quot;count&quot; : 57737693,&lt;br/&gt;
        &quot;size&quot; : 8290810936,&lt;br/&gt;
        &quot;avgObjSize&quot; : 143.59442688505064,&lt;br/&gt;
        &quot;storageSize&quot; : 35528597328,&lt;br/&gt;
        &quot;numExtents&quot; : 47,&lt;br/&gt;
        &quot;nindexes&quot; : 4,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 2146426864,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 1,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 16614400544,&lt;br/&gt;
        &quot;indexSizes&quot; : &lt;/p&gt;
{
                &quot;_id_&quot; : 1873489520,
                &quot;Time_1_SoftwareVer_1_Resource_1&quot; : 3683884848,
                &quot;UserId_1&quot; : 5463791872,
                &quot;Time_1_UserId_1&quot; : 5593234304
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
PRIMARY&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;db&quot; : &quot;UserDb&quot;,&lt;br/&gt;
        &quot;collections&quot; : 3,&lt;br/&gt;
        &quot;objects&quot; : 58491118,&lt;br/&gt;
        &quot;avgObjSize&quot; : 143.59493302897715,&lt;br/&gt;
        &quot;dataSize&quot; : 8399028172,&lt;br/&gt;
        &quot;storageSize&quot; : 35528613712,&lt;br/&gt;
        &quot;numExtents&quot; : 49,&lt;br/&gt;
        &quot;indexes&quot; : 4,&lt;br/&gt;
        &quot;indexSize&quot; : 16834547520,&lt;br/&gt;
        &quot;fileSize&quot; : 102962823168,&lt;br/&gt;
        &quot;nsSizeMB&quot; : 16,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;ls /data/mongodb/data/UserDb/&lt;br/&gt;
_tmp       UserDb.13  UserDb.19  UserDb.24  UserDb.3   UserDb.35  UserDb.40  UserDb.46  UserDb.51&lt;br/&gt;
UserDb.0   UserDb.14  UserDb.2   UserDb.25  UserDb.30  UserDb.36  UserDb.41  UserDb.47  UserDb.6&lt;br/&gt;
UserDb.1   UserDb.15  UserDb.20  UserDb.26  UserDb.31  UserDb.37  UserDb.42  UserDb.48  UserDb.7&lt;br/&gt;
UserDb.10  UserDb.16  UserDb.21  UserDb.27  UserDb.32  UserDb.38  UserDb.43  UserDb.49  UserDb.8&lt;br/&gt;
UserDb.11  UserDb.17  UserDb.22  UserDb.28  UserDb.33  UserDb.39  UserDb.44  UserDb.5   UserDb.9&lt;br/&gt;
UserDb.12  UserDb.18  UserDb.23  UserDb.29  UserDb.34  UserDb.4   UserDb.45  UserDb.50  UserDb.ns&lt;/p&gt;</description>
                <environment></environment>
        <key id="45449">SERVER-6606</key>
            <summary>How to reclaim or purge the FileSize of a collection</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="william.zola@10gen.com">William Zola</assignee>
                                    <reporter username="popgo">Jianfeng Xu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Jul 2012 15:12:39 +0000</created>
                <updated>Wed, 15 Aug 2012 14:24:20 +0000</updated>
                            <resolved>Fri, 27 Jul 2012 16:07:59 +0000</resolved>
                                    <version>2.0.6</version>
                                                    <component>Performance</component>
                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="148149" author="william.zola@10gen.com" created="Fri, 27 Jul 2012 16:07:30 +0000"  >&lt;p&gt;Hi Jianfeng!&lt;/p&gt;

&lt;p&gt;I look forward to seeing you in Stack Overflow.  We do not use a mailing list because Google Groups provides archiving and the ability to search for old answers, which a mailing list does not provide.&lt;/p&gt;

&lt;p&gt;Have a great day!&lt;/p&gt;

&lt;p&gt; -William &lt;/p&gt;</comment>
                            <comment id="147925" author="popgo" created="Fri, 27 Jul 2012 00:58:01 +0000"  >&lt;p&gt;Thanks for your advices!&lt;br/&gt;
In China, the Google Group is blocked and most of the time it cant be accessed. So i will try to use the MongoDB section of Stack Overflow to slove questions.&lt;/p&gt;

&lt;p&gt;Why not to use a mail list for MongoDB community?&lt;/p&gt;</comment>
                            <comment id="147630" author="william.zola@10gen.com" created="Thu, 26 Jul 2012 15:53:19 +0000"  >&lt;p&gt;Hi Jianfeng!&lt;/p&gt;

&lt;p&gt;Thank you for submitting this issue.  Please be aware that if you have a question about your MongoDB system, the normal procedure is to submit a question in the MongoDB Google Group or in the MongoDB section of Stack Overflow.  Filing a SERVER ticket in our Jira system is intended for people who have found a reproducible bug in MongoDB, or who wish to file an Enhancement Request for MongoDB. &lt;/p&gt;

&lt;p&gt;The output you have submitted suggests that there is fragmentation in your MongoDB data files.  You will need to use the &apos;repair&apos; facility to free up that space.&lt;/p&gt;

&lt;p&gt;Please consult the documentation in &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Excessive+Disk+Space#ExcessiveDiskSpace-RecoveringDeletedSpace&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Excessive+Disk+Space#ExcessiveDiskSpace-RecoveringDeletedSpace&lt;/a&gt; for instructions on how to reclaim this disk space.&lt;/p&gt;

&lt;p&gt;Please let me know if you have further issues.  Have a great day!&lt;/p&gt;

&lt;p&gt; -William &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Jul 2012 15:18:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 29 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 29 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>popgo</customfieldvalue>
            <customfieldvalue>william.zola@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrntvb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgnb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10731</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht07lz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>