High resident memory size when creating in-memory db

Capsule summary: an in-memory db created with a cache size of 8 Gb reports a resident size of 2 Gb without any data stored in it.
Details:
We have a need for creating an entirely "in-memory" database, i.e. without a backing file store.The application in question will be writing to and reading from the db frequently, and there is no need to incur the penalty of writing out to disk.
I read the white paper "Writing In-Memory Applications" published by Oracle, and modified our db creation code accordingly. More or less all I did was to allow "open" to be called with a NULL instead of file name.
This seems to work just fine, in that no file is created, and both writing and querying seem to work correctly. However, the resident memory size, even without anything written to the database, seems inordinately high. For example, if I set the cache size to be 8 Gb (the size of physical memory on my Linux FC11 machine), the resident size reported by "top" is 2.0 Gb:
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7%us, 0.3%sy, 0.0%ni, 98.3%id, 0.6%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8114752k total, 8054072k used, 60680k free, 45344k buffers
Swap: 11717624k total, 204896k used, 11512728k free, 3977788k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12827 rao 20 0 2243m 2.0g 9.9m S 0.0 26.0 0:01.53 pypix
Running strace on the process shows that there are three calls to mmap as soon as "open" is called, one of them being responsible for a majority of the allocation.
Is this expected behavior? The documentation explicitly states the following:
"... Note that the size you specify for your cache is actually a maximum size; DB will only use memory as required so if you specify a cache size of 1 GB but your data set is only ever 10 MB in size, then 10 MB is what the DB will use...."
This does not appear to be consistent with what I am seeing.
Any ideas on what I might be doing wrong?
Thanks in advance.

Have you checked what script is causing the issue ? anything from application ? and OLAP things running on this instance ? how many sql instances are running ? anyother application like sharepoint etc runinning on this host ?
Check If your SQL Server instance encounters the following conditions then there is a possibility of
Non-yielding scheduler (SQL Server 2005 and above for the first occurrence. This is equivalent to a 17883 dump in SQL Server 2000.)
Non-yielding resource monitor (SQL server 2005 and above for the first occurrence)
Non-yielding IOCP listener (SQL server 2005 and above for the first occurrence)
Deadlocked Schedulers (SQL server 2005 and above. This is equivalent to a 17884 in SQL Server 2000.)
Exceptions/Assertions
Database Corruption
Latch Timeout
Other conditions (eg: when DUMPTRIGGER is used to generate a dump for a particular exception)
http://www.sqlskills.com/BLOGS/PAUL/post/How-to-download-a-sqlservrpdb-symbol-file.aspx
http://support.microsoft.com/kb/311503
http://blogs.msdn.com/b/sqlcat/archive/2009/09/11/looking-deeper-into-sql-server-using-minidumps.aspx
Diagnose and Correct Errors 17883, 17884, 17887, and 17888
http://technet.microsoft.com/en-us/library/cc917684.aspx
Raju Rasagounder Sr MSSQL DBA

