SQL Server not releasing memory

Hello,
I have created one stored procedure, which inserts data into 1 table.
It inserts around 1 million records at a time using XML input.
Problem is with SQL server memory I think. When I run this stored procedure and check the performance in the morning when server is not so busy, it finishes with less than 10 seconds.\
However, if I continuously test this stored procedure multiple times, it gives huge variation in performance.
Also, I call this stored procedure from C# front and there I have made sure that I am disposing Connection object every time.
After few runs, I have to restart my server computer as it doesn't allow me to run any of the query on that server.
So my question is :
What is that which occupies whole server memory?
Is there any thing which I can write in stored procedure to release memory once it is done?
Please assist me on this.
Thank you,
Mittal.

Hello,
I have created one stored procedure, which inserts data into 1 table.
It inserts around 1 million records at a time using XML input.
Problem is with SQL server memory I think. When I run this stored procedure and check the performance in the morning when server is not so busy, it finishes with less than 10 seconds.\
However, if I continuously test this stored procedure multiple times, it gives huge variation in performance.
Also, I call this stored procedure from C# front and there I have made sure that I am disposing Connection object every time.
After few runs, I have to restart my server computer as it doesn't allow me to run any of the query on that server.
So my question is :
What is that which occupies whole server memory?
Is there any thing which I can write in stored procedure to release memory once it is done?
Please assist me on this.
Thank you,
Mittal.
>> 1. What is that which occupies whole server memory?
Probably your application or the other application, but this need to be checked and not guess! Your machine execute hundreds if not hundreds of thousands applications on the same time! most of them are services that you do not see any
GUI. The SQL Server itself might execute hundreds if not hundreds of thousands transactions and these might interfere one another (lock tables or rows, use the same resources and so on).
* as a first test you should try to execute the query using a more reliable application like the SSMS. I recommend to try execute the query throw the SSMS several times and check the behavior.
>> 2. Is there any thing which I can write in stored procedure to release memory once it is done?
There are several option to free memory that used by SQL Server, but do you really need it?!? This is probably not the solution for your case. in the best option it will only give you a workaround.
* SQL Server do not use more resources that you let it (configure it). If you are using SQL EXPRESS than you have some limitations regarding the resources (for example memory and CPU and database size...).
Make sure that you configure the SQL Server not to use to much resources, so that other applications like the operating system will have what they need! There is no logic in restart the machine if the only
problem is with specific application (unless you have problems like memory leak which in rare cases can not be treat otherwise)
http://mrbool.com/how-to-clean-up-memory-sql-server/29242
https://msdn.microsoft.com/en-us/library/ms178067.aspx?f=255&MSPPError=-2147217396
** start monitor the SQL Server resources, locks and waits
https://technet.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
http://www.brentozar.com/sql/locking-and-blocking-in-sql-server/
*** Give us more information instead of stories :-)
Post codes that you use, post DDL+DML and so on.
  Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]

