MSSQL 2000 not releasing memory after use?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default MSSQL 2000 not releasing memory after use?

    I'm using MSSQL 2000 Enterprise Edition and CFMX 6.1.
    I have an enormous table of 7.7million records. I'm in the process of creating
    an archiving tool (via CF) that will remove records on a monthly basis and
    insert them into an archive table.
    The problem is when I run any query on the table, for instance select MAX(ID),
    the memory usage shown in the resource manager shoots up to around 650,000K,
    which is expected. However the problem I'm having is that once the query is
    complete sqlserver still shows that it's using 600,000+K. Why doesn't the
    server release this memory? It's causing the SQL server to run extremely slow
    even after the query is complete.

    Any ideas?

    mr. modus Guest

  2. Similar Questions and Discussions

    1. Acrobat not releasing files
      Hi I have a program written in .net 2.0 that uses the SDK 8.1 to open a Acrobat pdf file and print it. On my instalation on Acrobat 8 it works....
    2. Im battling to setup a Datasource to MSSQL 2000 personaledition
      HI All, Im settting up a local server at home... The server is Win2k Server.. Ive installed CFML 7,0,0,91690.. And now im battling to setup a...
    3. IDS 7.31 memory limits in Windows 2000
      Hello! I have one IDS 7.31 instance running in a Xeon bi-processor with Windows 2000 Server installed (for test purposes). The databases are...
    4. Why is Sun releasing mozilla 1.2.1 now?
      Fredrik Lundholm <dol@ce.chalmers.se> wrote: This FAQ must be out of date or something. One of the three Mozilla 1.4/sparc packages...
    5. Does XP handle memory differently than windows 2000?
      memory to below website, click "M" and scroll down to Memory Tweaks for more info: http://www.kellys-korner-xp.com/xp_abc.htm
  3. #2

    Default Re: MSSQL 2000 not releasing memory after use?

    The server doesn't release the memory because it keeps the records in the
    cache, that way if you rerun the query it will be much faster
    This is normal behavior.
    Do you have an index on the ID column? 650MB seems a little steep on a table
    of 7.7 million records
    Check out the execution plan and make sure that you get an index seek or scan
    instead of a table scan


    SQLMenace Guest

  4. #3

    Default Re: MSSQL 2000 not releasing memory after use?

    Is there anyway inside the cfquery tag that I can tell SQL server not to cache
    the query?
    The queries I'm running will not be run multiple times so there is no need to
    cache them.
    ID is my Primary Key.

    mr. modus Guest

  5. #4

    Default Re: MSSQL 2000 not releasing memory after use?

    Which service is grabbing the memory? Is it CF? SQL Server normally reserves
    all the memory it can at startup, so I doubt you're seeing a "spike" in SQL's
    memory usage.

    The best way to design this function is to put it in SQL. If the process is
    truly "monthly", you can just run a scheduled job against a stored procedure.
    If some interaction is needed for parameters, you can still offload the heavy
    lifting to SQL, using a one-time scheduled job.

    Let me know if you're interested in either of these options. IMHO, monkeying
    around with 7.7 million records in the CF mem space is just asking for trouble.

    philh Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139