Similar Messages

  • Out of memory error when creating an array

    I'm trying to create 3D array of Bytes.
    Byte[][][] disk = disk = new Byte[11][9][25344];
    This is where I get an OutofMemory error.
    Please help!!!

    It is not as ballubadshah asserts a matter of how much memory you have but rather how much is allocated by default to the JVM heap.
    This number according to http://java.sun.com/docs/hotspot/ism.html is 64megabytes.
    When I run the following code, I get the number 64618496 which is just shy of 67108864, 64 meg. If I increase the array size I get the same error as you.
    To get past this, you can increase the heap size at runtime with the option -Xmx###m where ### is the number of megabytes to use for heap.
    ex
    c:/test>java -Xmx128m Memorypublic class Memory
       public static void main(String[] args)
          Runtime.getRuntime().gc();
          long start = Runtime.getRuntime().totalMemory();
          Byte[][][] bytes = new Byte[11][9][25344];
          for(int i = 0; i < 11; i++)
             for(int j = 0; j < 9; j++)
                for(int k = 0; k < 45344; k++)
                   bytes[i][j][k] =
                      new Byte(new Double(Math.random() * 256).byteValue());
          Runtime.getRuntime().gc();
          long end = Runtime.getRuntime().totalMemory();
          System.out.println("memory usage  = " + Long.toString(end - start));
    }

  • Can I set JVM memory size when running applets?

    Hi,
    I have downloaded an applet that renders panoramic images and
    I have a problem with Java memory. I remember that default maximum
    size that applet can use is 70MB, and the problem is 70MB is
    not enough when rendering big images. It is OK when I add
    "-Xmx -Xms" parameters in the Java Control but I cannot tell
    everyone who wants to see my images to go control panel, add
    parameters etc..
    So my question is...
    Is it possible add "-Xmx -Xms" parameters inside the applet file
    so that these parameters run automatically when executing applet?
    Thanks in advance for your reply!
    Hyung

    Hi,
    I have downloaded an applet that renders panoramic
    images and
    I have a problem with Java memory. I remember that
    default maximum
    size that applet can use is 70MB, and the problem is
    70MB is
    not enough when rendering big images. It is OK when I
    add
    "-Xmx -Xms" parameters in the Java Control but I
    cannot tell
    everyone who wants to see my images to go control
    panel, add
    parameters etc..
    So my question is...
    Is it possible add "-Xmx -Xms" parameters inside the
    applet file
    so that these parameters run automatically when
    executing applet?
    Thanks in advance for your reply!
    HyungA potential workaround I would try is is use ByteBuffers
    (T)

  • Out of memory error when creating large matrix

    hello,
    i have to create a matrix of 100000 cols and 10000 rows for store numeric values, 0 and 1, but when the program is executing , the error "outofmemory no stack trace available" appear.
    �how can I resolve this? Is neccesary to modify the JVM?
    Urgent !!!!!!!!!!!!!!!
    Thanks in advance.

    Which is 125 MiB of memory, minimum.Doesn't follow:
    http://en.wikipedia.org/wiki/Sparse_matrix
    If this were for sparse data a simple list of Integers would represent the same data just as effectively as a matrix.
    If the data is not sparse, a one-dimensional byte array would be my choice.

  • Memory leak when creating new thread.

    Hi,
    Each time i create a thread, it causes 8 bytes memory leak. The testing code is as below and you can see mem usage increasing in Windows Task Manager. But if i don't call ::OCIEnvCreate(), no memory leak.
    Memory validator shows the following call stack information:
    ........largest allocation 8 bytes at .......
    =>OraOCIEI10.dll ss_mem_thread_attach
    =>OraOCIEI10.dll sscoresetserverflag
    =>OraOCIEI10.dll slzgetevar
    =>ntdll.dll LdrInitializeThunk
    Anyone knows what is goiing on?
    /Yue
    #include <stdio.h>
    #include <windows.h>
    #include <process.h>
    #include <oci.h>
    static OCIEnv *env;
    static unsigned int counter = 0;
    unsigned __stdcall ThreadFunc(void* pArg)
    counter++;
    printf( "In %uth thread...\n", counter );
    Sleep(100);
    _endthreadex( 0 );
    return 0;
    int main( int argc, const char* argv[] )
         sword rc = ::OCIEnvCreate(&env, OCI_DEFAULT, NULL, NULL, NULL, NULL, 0, NULL );
         for(;;)
              HANDLE hThread;
              unsigned threadID;
              // Create the second thread.
              hThread = (HANDLE)_beginthreadex( NULL, 0, &ThreadFunc, NULL, 0, &threadID );
              WaitForSingleObject( hThread, INFINITE );
              // Destroy the thread object.
              CloseHandle( hThread );
         return 0;
    }

    Hi,
    I'm not suprised.
    OCI offers the feature OCIThreadKey that allow you to store a pointer within a thread context (without using OCIThread, just using natives threads).
    So OCI needs to catch thread creation to be able to register storage for its OCIThread key value and be able, once the thread is finished to call a callback with the pointer value associated with the thread....

  • Not able to memory dump and create a memory.dmp file in the path: %SystemRoot%\Minidump

    This question is a part of my job profile. I work for an MNC chip maker. As a part of our systems testing environment, we boot into the Microsoft windows 8.1 windows OS and run some specific tests from the OS. The platform design (mother board) is an internal
    design.
    Issue is with the booting sequence since no much information is available when Windows 8.1 tries to boot and when we see the splash screen. Especially when we see a BSOD, there had been no leads.
    I tried to enable the small memory dump option in Windows 8.1 OS which tries to write the files into the location %SystemRoot%\Minidump on a system crash while boot. Please note that Windows 8.1 has been stored as a .VHD file in the hard disk (which
    is the boot-disk). The issue is, even in an event of a BSOD while booting, I am not able to see any memory dump files that had been logged in that location.
    Is this issue would have been caused by the VHD file format since it is a virtualized disk ? Please let me know what all the issues could be, so that I can have some memory logs here to look into. May be analyze the Windows debugger.
    Best Regards
    Akhil

    Hi,
    The causes why Windows does not save memory dump file after a crash are listed in the link below:
    http://support.microsoft.com/kb/130536
    I suggest you check the space, make sure that there's enough room for the memory dump file.
    And this blog can also be helpful
    No kernel memory dump created on Windows 7 or Windows 8
    http://blogs.technet.com/b/yongrhee/archive/2012/08/27/no-kernel-memory-dump-created-on-windows-7-or-windows-8.aspx
    Yolanda Zhu
    TechNet Community Support

  • Maintaining original Word document paper size when creating a new form

    I am creating a new form in Adobe LiveCycle using a template I created in Word.  The original form in Word is Legal size but when I change it to Adobe, it converts the form to Letter size.  How do I maintain the form in legal size?

    in the hierarchy tab, select page 1 of master pages.  in the object tab for the master page you can select paper type, orientation, or if you have a custom page size you can define that as well.  hope this helps.
    -rpeterson

  • Incorrect page size when creating PDF from Excel 2013 (export and print)

    I am in the USA so everything tends to default to 8½"x11" ... but I created a document in Excel with A size settings. I have attempted to export it to PDF with every setting I can find set to A4 and I have attempted to print the document to PDF again with every setting I can find set to A4 (page size, layout - advanced - paper/output - paper size - A4) with all scaling turned off and yet when I open the finished document in Acrobat XI Pro (with all updates installed) the document properties lists it as 8½"x11". I don't see any resize document settings in Acrobat or any other reason it would be anything but A4 in Acrobat's settings, and I've even had someone in our design department that uses Acrobat extensively look at my steps and they don't see where I'm making any mistakes.
    Does anyone here have any suggestions?

    Notice in the illustration the button Page setup.
    Click on that and see if you can set printer from there.
    I don't know whether this is in the PC version.
    This is an adobe dumb idea inserting a Print menu in between a print menu and the printer, and not allowing the Printer to do the control Setup itself.
    One of them ideas that came up when a developer was sitting around twidling his thumbs, and saying hey lets do this.  Another idea That comes along with this, is the inserted property feature called simplex printing. If you want to print a PDF duplex you can setin printer till cows come home and you blue in the face. Won't print Duplex.  You have to Click Propties and Locate the command simplex, and turn off.

  • Content size when creating a PDF in Numbers for iOS

    I want to create a PDF document from Numbers for iOS, but it will not allow me to center content on the page or resize it to take the whole page. I can do it if I try to print a document, I can adjust the size of my content, but if I just want to create a PDF, it makes my content small and all bunched up in the top left corner and the document does not look good.

    I suspect that even if you could find the mapping information (pass as to where) it would simply tell you that Style A in Fm was mapped to Style B in Rh but not give you any information about how Style A was defined in Fm.
    I think your only options are to create a CSS as you suggest or, as I would, create redefine the Word Style Mapping Template to suit. By going to Word first, you can edit the output for better page breaks and other tweaking you might want.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Incorrect A4 size when creating print preset for adobe PDF?

    Hi
    I've run into a strange "issue", which I'm trying to understand.
    If I create a new document in InDesign CS4 (or CS5) in papersize A4, the size is obviously 210mmx297mm. All is good.
    If I want to print this document as a postscript document, to a file, I create a new Preset.
    1) File->Print Presets->Define
    2) New
    3) Printer: Adobe PDF
    Now if I select the Setup option the paper size says A4, but the size is: 209,98mm x 297,039.
    Anybody care to explain why it's not a "correct" A4 size?
    Thanks in advance!
    Ruvan

    Guys, I really appreciate the time and effort.
    I haven't done the math, but I think its still a little strange that the width is a little too small and the height a little too big.
    Anyway, what I also think is a bit strange is that if I select a real printer physical printer, not Adobe PDF, then the sizes are all correct.
    Thanks
    Ruvan

  • How to calculate OS memory size in java?

    I want to calculate free memory size , when I tried by Runtime class
    like this Runtime.getRuntime().freeMemory() it gives JVS free memory size
    But I want OS free memory size
    If anybody know then plz reply me ASAP

    Since the question was asked the last time (yesterday afternoon), I don't think Java has changed much, so the answer is still: you can't do it with Java.

  • High Resident and Virtual memory for DBWR

    Hello All
    on 64 bit RHEL5 with physical memory of 98gb.
    I see in OEM db console for 11gR2 database that dbwr processes is consuming 21gb of Resident and Virtual memory.
    There are 3 dbwr processes (all using 21g) running and i see swapping happens even there is not much load on database .
    Is it normal for dbwr to allocate such high memory ?
    other memory config
    sga_max_size big integer 60G
    sga_target big integer 39808M
    pga_aggregate_target big integer 10G

    That is an excellent document.
    The one thing you have to remember when looking at memory usage of Oracle processes, is they all attach to the same set of shared memory so your values will look high. For example if you assume your sid is XE and run the following command you can get something like this.
    ps -eo pid,pmem,pcpu,rss,vsz,args | grep -i XE
    29259 0.3 0.0 15004 869972 xe_j000_XE
    29305 0.0 0.0 792 6560 grep -i XE
    30927 0.2 0.0 10500 870080 xe_pmon_XE
    30929 0.2 0.0 8520 869464 xe_psp0_XE
    30931 1.4 0.0 58692 869464 xe_mman_XE
    30933 5.9 0.0 241388 894124 xe_dbw0_XE
    30935 0.3 0.0 14188 885016 xe_lgwr_XE
    30937 0.5 0.0 21372 869984 xe_ckpt_XE
    30939 2.8 0.0 114928 871024 xe_smon_XE
    30941 0.3 0.0 14420 869464 xe_reco_XE
    30943 1.3 0.0 55860 871060 xe_cjq0_XE
    30945 1.3 0.0 56168 872216 xe_mmon_XE
    30947 0.3 0.0 12360 869464 xe_mmnl_XE
    30949 0.6 0.0 28260 870348 xe_d000_XE
    30951 6.2 0.0 253720 875060 xe_s000_XE
    30953 5.6 0.0 227984 875020 xe_s001_XE
    30955 5.8 0.0 239556 875068 xe_s002_XE
    30957 5.0 0.0 204960 875056 xe_s003_XE
    30959 4.2 0.0 174516 875080 xe_s004_XE
    30961 5.7 0.0 232812 875028 xe_s005_XE
    30963 4.4 0.0 179788 875004 xe_s006_XE
    30965 3.2 0.0 132100 874988 xe_s007_XE
    30967 2.5 0.0 101676 874980 xe_s008_XE
    30969 2.0 0.0 82304 874976 xe_s009_XE
    30973 0.4 0.0 19980 885016 xe_arc0_XE
    30975 0.4 0.0 19936 885016 xe_arc1_XE
    30979 0.2 0.0 9672 869464 xe_qmnc_XE
    30985 0.2 0.0 10932 869460 xe_q000_XE
    30987 0.2 0.0 9004 869460 xe_q001_XE
    Notice how my virtual size is all close to 875Mb for each process more than available with ram and swap space. That is because they all attach to my SGA thus the OS reports the SGA in it's memory listing.
    Edited by: user652447 on Apr 11, 2011 9:56 AM

  • High memory use when checking downloads folder through browser

    High memory use when checking downloads folder through browser.
    I have a total of 3 DDR2 Gbytes of ram. Pentium(R) Dual-Core CPU T4500 @ 2.30GHz Win 7 home pr. 64bit. Firefox 27.0 beta
    I right click on a file to "open containing folder" from the drop down menu in downloads.
    When the folder has been opened, explorer is trying to index the folder (which it never does completely or well after 5 minutes I close the folder and shut down the dllhost process cause laptop is blazing hot) and memory keeps increasing till no more is available.
    I checked task manager and see that dllhost is the particular process that is causing the spike in memory usage even after closing the folder I right click and stop the process and memory is restored after awhile.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • High Virtual memory usage when using Pages 2.0.2

    Hey there,
    I was just wondering whether there had been any other reports of unusually high memory usage when using Pages 2.0.2, specifically Virtual memory. I am running iWork 06 on the Mac listed below and Pages has been running really slowly recently. I checked the Activity Monitor and Pages is using hardly any Physical memory but loads of Virtual memory (so much so that the Page outs are almost as high as the Page ins (roughly 51500 page ins / 51000 page outs).
    Any known problems, solutions or comments for this problem? Thanks in advance

    I don't know if this is specifically what you're seeing, but all Cocoa applications, such as Pages, have an effectively infinite Undo. If you have any document that you've been working on for a long time without closing, that could be responsible for a large amount of memory usage.
    While it's good practice to save on a regular basis, if you're making large amounts of changes it's also a good idea to close and reopen your document every once in awhile, simply to clear the undo. I've heard of some people seeing sluggish behavior after working on a document for several days, which cleared up when the document was closed and reopened.
    Titanium PowerBook   Mac OS X (10.4.8)  

  • High Memory consumed when Dynamic memory is Enabled in Hyper-V Machine

    I have created a VM using Hyper-V with Enabling Dynamic Memory option on a 2012R2 server machine.
    After creating the VM I see that the memory consumption of the VM machine as 85%.
    Would like to know if any efficient way to use "Enable Dynamic Memory" option while configuring the VM so that the memory consumption will be reduced.

    As others have said it depends on the application being used. Also how do you have your guests configured with Startup memory, minimum memory and maximum memory? If your application is poorly written and has a memory leak, you will see dynamic memory just
    grow. If the application is just heavy because of traffic or caching it will use lots of memory.
    Example for me is a web application that is proprietary. during no usage it might be using roughly 400 MB on the server, but then when it gets used it will grow. I've seen some webservers hit 10 GB as for other ones grow maybe to a meg. After things calm
    down a bit I notice memory returns back down to a 400 MB to 700 MB level. That is just how my application is and how i serve it up to customers. I had to track all that stuff prior. You can use Microsoft MAP to help with your dynamic memory settings.
    For SQL server it can be done as well, but as Darren said before you might not want to do it. In my environment i do it, but I have tweaked things to work for me. Example is tweaking database memory usage to match startup memory OS it appears static, but
    then leaving dynamic for processes that fire outside of SQL server. Here is a
    guide for SQL server and dynamic memory.

Maybe you are looking for

  • Importing ESSWelcome Par file into Eclipse

    Hi Portal Gurus, I am just trying to import the ESSWelcome.par file into Eclipse 2.1 and doing some changes into that. Could someon shed some light on how to do this stuff in eclipse? Because i am getting exception while i am trying to export it back

  • How to clear balance qty pending at vendor end

    Hi Gurus, I have checked the report MBLB there is lot of unrestricted material. This is actually losted material, Kindly let me know how i can clear this pending material. The SAP shows this material but actually material does not exist physical. Reg

  • 2 OAS on the same server

    we have installed a OAS 10.1.3.0 on Linux. is it posble to install OAS 10.1.3.3 on the same server, is there any confliction? if it posible, how can I change the port number for the 2nd OAS? or will it detect the port have been used and choose diffre

  • Inventory tracking

    Hi all. I would appreciate some help with making a query for the following scenario: Is it possible to show all items where on hand is larger than 0 and has no inventory transactions for a given period of time. I'm really looking for all items that a

  • Transient Object with TopLink?

    Can we create transient database objects with TopLink similar to the way we do with BC4J? Eg: I can create a transient VO with BC4J with out a select query and add attributes to it. Can this be done with TopLink?