Similar Messages

  • Sql server is using memory more then there max memory setting?

    Hi All,
    today i have faced the different issue..........
    we have one SQl server 2008 prod server... it have memory issue actually  total server memory is 8GB and we have allocated the 6 GB to SQL server,we checked the server no open trans and dont have running jobs also,one database is using the memory high(no
    open trans)... but Sql server has used 6.5 GB (6 GB) and total server used memory is reached to 7.89 GB.
    Please tell me how to find the most costly query in particular database wise and sql server internally behavior ?
    how to troubleshot the  above issue?
    please post the your valuable answers ASAP...
    Thanks,
    RAM

    Please refer to what Olaf said briefly.Buffer pool in SQL server only caters to memory requests which requires pages <8 KB . Almost all requests are satisfies by buffer pool and generally request for memory is small and so buffer pool satisfies the requests.
    However there are some direct memory allocation by windows API which is done by windows for requests which  requires memory greater than 8 KB. This memory wont come from buffer pool and this would be counted in memory utilized by SQL server. SQL
    CLR,XML, linked Server, all takes memory outside buffer pool in SQL Server 2008. This behavior changed in 2012 so my statement only applies to SQL server 2005/2008 and 2008 R2.
    I would run below to check SQL server memory utilization.
    select
    (physical_memory_in_use_kb/1024)Memory_usedby_Sqlserver_MB,
    (locked_page_allocations_kb/1024 )Locked_pages_used_Sqlserver_MB,
    (total_virtual_address_space_kb/1024 )Total_VAS_in_MB,
    process_physical_memory_low,
    process_virtual_memory_low
    from sys. dm_os_process_memory
    I am sure you must be using some features mentioned above.You were worried that even though there is no query running on SQL server it has still holded up the memory. This is default behavior and this is how memory management in SQL Server works. It will
    not release memory untill SQLOS asks it to do so which is told by windows OS thorugh some flag that it is facing memory pressure.
    Please read below for more details on memory. There is section to test whether system is facing memory crunch please read that as well.
    http://social.technet.microsoft.com/wiki/contents/articles/22316.sql-server-memory-and-troubleshooting.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Garbage Collection not releasing memory properly

    Hello, In my web application memory is not releasing properly, after some point of time application throw out of memory error, we are using tomcat5, jdk5, my heap size is half of the RAM.Garbage Collection not releasing memory properly.

    sabre150 wrote:
    punter wrote:
    georgemc wrote:
    Yep. Couldn't be a problem with your code, it must be that garbage collection doesn't work and nobody else noticed. Raise a bug with Sun.Are you serious ?You need to replace your sarcasm detector.I have blowed my sarcasm meter and limping in the blindness !!!! :(

  • Force encryption on SQL Server not working?

    Hello Everyone,
    I'm running SQL Server 2008 64-bit. I've installed a self-signed cert on the box and set  "Force Encryption"  and restarted SQL server. 
    I setup a client machine to trust the authority of the cert installed on the server. When I connect to that SQL server from SSMS from a client machine and select the "encrypt connection" option in the client Connection properties, SSMS correctly complains
    that the cert on the server does not match the computer name I asked to log into . This is because, although the cert is trusted, the dns name dos not match the CN in the cert <- Perfect, exactly what I am expecting.
    When I connect to the same SQL server from the same client but  UNCHECK "encrypt connection" on the client, I'm able to login. Considering I've checked the "Force Encryption" on the server, the server should have rejected the connection. Why not?
    Ameer Deen

    Hi all,
    We are implementing a Merge Synchronization solution which involves three SQL Servers located on three Azure locations worldwide and one on-premises location. We need to secure communications between all servers. We are evaluating the encryption of all server
    communications through SSL:
    http://technet.microsoft.com/en-us/library/ms191192.aspx
    When we configure one server (let’s call it server A) to accept only encrypted connections (with Force Encryption=Yes) we still can connect from other server (let’s call it server B) that do not have the certificate installed. We would expect the server
    B to fail in the attempt of connect as server A should only accept encrypted communications and those should need the certificated to encrypt/decrypt everything (commands and data).
    We have also review the following forum post that is very similar to this one:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working
    In all cases the Microsoft answer is:
    “When the
    Force Encryption option for the Database Engine is set to YES, all communications between client and server is encrypted no matter whether the “Encrypt
    connection” option (such as from SSMS) is checked or not. You can check it using the following DMV statement”
    When we run the provided DMV statement to check if encryption is enabled:
    -- To check whether connections are encrypted between server and clients
    SELECT encrypt_option
    FROM sys.dm_exec_connections
    We get “TRUE”. So theoretically encryption is enabled.
    Then:
    Why can we run SQL statements against server A from server B (with SSMS) without any certificate?
    Are we wrong when we expect server A to refuse any client that do not have the right certificate?
    How can server B, without any certificate, decrypt the data encrypted by server A?
    Our intention is to encrypt all server in the same way so all of them will accept only encrypted communications. We are assuming that the Merge Agent will be able to communicate with the Publisher and the Subscriber through this encrypted environment. May
    anyone please confirm ti?
    Thanks for your help.
    Best Regards
    Benjamin Moles

  • PS Touch Android does not release memory when closed.

    I have to force closure with Task Manager on my Samsung Note 2 running JB 4.1. Why and when will it be fixed?

    Hi Ignacio,
    Sorry for the lack of information - I had typed more complete description, but had trouble posting it.
    The app is installed on a Samsung Galaxy Note 2 phone that is running Jellybean 4.1.1.
    The only way I can see to exit the application is by using the "back" soft key under the screen on the right. Some apps have an "exit" choice under the "menu" soft key, but that key is not active with PSTouch.
    I see the same issue with Google Chrome. The menu key is active with this app, but it does not have an "exit" choice.
    With both these apps, I have to go to the "Active Apps" tab of the Task Manager to release memory.
    There is one difference with PS Touch. Google Chrome always starts the same way whether or not I release it's memory. With PS Touch, if I release memory after closing with the back key, the next time I start it I get an initial royal blue screen with the PS Touch icon in the middle followed by a second screen with a menu in the middle titled "New Project From". If I exit at that point, it takes two presses of the back key to first close the menu and then exit the program and return to a home screen. If I do not release memory, the next time I start PS Touch, it goes directly to the second screen, but without the "New Project From" menu.
    I hope this gives you the information you need.
                      Pete

  • SQL Server 2014 In-Memory Table Limitations

    When I use the migration wizard to migrate a table into a memory-optimized table, I get serious limitations (see images below). It appears that practically a table has to be an isolated staging table for migration.
    A frequently used table like Production.Product would be a good candidate to be memory resident, theoretically thinking.
    What do I do? 
    Bigger question: what if I want the entire OLTP database in memory? After all memory capacities are expanding.
    Thanks.
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

    ... It appears that practically a table has to be an isolated staging table for migration.
    Bigger question: what if I want the entire OLTP database in memory? After all memory capacities are expanding.
    Hello
    Yes, there are quite a few barriers for migrating tables to memory optimized.
    For a list of unsupported features check this topic:
    Transact-SQL Constructs Not Supported by In-Memory OLTP
    and for datatypes check here: Supported Data Types
    You probably do NOT want to put a whole database into the new In-Memory structures. Not all workloads actually profit from that. I.e. The more you have Updates the less you will benefit from the
    In-Memory Optimized Tables because of the version chains.
    You can read a bit here: Determining if a Table or Stored Procedure Should Be Ported to In-Memory OLTP
    And also those are some of the topics which you may want to have read beforehand:
    Memory Optimization Advisor
    Requirements for Using Memory-Optimized Tables
    Memory-Optimized Tables
    Good luck
    Andreas Wolter (Blog |
    Twitter)
    MCM - Microsoft Certified Master SQL Server 2008
    MCSM - Microsoft Certified Solutions Master Data Platform, SQL Server 2012
    www.andreas-wolter.com |
    www.SarpedonQualityLab.com

  • SQL Server 2012 Dynamic Memory

    Does anyone know if Dynamic memory can be used for SQL 2012 on a Hyper-V 2012 VM?
    There seems to be conflicting views of this, some say only static memory can be used or performance would be affected?

    Hi,
    Q7: Is Hyper-V Dynamic Memory supported for SQL Server?
    A7: Hyper-V Dynamic Memory is fully supported with SQL Server. Only SQL Server versions and editions that support Hot Add Memory (Enterprise and Datacenter) can see memory that is added by using Hyper-V Dynamic Memory. SQL Server 2012
    Standard edition also recognizes Hot Add memory when running in a virtual enviroment.  SQL Server versions that do not support Hot Add Memory are still supported. But these versions will detect only the memory that is present in the operating system when
    SQL Server starts. Before you deploy Hyper-V Dynamic Memory, please read the following resources when you use Hyper-V Dynamic Memory with SQL Server:
    http://support.microsoft.com/kb/956893
    http://OpsMgr.ru/

  • GC not releasing memory-Out of Memory Excp.

    WL5.1,SP8,JDK1.2.2,Unix.
    We have our application running on the above mentioned Env.
    We have a memory allocation of 1024MB for the heap. We have three instances of
    weblogic server running inside a cluster.
    The server calls GC[0] regularly. Once the 100% of the memory is used the server
    calls GC[1] and releases memory upto 50% to 60%
    appx. But this release of memory keeps reducing and at one point of time it is
    not able to release any of its memory.
    We tried to get some thread dumps by doing kill -3 and that din't help us much.
    we see this kind of behaviour in all the three weblogic instances.
    Our application was running quiet a long time and we din't experience any problem
    of memory issue before this occured.
    Is their anything that I can do to see what objects are their inside the JVM.
    I don't have any performance tool installed.
    Does weblogic console can give some information on the heap used.
    Is their any java utility program that i can use to find the inside's of JVM
    Thanks
    Krish.

    You can find out why 'locale' tag fails by looking at the
    ServletException.getRootCause() (in your error jsp page, if
    you have one).
    Krish <[email protected]\> wrote:
    I had the same problem recently and I have some information prior to the server
    going out of memory.
    Our application uses JSP for presentation.Prior to the server getting out of memory
    we faced a problem in one of our JSP being corrupted. The client never got the
    full JSP on the screen. We believe that the JSP was corrupted and the server servert
    the corrupted file. Then after investigation we used the "touch" command and touched
    the file and then it recompiled and the client was able to view the full page.
    This problem of serving corrupted JSP code started the same day the out of memery
    problem occured. I would like to know that does this corruption leave some thing
    in the memory that never got cleaned up by GC[1].
    Following is the exception thrown when the client try to acess the JSP.
    javax.servlet.ServletException: runtime failure in custom tag 'locale'
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at javax.servlet.ServletException.<init>(Compiled Code)
    The custom tag locale just transalates the string into the local language with
    some attibutes passes. Almost all JSP's use this tag. So i don't think there is
    a problem in tag.
    All in need to know is that if their is some kind of exception in the JSP compilation
    will the objects stay in the memory and never get cleaned up.
    Thanks in advance
    Krish.
    "Mike Reiche" <[email protected]> wrote:
    JProbe will provide information about java objects in the JVM heap.
    Your application was running for a long time, then all of a sudden it
    started
    running out of memory? Look closely at the last code change you made.
    Mike
    "Krish" <[email protected]> wrote:
    WL5.1,SP8,JDK1.2.2,Unix.
    We have our application running on the above mentioned Env.
    We have a memory allocation of 1024MB for the heap. We have three instances
    of
    weblogic server running inside a cluster.
    The server calls GC[0] regularly. Once the 100% of the memory is used
    the server
    calls GC[1] and releases memory upto 50% to 60%
    appx. But this release of memory keeps reducing and at one point oftime
    it is
    not able to release any of its memory.
    We tried to get some thread dumps by doing kill -3 and that din't help
    us much.
    we see this kind of behaviour in all the three weblogic instances.
    Our application was running quiet a long time and we din't experience
    any problem
    of memory issue before this occured.
    Is their anything that I can do to see what objects are their inside
    the JVM.
    I don't have any performance tool installed.
    Does weblogic console can give some information on the heap used.
    Is their any java utility program that i can use to find the inside's
    of JVM
    Thanks
    Krish.
    Dimitri

  • Sql server not starting

    Hi I have only files from catalog DATA form my SQL Server 2008. After I installed sql server and replates file in katalog DATA server not starting.
    Where I have problem, what I need to do to work? thanks for any help
    best regards

    This Is my Error log
    2014-01-02 12:28:05.84 Server Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64)
    Jul 9 2008 14:17:44
    Copyright (c) 1988-2008 Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
    2014-01-02 12:28:05.84 Server (c) 2005 Microsoft Corporation.
    2014-01-02 12:28:05.84 Server All rights reserved.
    2014-01-02 12:28:05.84 Server Server process ID is 6840.
    2014-01-02 12:28:05.84 Server System Manufacturer: 'Hewlett-Packard', System Model: 'HP ENVY Sleekbook 4 PC'.
    2014-01-02 12:28:05.84 Server Authentication mode is WINDOWS-ONLY.
    2014-01-02 12:28:05.84 Server Logging SQL Server messages in file 'F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG'.
    2014-01-02 12:28:05.84 Server This instance of SQL Server last reported using a process ID of 6948 at 2014-01-02 12:22:16 (local) 2014-01-02 11:22:16 (UTC). This is an informational message only; no user action is required.
    2014-01-02 12:28:05.84 Server Registry startup parameters:
    -d F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\master.mdf
    -e F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG
    -l F:\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\mastlog.ldf
    2014-01-02 12:28:05.92 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-01-02 12:28:05.92 Server Detected 4 CPUs. This is an informational message; no user action is required.
    2014-01-02 12:28:05.97 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
    2014-01-02 12:28:11.12 Server Node configuration: node 0: CPU mask: 0x000000000000000f Active CPU mask: 0x000000000000000f. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
    2014-01-02 12:28:11.17 spid7s Starting up database 'master'.
    2014-01-02 12:28:11.36 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'SQLEXPRESS'.
    2014-01-02 12:28:11.37 spid7s SQL Trace ID 1 was started by login "sa".
    2014-01-02 12:28:11.37 spid7s Starting up database 'mssqlsystemresource'.
    2014-01-02 12:28:11.39 spid7s The resource database build version is 10.00.1600. This is an informational message only. No user action is required.
    2014-01-02 12:28:11.50 spid7s Error: 15466, Severity: 16, State: 1.
    2014-01-02 12:28:11.50 spid7s An error occurred during decryption.
    2014-01-02 12:28:11.53 spid10s Starting up database 'model'.
    2014-01-02 12:28:11.55 spid7s Server name is 'MACIEK\SQLEXPRESS'. This is an informational message only. No user action is required.
    2014-01-02 12:28:11.55 spid7s Informational: No full-text supported languages found.
    2014-01-02 12:28:11.55 spid7s Starting up database 'msdb'.
    2014-01-02 12:28:11.56 spid10s Error: 17204, Severity: 16, State: 1.
    2014-01-02 12:28:11.56 spid10s FCB::Open failed: Could not open file E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\model.mdf for file number 1. OS error: 3(System nie może odnaleźć określonej ścieżki.).
    2014-01-02 12:28:11.56 spid10s Error: 5120, Severity: 16, State: 101.
    2014-01-02 12:28:11.56 spid10s Unable to open the physical file "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\model.mdf". Operating system error 3: "3(System nie może odnaleźć określonej ścieżki.)".
    2014-01-02 12:28:11.56 spid7s Error: 17204, Severity: 16, State: 1.
    2014-01-02 12:28:11.56 spid7s FCB::Open failed: Could not open file E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBData.mdf for file number 1. OS error: 3(System nie może odnaleźć określonej ścieżki.).
    2014-01-02 12:28:11.56 spid7s Error: 5120, Severity: 16, State: 101.
    2014-01-02 12:28:11.56 spid7s Unable to open the physical file "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBData.mdf". Operating system error 3: "3(System nie może odnaleźć określonej ścieżki.)".
    2014-01-02 12:28:11.58 spid10s Error: 17207, Severity: 16, State: 1.
    2014-01-02 12:28:11.58 spid10s FileMgr::StartLogFiles: Operating system error 2(Nie można odnaleźć określonego pliku.) occurred while creating or opening file 'E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
    2014-01-02 12:28:11.58 spid10s File activation failure. The physical file name "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\modellog.ldf" may be incorrect.
    2014-01-02 12:28:11.58 spid10s Error: 945, Severity: 14, State: 2.
    2014-01-02 12:28:11.58 spid10s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
    2014-01-02 12:28:11.58 spid10s Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized.
    2014-01-02 12:28:11.58 spid10s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    2014-01-02 12:28:11.58 spid7s Error: 17207, Severity: 16, State: 1.
    2014-01-02 12:28:11.58 spid7s FileMgr::StartLogFiles: Operating system error 2(Nie można odnaleźć określonego pliku.) occurred while creating or opening file 'E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.
    2014-01-02 12:28:11.58 spid7s File activation failure. The physical file name "E:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\MSDBLog.ldf" may be incorrect.
    Any idea? 

  • Sql server 2012 eating memory

    hi,
     we have setup sql server 2012 16 gb ram. but it is eating memory shows like 95 %.how i troubleshoot this issue.Please give solution asap
    Thanks,

    it is eating memory shows like 95 %.how i troubleshoot this issue.
    That's not an "issue", it is the quite normal behaviour of SQL Server to allocate as much memory as it needs and as it can get. You can limit the memory usage of SQL Server, see
    Server Memory Server Configuration Options and
    Effects of min and max server memory
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Weblogic not release memory

    Weblogic server does not release the memory after shutdown the weblogic server.

    A bit late to the party here but this issue is still live and I can't find anything else on the forum similar to it (apologies if there is).
    Photoshop does not seem to re-use memory it just keep allocating new right up to the limit before the prog crashes (same applies to Fireworks) so any batch/script processing of more than a handful of files is impossible.
    I am Photoshop via Creative Cloud (so I am always updated to your latest release), Windows 7 64k with 8Mb memory and am using Norton Intenet Security 20.3.1.22 which is updated daily.

  • Free Stmt Handle NOT release Memory allocated inDefineByPos[LongRaw]

    My Question is : Why Free Stmt Handle does not release the memory OCI allocated during OCIDefineByPos for data type "Long Raw"
    Please notice the Bold Fonts in the dtrace logging. Ptr is the pointer returned by malloc. Size is the memory size allocated.
    I use OCI to fetch records, each round I will fetch 1000 records. I found memory increase round by round. So I use dtrace to probe the memory malloc/free. At the end of each round, I will free the handle of SQL Statement. According the documentation, all the sub handles belongs to stmt handle should be free also. But I noticed that memory allocated during DefinebyPos for LongRaw did not get released.
    1. The SQL Send to DB each round is the same.
    2. I do the "Define" each round. So It's actually a "RE-Define" each round.
    The length of Long Raw is 512K. Here's the dtrace result when I call the OCIDefineByPos. There's a 2MB memory allocated, I don't know the reason.
    CPU ID FUNCTION:NAME
    3 45971 free:entry Ptr=0x247652d0 Size=0 TS=1568035638893113 FreeTime=2008 Jul 20 23:26:09
    libc.so.1`free
    libclntsh.so.10.1`sktsfFree+0x18
    libclntsh.so.10.1`kpummfpg+0xb6
    libclntsh.so.10.1`kghfrempty+0x17c
    libclntsh.so.10.1`kghgex+0x13c
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kpuhhalo+0x1fd
    libclntsh.so.10.1`kpuex_reallocTempBufOnly+0x5f
    libclntsh.so.10.1`kpuertb_reallocTempBuf+0x36
    libclntsh.so.10.1`kpudefn+0x2d1
    libclntsh.so.10.1`kpudfn+0x39e
    libclntsh.so.10.1`OCIDefineByPos+0x38
    scrubber`_ZN29clsDatabasePhysicalHostOracle6DefineEN7voyager15eBayTypeDefEnumEiPhiPs11EnumCharSet+0x17f
    3 45966 malloc:return Ptr=0x252ad100 Size=524356 TS=1568035638916654 AllocTime=2008 Jul 20 23:26:09
    libc.so.1`malloc+0x49
    libclntsh.so.10.1`kpummapg+0xcc
    libclntsh.so.10.1`kghgex+0x1aa
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kpuhhalo+0x1fd
    libclntsh.so.10.1`kpuex_reallocTempBufOnly+0x5f
    libclntsh.so.10.1`kpuertb_reallocTempBuf+0x36
    libclntsh.so.10.1`kpudefn+0x2d1
    libclntsh.so.10.1`kpudfn+0x39e
    libclntsh.so.10.1`OCIDefineByPos+0x38
    scrubber`_ZN29clsDatabasePhysicalHostOracle6DefineEN7voyager15eBayTypeDefEnumEiPhiPs11EnumCharSet+0x17f
    scrubber`_ZN18clsDatabaseManager6DefineEN7voyager15eBayTypeDefEnumEiPhiPs+0x13c
    scrubber`_ZN17clsDatabaseOracle13DefineLongRawEiPhiPs+0x2f
    3 45971 free:entry Ptr=0x2476ab30 Size=0 TS=1568035639035363 FreeTime=2008 Jul 20 23:26:09
    libc.so.1`free
    libclntsh.so.10.1`sktsfFree+0x18
    libclntsh.so.10.1`kpummfpg+0xb6
    libclntsh.so.10.1`kghfrempty+0x17c
    libclntsh.so.10.1`kghgex+0x13c
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kpuhhalo+0x1fd
    libclntsh.so.10.1`kpuertb_reallocTempBuf+0x8f
    libclntsh.so.10.1`kpudefn+0x2d1
    libclntsh.so.10.1`kpudfn+0x39e
    libclntsh.so.10.1`OCIDefineByPos+0x38
    scrubber`_ZN29clsDatabasePhysicalHostOracle6DefineEN7voyager15eBayTypeDefEnumEiPhiPs11EnumCharSet+0x17f
    scrubber`_ZN18clsDatabaseManager6DefineEN7voyager15eBayTypeDefEnumEiPhiPs+0x13c
    3 45966 malloc:return Ptr=0x2532d150 Size=2097220 TS=1568035639040090 AllocTime=2008 Jul 20 23:26:09
    libc.so.1`malloc+0x49
    libclntsh.so.10.1`kpummapg+0xcc
    libclntsh.so.10.1`kghgex+0x1aa
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kghgex+0x1e6
    libclntsh.so.10.1`kghfnd+0x28a
    libclntsh.so.10.1`kghalo+0x669
    libclntsh.so.10.1`kpuhhalo+0x1fd
    libclntsh.so.10.1`kpuertb_reallocTempBuf+0x8f
    libclntsh.so.10.1`kpudefn+0x2d1
    libclntsh.so.10.1`kpudfn+0x39e
    libclntsh.so.10.1`OCIDefineByPos+0x38
    scrubber`_ZN29clsDatabasePhysicalHostOracle6DefineEN7voyager15eBayTypeDefEnumEiPhiPs11EnumCharSet+0x17f
    scrubber`_ZN18clsDatabaseManager6DefineEN7voyager15eBayTypeDefEnumEiPhiPs+0x13c
    scrubber`_ZN17clsDatabaseOracle13DefineLongRawEiPhiPs+0x2f
    scrubber`_ZN5dblib11DbExtractor18DefineLongRawFieldEiPhiPs+0x2b

    Assumption : You are using OCIHandleFree((dvoid*)DBctx->stmthp,(ub4)OCI_HTYPE_STMT);
    There are two scenarios here the LONG Raw mapping and release of memory.
    Unlike the other data types LONG Raw memory mapping is different since the data type requires more memory chunks.
    45971 free:entry Ptr=0x2476ab30 Size=0 TS=1568035639035363 FreeTime=2008 Jul 20 23:26:09
    libc.so.1`free
    Since from the above statement it clear that free is called . Hence there may be chance in other area of the code I suspect the memory leak is (Like native storage).
    Moreover the standard OS behavior is that it will not release the Heap/Stack until the process is complete even the free() is called by the process. This is for performance on memory management.Having said that it should not increase the memory drastically when not required.

  • Dw.sap processes do not release memory on Suse SL9

    Hello,
    We have an ecc6 Ehp4 system running on ;
    One Central instance ; Hp-ux ia64
    6 Linux Dialog Instances ; Linux SUSE SLES9/X86_64 64BIT
    More than 30 Gb of physical memory have been assigned to each Linux application servers, but
    we are facing memory bottlenecks. after analysys, it turns out that some sap processes dw.sap
    do not release the memory.
    At the sap level, the DIA or BTC process is not running anymore.
    At the OS level the corresponding dw.sap process still uses big chunk of memory
    p01adm   10674  2.9 45.4% 20081372 14955448 ?   S    Oct03  77:58  |   \_ dw.sapP01_D01 pf=/sapmnt/P01/profile/P01_D01_aor3p01a1
    p01adm   20839  6.4 48.5% 20091644 15992276 ?   S    Oct04 121:43  |   \_ dw.sapP01_D01 pf=/sapmnt/P01/profile/P01_D01_aor3p01a1
    p01adm   25379  5.8 47.6% 20085096 15670868 ?   S    Oct04 106:47  |   \_ dw.sapP01_D01 pf=/sapmnt/P01/profile/P01_D01_aor3p01a1
    p01adm   29367  6.1 44.7% 20086804 14735952 ?   S    Oct04 110:44  |   \_ dw.sapP01_D01 pf=/sapmnt/P01/profile/P01_D01_aor3p01a1
    p01adm    1326  3.8 41.6% 20078600 13703268 ?   S    Oct04  66:53  |   \_ dw.sapP01_D01 pf=/sapmnt/P01/profile/P01_D01_aor3p01a1
    p01adm   21643  6.3 42.3% 20087888 13951496 ?   S    Oct04  98:53  |   \_ dw.sapP01_D01
    I had a look at SAP note 706071, but it doesn't corespond to our issue, anyone has any idea ?
    thank you
    Regards
    Raoul

    > * 6 Linux Dialog Instances ; Linux SUSE SLES9/X86_64 64BIT
    You're aware that SLES 9 is out of support since August 2011?
    Note 936887 - End of maintenance for Linux distributions
    > More than 30 Gb of physical memory have been assigned to each Linux application servers, but
    > we are facing memory bottlenecks. after analysys, it turns out that some sap processes dw.sap
    > do not release the memory.
    A SAP system uses shared memory, it's allocated on system start and not released until the system is stopped.
    If you run out of memory I would suggest that you check your memory configuration.
    > At the sap level, the DIA or BTC process is not running anymore.
    > At the OS level the corresponding dw.sap process still uses big chunk of memory
    They are attached to the shared memory segment, this is not exlusive memory.
    > I had a look at SAP note 706071, but it doesn't corespond to our issue, anyone has any idea ?
    Usually it's not a problem if the memory keeps being allocated if the system is properly configured. Shared memory disclaiming is available on Linux but it's not supported on your operating system.
    Note 724140 - Extended memory, release for operating system
    I would suggest that you first check your memory parameters, execute on an application server as user <sid>adm:
    sappfpar pf=/sapmnt/<SID>/profile/<instance_profile> check
    and post the output.
    Markus

  • SQL Server not Starting Up - Could not open error log file system error = 5(Access is denied.)

    Hi guys,
     I am working on issue with SQL Server 2008 R2 .. we rebooted the server and after that all SQL services is not coming up. below is the error from eventlog...
    SQL Server running under NetworkService account and has full control on this files..
    from Config Manager ....
    The request failed or the service did not respond in a timely fashion....
    From Event log..
    initerrlog: Could not open error log file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'. Operating system error = 5(Access is denied.).
    Any idea or workaround..?
    Thanks..
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach

    Finally I found solution and was able to bring back online the SQL Services...
    I had a very similar issue with the following error (event log):
    Description:
    The SQL Server (MSSQLSERVER) service terminated with service-specific error 17058 (0x42A2).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type:      Error
    Event Source:      MSSQLSERVER
    Event Category:      (2)
    Event ID:      17058
    Date:            19/05/2012
    Time:            10:20:14
    User:            N/A
    Computer:      NSQLXX
    Description:
    initerrlog: Could not open error log file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'.
    Operating system error = 5(error not found).
    In this case the ERRORLOG file had been marked as read only. This was following a scheduled automated boot.  -This
    was culprit
    MSSQL wouldn't not start until this file had been changed.
    http://www.experts-exchange.com/Database/MS-SQL-Server/Q_23951723.html
    Thanks everyone for your kind replies and time...
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach

  • SQL Server not working

    I had been creating a solution with SQL DB before I upgraded to Windows 7.  (64bit system)    Then SQL2005 doesn't work.         all my programs are messed up with the "Ignore and Continue"
    screen on all my forms.  I uninstalled SQL and went looking for a newer version.  I installed SQL2012, but VB won't let me connect to it.  I've tried this in a new project that is nothing but a blank form and a new database object
    - it won't let me set up the database (new connection)
    The error is: "Failed to generate a user instance of SQL server due to a failure in starting the process for the user instance."
    Shoud I get a different version of VB (2008)? 
    Do I need to uninstall and re-download SQL?
    Do I have the right SQL app? (I now have SQL2012 - 64 bit)

    Hi,
    Welcome to MSDN.
    I am afraid that this is not the proper forum for this issue, since this issue is mainly related to SQL Server, you could consider posting this issue in
    SQL Server forums for more dedicated supports.
    In addition, I found some similar threads, if you are using SQL Server Express, you could refer to this thread:
    Failed to generate a user instance of
    SQL Server due to a failure in starting the process for the user instance.
    If your application is ASP.net project and you are using SQL Server Express, you could refer to this solution:
    Problems with SQL Server Express user instancing and ASP.net Web Application Projects
    Thanks for your understanding.
    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.

