Memory Manager - Connection Memory keeps increasing

I have a SQL Server 2008 R2 SP2 STD with SQL and SSAS
running on 16 GB memory and Win 2008 R2 64 BIT, at the beginning, the Memory
Manager -> Database Memory takes most of the SQL used memory, but the Memory
Manager -> Connection Memory counter keeps increasing until it consumes
almost all memory after about a week. I have to restart SQL server to release
the memory used by Connection Memory.
Is there a way to release the
Connection Memory? Or how to know which connections are using all the
memory?
Thanks in advance.

Hi,
You can use sys.dm_exec_sessions view to check the connection and current requests of the program and login name.
For more information:
sys.dm_exec_sessions (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms176013.aspx
Thanks.
Tracy Cai
TechNet Community Support

Similar Messages

  • Why is Uncategorized Used Memory keeps increasing???

    Hello, I'm making an Android game with Flash pro cc. And now I'm testing performance using the Scout. So I ran my game with Flash Pro cc's Control - Test Movie - Air Debug Launcher. And I played about 5 levels of my game, but the number of "Uncategorized" under Used Memory keeps increasing. Others such as Action Script Objects, Bitmap, ByteArrays under Used Memory decreases over time which I think it means it's garbage collecting. Is it normal to have Uncategorized keep increasing??? If no, how can I fix it so that it decreases??

    http://www.adobe.com/devnet/scout/articles/scout-memory-profiling.html
    From the link:
    Uncategorized – other memory that Flash Player is using, but doesn't yet track. This includes sound and video buffers, XML data, and memory used by Stage3D, as well as numerous small data structures that are used internally by Flash Player. We plan to add additional categories in future versions of Scout.
    In my experience, it's inconsistent and can at times consume a lot, while other times not so much. It's a nuiscance category for sure. Don't count on being able to reduce it will a silver bullet.

  • Memory keep increasing

    i'm using windows 2k to run my application.
    i can monitor the usage of memory. what i found from my application is the memory keep increase every time i execute i function.
    and util 1 time the memory maximum usage and my java application 'hang'.
    and need to restart. only the meory release and refresh and will goes the same.
    is there anybody out there can help me here. pls help i'm in critical situation. my company is scolding me.
    tank you very much.

    java -verbose:gc
    Will help to keep track of your gc's, by calling themself, I assume tim ment recursive, are you using a recursive methid, that is:
    void recursive() { recursive() };(bad example I know, but I'm lazy), this would eat memory.

  • Centos RES memory keep increasing and crossed initial and maximum memory fo

    We have a java application running on Centos 6.4 what we notice is that the RES is around 378m which is more then the allocated max that is 256m. Does this signify that we the application is leaking? So far there is no GC happening yet but many YGC? What does this indicate?

    We have a Java application running on Centos 6.4 what we notice is that the RES is around 378M which is more than the allocated max that is 256M. Does this signify that the application is leaking? So far there is no GC happening yet but many YGC? What does this indicate?I don't do Java, but you do have two separate allocations to control: the heap, and the stack. Most JVM have command line parameters to control these.
    Leaking? Have your application developers become familiar with ValGrind; it's a good tool for finding leaks.

  • Why handle count keeps increasing with active database connection?

    Hi,
    I have an application in which windows handle count keeps increasing..I did not find any reason why this is happening? could you please help me out? below is the code:
    I have also tried to close the database connection but not work.
    using System;
    using System.IO;
    using System.Data.Common;
    using System.Windows.Forms;
    using System.Threading;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    namespace SampleAppWithDbConnection
        class Program
            private static SqlConnection _oCon = null;
            public static SqlConnection oCon
                get
                    if (_oCon == null)
                        _oCon = new SqlConnection();
                    return _oCon;
                set
                    _oCon = value;
            public static int gIntervalo = 1000;
            [STAThread]
            public static void Main(string[] args)
                var gStrCon = ConfigurationManager.ConnectionStrings["Sql-ConnString-Token"].ToString();
                fConectaBase(oCon, gStrCon);
                fProcessa();
            private static void fProcessa()
                try
                    do
                        Thread.Sleep(gIntervalo);
                    while (true);
                catch (Exception)
            internal static bool fConectaBase(SqlConnection pCon, string pConnectionString = "")
                if (pCon.State != ConnectionState.Closed)
                    pCon.Close();
                pCon.ConnectionString = (pConnectionString == "") ? pCon.ConnectionString : pConnectionString;
                pCon.Open();
                return true;

    Hello Pramod,
    >>I have an application in which windows handle count keeps increasing
    If the windows handle(I assume you mean the object handles in Taks Manager bar) keeps increasing, it should means that the project keeps allocating new objects and does not close/dispose them. I notice that you are using ADO.NET API, I am wondering how you
    manage these connections, do you close/dispose the connection immediately after using them? If not, please do it and it is recommended.
    Please check if you call method to close/dispose connections in a finalize method, if so, this is not recommended since in a finalize method, these connections object would still keep alive and does not return to the connection pool, and for new connection
    request, application might increase more connection number to meet the request.
    You could make a test to call GC.Collect() to test if there is a memory leak, if it has, you could check this
    article, or it could be also a handle leak, this
    blog might be helpful for it.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a 5th Gen iPod Touch. I went in my messages to save a video in my camera roll. The video is not in my camera roll but my memory keeps on going down and I don not want to restore my iPod. Please help me

    I have a 5th Gen iPod Touch. I went in iMessage to save videos that were sent to me in my camera roll. The videos do not appear in my camera roll but my memory keeps on going down. I do not know how to solve the problem. I do not want to restore my iPod but I want to get my memory back. Please Help ME

    Connect the iPod to your computer and look at the storage used by the various categories as shown in the colored bargarph in iTunes.
    Come back with the results.
    An "other" larger tha about 1 1/2 usually indicates that the "other" includes corrupted files.
    First try:
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • Sql memory usage increase each time win app runs

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    I restart SQL Server 2012. Only my win app uses SQL server.
    First run of winapp.
    start memory usage : 211.800 KB
    close memory usage: 528.136 KB
    Second run of xaf app.
    start memory usage : 528.136 KB
    close memory usage: 996.844 KB
    Third run of xaf app
    start memory usage : 996.844 KB
    close memory usage: 997.640 KB
    Fourth run of xaf app
    start memory usage : 997.640 KB
    close memory usage: 1.104.864 KB

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    Yes, it is perfectly normal for SQL Server to acquire and hold onto large amounts of memory indefinitely.  This memory improves performance by avoiding disk I/O, query plan compilation and costly memory management. 
    On a dedicated SQL Server you should usually let SQL Server dynamically manage memory.  It will release memory if it detects memory pressure.  But if you often run other applications on the server than need significant amounts of memory (e.g. IIS,
    application services), you may want to set max server memory as suggested.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Solaris process memory usage increase but not forever

    On Solaris 10 I have a multithreaded process with a strange behaviour. It manages complicated C++ structures (RWTVal or RWPtr). These structures are built from data stored in a database (using Pro*C). Each hour the process looks for new informacion in database, builds new structures on memory and it frees older data. But, each time it repeats this procedure, the process memory usage increases several MB (12/16MB). Process's memory usage starts from 100M until near 1,4G. Just to this point, it seems the process has memory leaks. But the strange behaviour is that after this point, the process stops to continue growing up anymore. When I try to look for memory leaks (using Purify tool) the process doesn't grow up and no significant leaks were showed. Did anyone found a similar behaviour or can explain what could be happening?

    markza wrote:
    Hi, thanks for responding
    Ja, i guess thats possible, but to do it all one row by row seems ridiculous, and it'll be so time consuming and sluggish surely.  I mean, for a months worth of data (which is realistic) thats 44640 individual queries.  If push comes to shove, then I'll have to try that for sure.  
    You can see by the example that I'm saving it to a text file, in csv format.  So it needs to be a string array, a cluster won't be of much help I dont think.
    The only other way I can think of is to break it up into more manageable chunks...maybe pull each column separately in a for loop and build up a 2D array like that until the spreadsheet storing.  
    You only do 1 query, but instead of Fetching All (as the Select does) you'll use the cursor to step through the data.
    You can use Format to String or Write Spreadsheet fire with doubles.
    You can break it down to get the data day by day instead of a full month at once.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • My ipad shows capacity 13.6GB, available 0 bytes. Can I clear some items from the memory to increase the avaavailable memory?

    my ipad shows capacity 13.6 GB, available 0 bytes. Can I clear some items from the memory to increase the available memory?
    Getting message "storage almost full"

    One usually large user of storage space is photos and videos. You could import them to a computer and then delete them from the iPad: Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    You can also go to Settings > General > Usage and click on "Manage Storage" (in the Storage section, not the iCloud section) and that will show what is using the storage and may help you decide if you want to delete some apps or something else.

  • Xcelsius 2008 keeps crashing when invoking "Manage Connections" button.

    Hi,
    I am trying to evaluate Xcelsius 2008 but it keeps crashing. I hope it is not a problem with the software, but rather with my computer (although I have tried it Windows XP and Windows Vista - both fail).
    I installed Xcelsius 2008 (1.1.0.3) on Windows Vista yesterday and it was working great. I was able to make it connect to a web service that I developed and display the data.
    This morning I am having frustaring problems... Everytime I try to click on the "Manage connections" button, Xcelsius just crashes. It can be an empty model and it will crash. I put some components and then click on the button and it crashes.
    I went to the Windows event log to see if I could find anything usefull and this is what I have found:
    Faulting application Xcelsius.exe, version 1.1.0.3, time stamp 0x487c64e0, faulting module MFC80U.DLL, version 8.0.50727.1833, time stamp 0x482bc450, exception code 0xc0000005, fault offset 0x0004c655, process id 0x160c, application start time 0x01c9038b7fe324cb.
    Any help will be greatly appreciated.
    Andres
    Edited by: Andres Perez on Aug 21, 2008 3:10 PM

    Javier,
    I would like to think the problem is with the machine as well, but it has ocurred on Windows XP and Windows Vista.
    My Windows Vista is a brand new computer, with nothing but the OS (and whatever Toshiba has put in it), Office and Xcelsius.
    Right now I am building a Virtual PC machine with only Windows 2K3 and Office 2K3 installed on it. I will download all the patches and all the updates from Microsoft for it, but nothing else. I will then install Xcelsius and see if the problem persists.
    I have run Xcelsius logged as the admin and as a user and the problem happens regardles.
    Do you think it could be with the free trial version of the software? What is the version of the MFC80U.DLL you use? My version is 8.0.50727.1833
    I have been impressed with what the software can do, but I am not too impressed with the way the software works.

  • CPU/Memory Usage increases when loading SWF files in AIR.

    Hi,
    We face the below mentioned problem. Would be great if someone could help us.
    Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
    CPU/Memory usage increases drastically while moving the SWC components and loading the SWF Files.
    "Problem Description" - On executing the sample application, a window with multiple objects is shown. The loaded SWC components in flex consume too much Memory and CPU cycles. This is visible in TaskManager. On dragging one of the object, CPU  / memory usage increases drastically.
    "Steps to Reproduce" -
    Draggable window is placed at the bottom in the sample application with Text indication.
    Drag the indicated window.
    "Actual Result" - System's CPU usage increasing drastically  around 50% to 60 %.
    "Expected Result" - Drastical increase in memory\CPU should not occur.
    "Any Workarounds" - No"
    Thanks in advance.

    You can control your external swf from your main.swf in the following method:
    loadswf(clips[0]);
    function loadswf(tmp:String):void{
        passedString=tmp;
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(animPath+tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        switch(passedString){
            case clips[0]:
                if (num==1) mcExt.play();
                if (num==9) {
                   mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                    function skipfn(e:MouseEvent):void{
                        mcExt.stop();
                       mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                        gotoAndStop("help");
                if (num==mcExt.totalFrames){
                   mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
                break;

  • Space under $ORACLE_BASE/$ORACLE_HOME keeps increasing why

    I am on Oracle 10.2.0.4 on HP UNIX 11.2. I am running a program which has an infinite loop. Each loop iteration sleeps for 15 seconds, does some datbase access using jdbc…? I am noticing that space under $ORCALE_BASE keeps increasing. My program is definitely not writing any files under $ORACLE_BASE, so Oracle is creating some files, else how can I explain increase in $ORACLE_BASE. When I stop the program, space shrinks back to original, so looks like file has been deleted.
    My program could have some cursors not being closed, but this will increase the memory of Oracle shadow process and not space under $ORACLE_BASE. Are there any memory mapped files, where shared memory is being mapped to some file under $ORACLE_BASE. I am unable to find any such files using:
    Find . –mtime -1
    I see some Oracle files such as Oracle agent log, listener.log but do not see anything unusual. Can someone explain what is going on and how can I troubleshoot this problem.

    It is a java [program, it does various selects, inserts, updates; it writes its execution log under /gps/twq/db3 and
    ORACLE_BASE is /gpsg/twq/oracle
    bdf shows...
    /dev/vg03/lvtwqstage
                       8192000 6088123 1972403   76% /gpsg/twq/stage
    /dev/vg03/lvtwqoracle
                       12288000 8418465 3637466   70% /gpsg/twq/oracle
    /dev/vg03/lvtwqdb1 8192000 4752239 3225929   60% /gpsg/twq/db1
    /dev/vg03/lvtwqdb4 8192000 5435984 2583829   68% /gpsg/twq/db4
    /dev/vg03/lvtwqexpbkup
                       72466432 22210280 47115159   32% /gpsg/twq/expbkup
    /dev/vg04/lvtwqdb2 66322432 26020448 37783114   41% /gpsg/twq/db2
    /dev/vg04/lvtwqdb3 66322432 26936468 36924350   42% /gpsg/twq/db3
    /dev/vg06/sq_db1   65536000 50530190 14067949   78% /gpsg/getsq/db1
    It is /gpsg/twq/oracle which keeps increasing until program is recycled, then frees up space under /gpsg/twq/oracle..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • RAM utilization keeps increasing over time

    Environment: SharePoint Server 2010 on a stand-alone server, total RAM: 24GB
    I noticed that on our server the RAM utilization keeps going up until it gets to about 94-97% at which point everything become extremely slow or completely non-responsive.  we reboot the server, the RAM utilization goes down to about 28% but then starts
    increasing again.  I used Resource Monitor and looked at the memory section.  From the processes listed there it looks like the sqlserver.exe process's private memory usage keeps increasing proportionally to the whole RAM utilization while the other
    processes seem to be relatively constant.  Here is a sample data:
    August 1st: 44% used physical memory, SQL Server private memory:4.2GB
    August 5th: 63% used physical memory, SQL Server private memory:8.6GB
    August 9th: 74% used physical memory, SQL Server private memory:12.1GB
    August 12th: 78% used physical memory, SQL Server private memory:13.7GB
    Could you please suggest any tools or techniques that would help us determine what is causing this increase in RAM utilization?
    thanks,

    For single instance SQL 2008 R2 or higher installations where no other applications (like SharePoint) are running, it is not necessary to set MAXMEM.
    Trevor Seward, MCC
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • U: drive keeps increasing, and decreasing?

    So basically my U: drive keeps increasing and decreasing.. I check it every day, and it says 16.2X (where x is a random number). Usually it is in the 16.2x range... For example: 16.27, 16.29, 16.23 ..etc...  And I check my U: drive everyday.. I understand, that is not a problem, and its normal.
    But, today I checked my U:drive, and I was SHOCKED, because now it says 16.5x.. Right now its at 16.52, and I have NOT INSTALLED ANY PROGRAMS.
    Where in the world did 300mb of memory come from? Is it because I have been watching a lot of youtube videos?? I dont see how that would take up so much space..
    How do I get back to normal which is 16.2x...?

    Having the same problem every few seconds it adds a minute to the estimated time. This is really annoying. I'll call apple to figure something out because I need to backup to to icloud since I have a battery issue with my phone!

  • SSIS 2012 OData - Cannot acquire a managed connection

    I have an SSIS project in SQL Server 2012 deployed via  VS 2012 SSDT-BI.
    If I run this from my local SQL Server it works correctly, however if I push it to another server and run it I always get a
    Cannot acquire a managed connection from the run-time connection manager.
    The connection looks like this..
    Document Url=http://myodata;Include Atom Elements=Auto;Include Expanded Entities=False;Integrated Security=SSPI;Persist Security Info=False;Time Out=600;Schema Sample Size=25;Retry Count=5;Retry Sleep=100;Keep Alive=True;Max Received Message Size=4398046511104
    Any ideas?
    Paul

    Can you try passing "User ID" and "Password" instead of "Integrated Security=SSPI"?
    Example,
    Base Url=http://dynamicsnav:7048/dynamicsnav70/OData/;Include Atom Elements=Auto;Include Data Services Content=True;Include Expanded Entities=False;Namespaces to Include=*;Integrated Security=Basic;User ID=navadmin;Password=**********;Time
    Out=600;Persist Security Info=False;Schema Sample Size=25;Retry Count=5;Retry Sleep=100
    Regards, RSingh

Maybe you are looking for

  • ATI Radeon 9000 IGP Mobile driver doesn't have hardware acceleration

    I installed the xf86-video-ati package and I don't get hardware acceleration. Glxgears gives a painful 80 FPS rate and nothing 3D intensive works, neither 480p/720p youtube videos. Also, it seems that the current drivers identify the card as 9100 ins

  • Object exists when installing Itunes 11.4 on PC

    I've attempted to the latest version of ITunes 11.4.0.18 as of 10/4/14.  I have a PC with Windows 7.  I've uninstalled the 5 major programs (ITunes, Apple Software Update, Bonjour,etc).in the order listed on FAQ recommendation. Every time I try to in

  • Problem finding WordService for Contract Generation in SAP E-Sourcing5.1

    Hi, I'm currently deploying Contract Generation Web Service in SAP E-Sourcing5.1/CLM 2.0 SP02. The problem is that I can't find WordService software which is mandatory for adding XML Schema in MS Word. In the instGuide it says that the installer is o

  • Not purchased yet,still looking. . .

    I noticed researching desktop gaming computers most of them don't come equipped with a battery.Why do some have them and some not?How important is a battery? I also noticed they try to hide,omit or mismatch manufacturer specifications on some models

  • Problems with downloading Photosop Elements 12 bundled with Premier Elements 12

    I purchased the online version of Photoshop Elements 12 bundled with Premier Elements 12. Only the Premier Elements (Video) loaded andis available to use. How do I acces the Photoshop portion of the download?