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 !!!! :(

Similar Messages

  • 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

  • Oracle JVM Garbage Collection not executing

    I am experiencing a problem with garbage collection when running a java stored procedure in an 9.2.0.3.0 Oracle database running on a Windows 2k computer.
    I have created a simple java class that represents a tree structure. Each instance of the class has a reference to it's parent and a Vecotor of all it's children. Each instance also has a Vector to hold name value pairs. I ran a program that creates 30 instances with 50 children each for a total of 1500 instances. Each instance has 30 properties(name value pairs).
    By using the debugger in JDeveloper and breakpoints I can watch the javaw.exe process's use of RAM.
    Start up: 6,788mb
    After creation of 1500 instances: 17,720
    After releasing all objects and calling System.gc(): 7,156
    I deploy the package to my Oracle database and perform the exact same routine using breakpoints and test procedures in plsql Developer. Using the breakpoints and watching the oracle.exe process's use of RAM I see:
    Start up: 81,116mb
    After creation of 1500 instances: 94,952
    After releasing all objects and calling System.gc(): 95,036
    When run in Oracle the resources are not released. Is there somthing special that needs to be called to get the garbage collector to do it's job when running in an Oracle database?
    Execution Instructions and source:
    run app.main from jdeveloper and app.main2 as a plsql stored procedure. I have included my test procedure at the end and the plsql stored procedure package declarations. I used debuggers and breakpoints to watch the process, there is probably a way to do this by outputting the current memory being used by I didn't know how. If you use debuggers and breakpoints then when running in JDeveloper put your breakpoints on the 3 assignments of breakpointVar in SimpleClass.main(...). When running the stored procedure test block put them on the 3 assignments of breakpoint_var in there.
    package mypackage2;
    public class app {
    private static SimpleClass topObject;
    public static void main(String[] args) {
    int breakpointVar;
    breakpointVar = 0;
    main2(30, 50);
    breakpointVar = 1;
    release();
    breakpointVar = 2;
    public static void main2(int numParents, int numChildren){
    SimpleClass temp;
    SimpleClass child;
    topObject = new SimpleClass();
    for(int i = 0; i < numParents; i ++){
    temp = new SimpleClass();
    addProperties(temp, 30);
    topObject.addChild(temp);
    for(int j = 0; j < numChildren; j++){
    child = new SimpleClass();
    addProperties(child, 30);
    temp.addChild(child);
    public static void release(){
    topObject.releaseAllDecendents();
    topObject.release();
    System.gc();
    private static void addProperties(SimpleClass toAddTo, int numProps){
    cimxProperty toAdd;
    for(int i = 0; i < numProps; i ++){
    toAdd = new cimxProperty("prop "+i,"value "+i);
    toAddTo.addProperty(toAdd);
    package mypackage2;
    import java.util.Vector;
    public class SimpleClass {
    private Vector _children;
    private Vector _props;
    private SimpleClass _parent;
    public SimpleClass() {
    _children = new Vector(10, 5);
    _props = new Vector(10, 5);
    _parent = null;
    public void addChild(SimpleClass toAdd) {
    toAdd._parent = this;
    _children.add(toAdd);
    public SimpleClass getChild(int index){
    return (SimpleClass)_children.get(index);
    public void addProperty(cimxProperty toAdd){
    _props.add(toAdd);
    public cimxProperty getProperty(int index) {
    return (cimxProperty)_props.get(index);
    public void releaseAllDecendents()
    SimpleClass temp;
    //remove all references to the the parent object from the children.
    for(int i = 0; i < _children.size(); i ++)
    temp = (SimpleClass)this._children.get(i);
    temp.releaseAllDecendents();
    temp._parent = null;
    temp._props.clear();
    temp._children.clear();
    temp = null;
    this._children.clear();
    public void release() {
    this._parent = null;
    this._children.clear();
    this._props.clear();
    package mypackage2;
    public class cimxProperty
    private static String _dateFormat = "MM/DD/YYYY HH:MI:SS";
    private String name;
    private String value;
    private String dataType;
    public cimxProperty()
    name = "";
    value = "";
    dataType = "";
    public cimxProperty(String Name, String Value)
    name = Name;
    value = Value;
    dataType = "UNKNOWN";
    public cimxProperty(String Name, String Value, String DataType)
    name = Name;
    value = Value;
    dataType = DataType;
    public String toString()
    return name + "["+dataType + "]: " + value;
    public void setName(String name)
    this.name = name;
    public String getName()
    return name;
    public void setValue(String value)
    this.value = value;
    public String getValue()
    return value;
    public void setDataType(String DataType)
    this.dataType = DataType;
    public String getDataType()
    return dataType;
    CREATE OR REPLACE PACKAGE JAVA_MEMORY_TEST AUTHID CURRENT_USER AS PROCEDURE release; PROCEDURE main2(p_num_parents IN NUMBER, p_num_children IN NUMBER); END JAVA_MEMORY_TEST;
    CREATE OR REPLACE PACKAGE BODY JAVA_MEMORY_TEST AS PROCEDURE release AS LANGUAGE JAVA NAME 'mypackage2.app.release()'; PROCEDURE main2(p_num_parents IN NUMBER, p_num_children IN NUMBER) AS LANGUAGE JAVA NAME 'mypackage2.app.main2(int, int)'; END JAVA_MEMORY_TEST;
    declare
    number breakpoint_var
    begin
    -- Call the procedure
    breakpoint_var := 0;
    java_memory_test.main2(30, 50);
    breakpoint_var := 1;
    java_memory_test.release();
    breakpoint_var := 2;
    end;

    When run in Oracle the resources are not released. Is there somthing special that needs to
    be called to get the garbage collector to do it's job when running in an Oracle database?Curious - I was always under the impression that you can not force garbage collection. All you could do was request it, and the JVM was free to do that when it was "good 'n ready", usually in a separate thread.
    I gather this from the API docs for system.gc() where it says "Calling this method suggests that the Java virtual machine expend effort ..." and the word "suggests" imlies that it is not required to run.

  • No garbage collection data/detailed memory use data in Wily?

    Hi All,
    We are running some portals on AIX (1.4.2 SR12). We have installed the wily agent on the portals and the enterprise manager on our solman server. When looking in the introscope workstation the heap usage of the JVMs are shown as it should. However, the J2EE GC Overview 1/2 & 2/2 don't show any detailed data regarding garbage collection and memory usage (e.g. tenured; eden; etc...). At this moment we use IBM PMAT for memory analysis, but this is not real time. We would like to see memory details real time using Wily.
    Does anyone else also encounters this problem?
    Any suggestions?
    Thanks,
    Bart.

    Hello Amit
    Can you please open new thread for your question ?
    People won't check this thread to answer your question because the thread is marked "answered".
    Kind regards
    Tom

  • Premiere Pro CS5 Mac 10.6.5 not releasing memory

    I have a Mac Pro running 10.6.5 Mac OS, 16GB Ram that I just installed today (had 8GB).  I opened up a rather large 11 minute PPro project.  I rendered it out.  Noticed that the Used Memory was getting larger, up to about 10GB where it leveled off for the remainder of the render.  After the render was done, the used memory stayed at 10GB.  I exited PPro, and it stayed 10GB.  Seems like it's not releasing the memory back to available or am I not understanding how either the Mac OS works with regards to memory or perhaps PPro?

    Yes, that appears to be the problem. I disconnected my secondary monitor (which does have a different vertical resolution) and the eyedropper appears to function properly.
    Okay, so now I know the cause of the issue. However, disconnecting and reconnecting monitors is not an acceptable workflow. Apparently this problem affects quite a few Premiere Pro CS5 Mac users with dual monitors since you referred to it as a know issue with all versions of Mac OS. Do you know if there is an update (not an upgrade) for Premiere Pro CS5 to address this?  
    Thanks.

  • Garbage Collecting and freeing memory in JTree

    Suppose you have a JTree with a model that takes a lot of memory. after you are finished using the tree you want to free this memory. so you go on and use the
    tree.setModel(null) method, hoping everything will be fine. to be extra sure you even set the root to null.
    what happens is that the tree view is cleared but the memory isn't.
    my conclusion is that somwhere in the tree package there are refrences to the tree root, model or whatever that keeps it from been garbage collected. to make sure my code doesn't keep any refrences to the tree model I am using a very thin class that only instantiates a tree and fills it with data. this class keeps no members, listeners, refrences and so on.
    calling system.gc() does nothing.
    Is there a simple way to clear memory in a JTree ?
    without using weak refrences and other unwanted complexities.

    Hi, thanks for the response.The C API version is 6.5.3 or 6.5.4.2, depending on the environment.I'll paste the code in here, but it is completely based on the sample programs so I'm not sure where else we could free up memory (any insights appreciated!):ESS_MEMBERINFO_T *pChildMemberInfo = NULL;sts = ESS_Init();if(sts == ESS_STS_NOERR){ sts = ESS_Login(srvrName, adminUserName, password);if(sts == ESS_STS_NOERR){// set the active dbsts = EssSetActive(hCtx, appName, dbName, &Access);if(sts == ESS_STS_NOERR){memset(&Object, '\0', sizeof(Object));// open the outline for use in subsequent callsObject.hCtx = hCtx;Object.ObjType = ESS_OBJTYPE_OUTLINE;Object.AppName = appName;Object.DbName = dbName;Object.FileName = dbName;sts = EssOtlOpenOutline(hCtx, &Object, ESS_FALSE, ESS_FALSE, &hOutline);if(sts == ESS_STS_NOERR){// get member names from outline, so// this section includes a number of // sts = EssGetMemberInfo(hCtx, // category, &pChildMemberInfo);// calls to query member names.// Then some calls are made to free // these resources:if(pChildMbrInfo){EssOtlFreeStructure(hOutline, 1, ESS_DT_STRUCT_MBRINFO, pChildMbrInfo);}if(pChildMemberInfo){EssFree(hInst, pChildMemberInfo);}EssOtlCloseOutline(hOutline);}}ESS_Logout();}ESS_Term();}

  • Java application not release memory

    I have java 1.3 or 1.4, my application start correctly.
    I have set heap a 4Mb but process java begin consume ram, initialy start with 7MB after 12-15 hour the process have above 60% system mem (128Mb).
    After 16-18 hour kernel kill process.
    I have Ubuntu distribution
    Thanks

    it is difficult to address this question without having a knowledge of the application. Here are some suggestions:
    (1) run the application from within Java Studio in debug mode. This will give you an idea of what is absorbing the memory. The idea here is to be able to watch your data structures grow. Any tool that allows you to do this will help. See http://developers.sun.com/prodtech/javatools/jsenterprise/index.html
    for Java Studio Enterprise.
    (2) the chances are very good that your application is creating some sort of Collection (Set, Hashtable, Vector, ...) and slowly adding to it. This is very common and a common cause of "memory leak".
    (3) The garbage collector in Java frees memory as objects go out of scope. If the objects never go out of scope, they are never garbage collected.
    (4) If you have these such objects or collections that must always be accessable, consider adding some caching mechanism (putting the data to disk) whereby keeping your datastructures smaller.
    (5)Also, when you say "set the heap" I am assuming you used the -Xmx and -Xms command line options. If not, look into these.

  • 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

  • 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

  • Photoshop does not release memory after closing document.

    When I close a large document Photoshop does not release the memory. If I open another document the program is slow and not resposive. If I close out of Photoshop and restart it then load the other document it is quick and responsive again.

    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.

  • CS4 32 Bit Not Releasing Memory

    Photoshop CS4 does not seem to release memory until I close the software. As an example I will open a D3x image file and maybe work on 3 layers of the image and at this point Photoshop is using up to 3GB of system memory.
    I then take this file flatten it and reduce it down to around 1333px and in Task Manager Photoshop is still using up 3GB of system memory. Only after about 5-10 minutes does it then drop down to 1.5 GB but keep in mind I only have a file that's about 2.4 MB in size open.
    Could this be due to the fact that I am running the 32-bit version of CS4 under a 64 bit OS? Any other ideas why Photoshop could be doing this?

    Chris
    I was wondering if you could help me. I have Photoshop CS4 and it works great after a fresh boot but hours later it annoyingly slower. I have to reboot to enjoy it again. Do you have any suggestions? I have Defragged, run spybot and cleared memory and nothing seems to make any difference.I was wondering if it had something to do with Memory and how it used or leadked. Thanks, Steve

  • After Effects 2014 not releasing memory

    Reposting this issue...
    The latest AE does not release RAM on Yosemite. Have installed Memory Freer app which does release it, but this is a little annoying and an issue from an older version I thought was fixed?
    We are on Mac Pro 5,1, 32gb RAM.

    What is the state of the Reduce Cache Size When System Is Low On Memory preference?
    See this page for details of that preference:
    After Effects CS6 (11.0.2) update

  • 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.

  • 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]

Maybe you are looking for

  • IPhoto issue when making albums

    While trying to make an album with blurb I encountered an issue with iPhoto. While tusing the share function to create an album (Full of the pictures I want to use in the blurb album) it 'quit unexpectedly due to core media plug in'. Do I have to rei

  • Running servlets on tomcat 4.1

    i have a few html files which access the servlets stored in web-inf\ classes directory. However when my html file tries to access the servlet, it gives 404 error. Let me know the settings to be done on tomcat to enable the running of servlets

  • Report ids

    How to run report from Menu in 10g IDS

  • Is Ipad for me?

    Is IPAD for me? I use a laptop (windows 7) I use it for 10 or so hours for facebook, youtube etc. I look at gamespot.com. and gmail and so on. I go to fishforums.net and post on the forum and read about fish. I think the book distribution apps sound

  • I've got an app frozen on the application page

    I purchased an app, but it didn't disappear after I bought it and I can't get it to clear the app store page.  It's frozen on there.  Help?