Maybe you are looking for

  • Enforcing a strategy plan to only produce one order in a single month

    Hello All, I have created a strategy plan that kicks out orders monthly, quarterly, semi-annually and annually. I have used the cycle unit of "MON", so orders get generated in cycles of 30 days. Everything is working great. Now, here's a business req

  • GR-Non valuated flag is checked when using Order as account assignment Cat

    Hi, We are creating a Purchase Req using a Work order, but under the valutaion tab GR-non Valuated is checked and greyed out so the user can't uncheck it. I want user to select just the Goods Receipt Check but not GR-Non Val. I already chekced the co

  • A question about ejb3.0

    Hi I've got some store procedure. I am seeing the ejb3.0 is very easy to implement.. But I don't know the yield it has got. If I change business logic with the ejb3.0. Can it go more slow?. The store produre when you have got so many clients release

  • Doubt on 11g reports server (rwservlet.properties)

    Hi ,       We are using oracle fusion middleware forms & reports(11.1.1.2.0).For reports,we have setup standalone report server.As per my understanding by reading the documentation, Based on rwservlet.properties(server & in process parameters) under

  • Aperture duplicated all of my keywords...

    I had to rebuild the file allocation tables on my external hard drive. Aperture somehow duplicated all of the keywords and randomly, it appears, assigned the original keyword to some images and the duplicate keyword to other images. Is there any way