KeyboardFocusManager reason for memory leak?

Hi all,
with a memory leak detector we found that our application has massive memory leaks after opening and closing a JDialog and the reason we found was the following:
The KeyboardFocusManager has a private static HashMap in which the actual focus in each window is stored. This is done by storing key/value-pairs in the HashMap with window as a key and the Component having the focus on this window as the value. Now you can throw the reference to the component away by using e.g. theComponent.setEnabled(false) - the KeyboardFocusManager then stores the pair window/null in the HashMap - but we didn't find any callable method to remove a key/value-pair from the HashMap and so the reference to the JDialog (as the key!!) stays resident and we have the reason for the memory leak. Now I have a few questions to this problem:
1. Is it right in your opinion, that there is no method to delete the entry from this Hashtable?
2. If this is the case - we have the opinion that there must be a good time to delete this entry (e.g. when disposing the dialog). Do you see if there is an obvious reason that this opinion is false?
3. If no do you think this problem can be accepted as a bug by sun
Thanks in advance and greetings from
Holger

I have been seeing similar behavior; I too have not found all the
leaks. I think I have slowed the allocation by replacing some of my
'build array' functions with the combination of 'initialize array'
followed by 'replace array subset'. The drawback to doing it this way
is that you have a fixed maximum number of elements allocated just once
rather than allowing an array to grow incrementally. Please let me know
if you try removing build arrays and if that helps.
By the way, there is a checkbox under the options menu to deallocate
memory as soon as possible - if you don't mind that your program runs
more slowly, this may help to avoid the problem, at least temporarily.
-vinny
ciossek wrote:
> dear all,
> my labview program needs an increasing amount of memo
ry when running
> (at the time about 12k/s) which leads to swapping memory on my hdd.
> i have found out that calling cluster references like Controls[] or
> decos[] leads to this kind of memory leak and made a work around for
> that (simply calling it only once at runtime) but there are more
> memory leak(s)which i cannot find. The bugs that i have found
> searching the labview resources does not answer my problem.
>
> does anybody already found out more memory leak problems ?
>
> thanks

Similar Messages

  • How to configure license file for Memory Leak tool and WL Server 9.2?

    (I posted to general JRockit forum before realizing existence of this forum which is probably more applicable.)
    Here's our problem:
    Running latest version of WL 9.2 MP3 and JRockit Mission Control 3.0.1
    Able to run Mission Control, and connect to the WL Server and to run View Console with no problems.
    I can't get Memory Leak tool to run because it complains about needing a license file.
    First I tried with off the shelf WL 9.2 MP3.
    Get error:
    A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (192).
    Error: Can not find component Memory Leak Detector for JRockit * in the license file. Please check http://www.jrockit.com/license for license updates.
    So I downloaded license file from JRockit download site - wls92.zip. It contains several files, but no clear instructions on what to do with these files. I copied one of these files "LIC-WLSP92.txt" to my JRockit home as C:\bea\JROCKI~1\jre\license.bea
    Tried again. Restarted WL server. Restarted JRockit Mission Control.
    Get error: A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (3052).
    The license file does not exist at: C:\bea\JROCKI~1\jre\license.bea
    Any advise on how to install license or who to contact for help?

    Installed Mission Control 3.0.3.
    Got following message when I attempted to run Memory Leak:
    A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (192).
    Error: Can not find component Memory Leak Detector for JRockit * in the license file.
    Please check http://www.jrockit.com/license for license updates.
    I believe that we're using the latest downloads of WebLogic 9.2.x and JRockit.
    WebLogic is running using 9.2.3 and JRockit build R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-windows-ia2
    Contents of C:\bea\jrockit_150_12\jre\license.bea:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <bea-licenses>
    <license-group format="1.0" product="JRockit" release="*">
    </license-group>
    </bea-licenses>
    Could WebLogic be misconfigured?
    Any diagnostics to help figure out the licensing?
    Any other ideas?

  • How to configure JProfiler6 to monitor tomcat6.0 for memory leak

    Hello,
    Can anyone help. I am tring to work out the memory leak of my Web Application running on the local server. I have been told that jprofiler is a good tool for monitoring memory. I have dowloaded jprofiler6, but I dont know how to config the setting.
    what i have done is:
    1.from the Quickstart window->An application server, locally or remotely
    2.follow the wizard step by step
    1)choose application server Apache Tomcat 6.x
    2)application is located "on this computer"
    3) Chose JVM vendor
    4) wait for a connection from the JProfiler GUI
    5) Locate the start script :C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.20\bin\startup.bat
    6) port:8849
    7)finished
    After i done these, a error message came out said:
    "Could not connect ot 127.0.0.1:8849.Please make sure that the remote address is correct, the remote program is started properly and the netword route allows socket connections."

    Hi,
    The recommended solution is to download Oracle JRockit Mission Control (available here: http://www.oracle.com/technology/software/products/jrockit/index.html) and install on your server. The installers include Oracle JRockit JVM as well as Mission Control, and are free of license checks.
    If that solution for some reason is unfeasible you can download legacy development license files from here (http://download2.bea.com/pub/license/All%20Products/BEA_WebLogic.zip).
    The license you are looking for is named “LIC-WLRT20.txt”. Rename it to license.bea, and follow the instructions at http://edocs.bea.com/jrockit/geninfo/diagnos/conf_run.html#wp1077371

  • Looking for memory leak in labview 6.02

    dear all,
    my labview program needs an increasing amount of memory when running (at the time about 12k/s) which leads to swapping memory on my hdd.
    i have found out that calling cluster references like Controls[] or decos[] leads to this kind of memory leak and made a work around for that (simply calling it only once at runtime) but there are more memory leak(s)which i cannot find. The bugs that i have found searching the labview resources does not answer my problem.
    does anybody already found out more memory leak problems ?
    thanks

    I have been seeing similar behavior; I too have not found all the
    leaks. I think I have slowed the allocation by replacing some of my
    'build array' functions with the combination of 'initialize array'
    followed by 'replace array subset'. The drawback to doing it this way
    is that you have a fixed maximum number of elements allocated just once
    rather than allowing an array to grow incrementally. Please let me know
    if you try removing build arrays and if that helps.
    By the way, there is a checkbox under the options menu to deallocate
    memory as soon as possible - if you don't mind that your program runs
    more slowly, this may help to avoid the problem, at least temporarily.
    -vinny
    ciossek wrote:
    > dear all,
    > my labview program needs an increasing amount of memo
    ry when running
    > (at the time about 12k/s) which leads to swapping memory on my hdd.
    > i have found out that calling cluster references like Controls[] or
    > decos[] leads to this kind of memory leak and made a work around for
    > that (simply calling it only once at runtime) but there are more
    > memory leak(s)which i cannot find. The bugs that i have found
    > searching the labview resources does not answer my problem.
    >
    > does anybody already found out more memory leak problems ?
    >
    > thanks

  • JVM 1.5.0_11 and libumem -- need stack trace help for memory leak

    I'm trying to track down the cause of some memory growth in a java application. In my tests, the java heap appears to remain stable, but the overall memory footprint of the jvm process continues to grow (observed with pmap).
    I've run my application with libumem and have found what appears to be the culprit, but the memory allocation is in libjvm.so and I'm looking for ideas what might cause it.
    uname -a for my host
    SunOS thehost 5.10 Generic_118822-18 sun4u sparc SUNW,Netra-440
    Here is the trace from libumem:
    1f81c4c0::bufctl_auditADDR BUFADDR TIMESTAMP THREAD
    CACHE LASTLOG CONTENTS
    1f81c4c0 1f81a470 ac018b4577a0 7
    1f43f188 8cda6a4 0
    libumem.so.1`umem_cache_alloc+0x210
    libumem.so.1`umem_alloc+0x60
    libumem.so.1`malloc+0x28
    libjvm.so`void*os::malloc+0x28
    libjvm.so`void*ResourceObj::operator new+0x38
    libjvm.so`ThreadStackTrace::ThreadStackTrace #Nvariant 1+0x34
    libjvm.so`void VM_ThreadDump::doit+0xcc
    libjvm.so`void VM_Operation::evaluate+0x80
    libjvm.so`void VMThread::run+0x6e0
    libjvm.so`void*_start+0x208
    libc.so.1`_lwp_start
    What causes this invocation in the JVM? Is there a known memory leak associated with this?
    Thanks in advance for the assistance.

    More on this issue. The included program will continually allocate memory on the process heap until the JVM cannot allocate memory and it exits with the following exception.
    Exception java.lang.OutOfMemoryError: requested 16 bytes for C_Heap: ResourceOBJ. Out of swap space?
    import java.lang.StackTraceElement;
    import java.lang.Thread;
    public class TraceIt {
         public static void main(String[] args) {
              System.out.println("Starting trace");
              int i = 0;
              while (true)
                   if (i%100 == 0) System.out.println(i);
                   StackTraceElement[] se = Thread.currentThread().getStackTrace();
                   i++;
    }

  • Possible causes for memory leak in Java and Tomcat

    I would like to enquire what are the typical mistakes done by programmers that will cause memory leak in Java and Tomcat.

    Please refer the below site. It will give more points about the memory leak and how to rectify it.
    http://www.experts-exchange.com/Software/Server_Software/Application_Servers/Q_20981562.html?cid=336

  • App performs inconsistantly...how to check for memory leaks?

    I (was!) almost done with an app to submit to the app store but when I tested the final build on my iPad it started performing strangely.
    It had never done this before, but it's crashing almost CONSTANTLY. Every few seconds or so. I haven't changed much of anything since the last time I tested it and I can't really figure out what would cause it to crash so much.
    From the menu you can choose a button to go to other frames in the main timeline. Half of those work, half of them make the app crash. This is new and I think I might have a memory leak somewhere because it's consistently inconsistent.
    At first I thought I had a stack overflow somewhere; however, testing in mobile debug mode doesn't cause any errors or even warning output messages - nothing. It runs just fine.
    So is it possible that the problem is stemming from hardware? I can't imagine this app would be using up too much memory - it is full of vectors, but there's nothing more complicated than touch and drag because it's just a puzzle.
    How would I test something like this if debug mode isn't throwing any exceptions?

    You may want to try MonsterDebugger (free, open source). It also serves as a profiler. You might be able to get a better understanding on what your app is doing (and why it might be breaking on the iPad).

  • Issue in enabling dbx rtc for memory leak analysis

    Any help on this is highly appreciated ...
    Following is the issue:
    pass@odcsmoke1> dbx -C xfer
    changes (topic)
    The major new features of this release relative to 6.1 are:
    o The dbx environment variable "rtc_use_traps" has been removed.
    Traps are used automatically as long as the hardware is UltraSparc.
    o There is now some basic support for looking at core files from
    different versions of Solaris. See `help core mismatch' for details.
    o Stepping to a specific function support. See `help step to' for details.
    o Fortran intrinsics support on Intel has been removed.
    o Dbx automatically translates some old dbxenv variables to their new
    names. See `help dbxenv' for details.
    o The default command-line editing mode is now emacs. See "How do I enable
    command-line editing?" in FAQ for details (`help FAQ').
    o Two new collector commands have been implemented: `pause' and `resume'.
    See `help collector' for details.
    o The collector enable_once command has been removed.
    o The collector store command has been extended to include experiment groups.
    See also `help changes61'
    To suppress this message, add the following line to your .dbxrc file:
    dbxenv suppress_startup_message 6.2
    Reading xfer
    Reading ld.so.1
    Reading librtc.so
    Reading libm.so.1
    Reading libnsl.so.1
    Reading libresolv.so.2
    Reading libc.so.1
    Reading libgen.so.1
    Reading libdl.so.1
    Reading librt.so.1
    Reading libpthread.so.1
    Reading libthread.so.1
    Reading libsocket.so.1
    Reading libxfermain.so
    Reading libpass.so
    Reading libarsapic.so
    Reading libarsrecordc.so
    Reading libiaconfig.so
    Reading libarsconfig.so
    Reading libclientsock.so
    Reading libaio.so.1
    Reading libmd5.so.1
    detected a multithreaded program
    (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) check -all
    access checking - ON
    memuse checking - ON
    (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) check -leaks
    leaks checking - ON
    (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) stop in main
    More than one identifier 'main'.
    Select one of the following:
    0) Cancel
    1) `xfer`xfer.c`main
    2) `libxfermain.so`xfer.c`main
    a) All
    1(2) stop in main
    -d ecpix.conf -g y -P n <
    Running: xfer -f rbi_1.cfg -d ecpix.conf -g y -P n
    (process id 33)
    dbx: warning: A threaded program is not initializing libthread first!
    */opt/SUNWspro/WS6U2/lib/dbxruntime/librtc.so came before it.*
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libc.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libnsl.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libsocket.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libresolv.so.2 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libgen.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libaio.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/libmd5.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /lib/librt.so.1 came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libpass.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libclientsock.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libarsrecordc.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libiaconfig.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libarsapic.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libarsconfig.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/lib/sparc-sun-solaris2.8/libxfermain.so came before it.
    dbx: warning: A threaded program is not initializing libthread first!
    /usr/pass/etc/xfer came before it.
    stopped in main at line 461 in file "xfer.c"
    461 CHAR *Etc_Dir="/usr/pass/etc/";
    (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) showmemuse
    dbx: warning: check -leaks/-memuse must be issued before the run command for showmemuse to be used(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)
    pass@odcsmoke1> uname -a
    SunOS odcsmoke1 5.10 Generic_118822-30 sun4u sparc SUNW,Sun-Fire-V250

    Andrew is right, dbx 6.2 is very old; technically, it is supported on Solaris 10, but as you can see for yourself, there are issues to be fixed.
    Only limited support is available for this version, so if you have a support contract, please report this problem through the support channel. Better yet (and in case if you don't have support contract), upgrade to a more modern version. Since you are on Solaris 10, I'd recommend latest version of Sun Studio - 12 update 1; it is free for all uses and can be downloaded from here: http://developers.sun.com/sunstudio/downloads/.
    Should you have any questions about the upgrade, please post it here.

  • Memory Leak Issue in OBIEE 11g

    Hi,
    We have OBIEE 11.1.1.5 installed on a 32-bit Windows Server. We had almost 10GB of free space yesterday, but after a few users logged in, the free space started coming down until we were left with no space at all.
    Since then we have removed all the files that we could and created more and more space, but OBIEE seems to be eating it all up. I have seen a few posts for such issues with the Linux Systems. Has anyone faced this with windows? Also, is there any solution for this.
    Thanks,
    Naman

    Hi Naman,
    Oracle has provided set of patches to avoid memory leaks.
    1) For memory leak with OPMN, apply the following patches:
    Patch:12920592: OPMN HAS MEMORY LEAK
    Patch:12989751: OPMN MEMORY STILL GAINS AFTER APPLYING PATCH#12920592
    2) For the Presentation Server (sawserver) issue, apply the patch:
    Patch:13102881: DATALAYOUT METADATA IMPLEMENTATION HEAP INTENSIVE
    Rgds,
    Dpka

  • JSF: partial page rendering is causing memory leak leading to outofmemory

    JDeveloper 10.1.3.2.0
    JDK: 1.6.0_06
    Operating System: Windows XP.
    I test my application for memory leaks. For that purpose, I use jconsole to monitor java heap space. I have an edit page that has two dependent list components. One displays all countries and the other displays cities of the selected country.
    I noticed java heap space keeps growing as I change country from country list.
    I run garbage collection and memory usage does not go down. If I keep changing the province for 5 minutes, then I hit a java heap space outofmemory exception.
    To narrow down the problem, I removed the second city component and the problem still exists.
    To narrow it down further, I removed autosubmit attribute from the country component and then memory usage stopped increasing as I change country.
    country/city partial page rendering is just an example. I am able to reproduce the same problem on every page where i use partial page rendering. My conclusion is PPR is causing memory leak or at least the autosubmit attribute.
    This is really bad. Anyone out there experienced same issue. Any help/advice is highly appreciated !!
    Thanks
    <af:panelLabelAndMessage
    inlineStyle="font-weight:bold;"
    label="Country:"
    tip=" "
    showRequired="true"
    for="CountryId">
    <af:selectOneChoice id="CountryId"
                   valuePassThru="true"
                   value="#{bindings.CountryId.inputValue}"
                   autoSubmit="true"
                   inlineStyle="width:221px"
                   simple="true">
         <af:forEach var="item"
              items="#{bindings.CountriesListIterator.allRowsInRange}">
         <af:selectItem value="#{item.countryId}"
                   label="#{item.countryName}"/>
         </af:forEach>
    </af:selectOneChoice>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage
    inlineStyle="font-weight:bold;"
    label="City:"
    tip=" "
    showRequired="true"
    for="CityId">
    <af:selectOneChoice id="CityId"
                   valuePassThru="true"
                   value="#{bindings.CityId.inputValue}"
                   partialTriggers="CountryId"
                   autoSubmit="true"
                   inlineStyle="width:221px"
                   unselectedLabel="--Select City--"
                   simple="true">
         <f:selectItems value="#{backing_CountryCityBean.citiesSelectItems}"/>
    </af:selectOneChoice>
    </af:panelLabelAndMessage>

    Samsam,
    I haven't seen this problem myself, no.
    To clarify - are you seeing this behaviour when running your app in JDeveloper, or when running in an application server? If in JDeveloper, a copuple of suggestions:
    * (may not matter, but...) It's not supported to run JDev 10g with JDK 6
    * have you tried the [url http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk11.html]memory profiler
    Best,
    John

  • Active X, MS Office Spreadsheet 11.0 Memory Leak

    Hi,
    Can anyone see what I'm doing to cause a memory leak?  I am using LabVIEW 2011 (and this happens in 8.2.1 also).
    Is the last Close Ref. needed because there's an allocation evey loop?
    Is it bad that there's a buffer allocation on the right side of 'Value2'?
    I've attached an image and the actual VI.
    Thanks,
    Albert
    Attachments:
    Excel_LV2011_CalcFullk.vi.PNG ‏45 KB
    Excel_LV2011_CalcFullk.vi ‏12 KB

    I added the last Close Ref. because there is a buffer allocation on the ref. input of the Range node, I couldn't think of anything else to do to reduce memory usage, and the close seems to reduce (but not eliminate) memory leakage.
    I have the invoke node in the loop to simulate a more complicated situation that seems to be leaking memory and I want to exaggerate problems here so I know what should and should not be done.
    I also suspect that I don't really have a good way of checking for memory leaks.  All I do is run the VI(s) and then watch Mem Usage for LabVIEW in my task manager. I see memory usage go up 1.M over about 70 minutes but it usually doesn't go up with other VIs.
    Is Is there a better way?  Should I make a build of this VI and then use software that finds memory leaks?

  • Finding Memory Leak in LabVIEW

    Hi NG,
    we wrote a sort of hugh application in labview that collaborates with our
    ..NET driven
    device framework and a variaty of unmanged c++ libs.
    As we are now close to the release we did performance testing and it showed
    up that
    the app is consuming more memory continously.
    We used prefomance counter to check whether the managed objects might not
    get garbage collected
    but this is done OK, since the handle count stays at a constant level.
    We tried to figure out whether one of the c++ libs is causing the problem
    but this is not the case either, since
    the memory leak exists even if the lib functions are just not being called.
    Even labview profiler is not detecting any inconvenient memory consumption
    of any of our vis but
    windows task manager notices a constant memory consumtion of the executable
    (or of labview.exe itselve when running in
    dev. environment).
    Does anybody know what this might be? Has anybody a clue what other tools we
    could use to figure out
    where the problem is?
    Any help is greatly appreciated.
    Thanks in advance, Sebastian Dau!

    "mfitzsimons" <[email protected]> wrote in message
    news:[email protected]..
    > Sebastian,
    > Memory leaks can be VERY hard to find.&nbsp; I use the divide and conquer
    > technique that involves chunking (make into smaller code segments) your
    > code into smaller pieces and running the smaller pieces until you find the
    > memory leak.&nbsp; It can take weeks to find the source.
    you accelerate this process by using the labview profiler.
    > The most common is arrays or any data that increases in size as the
    > program runs.&nbsp; To fix this you can use a FIFO that allows only so
    > many elements to be added before deleting data out of the array.&nbsp; The
    > second source is opening references repeatedly and not closing them.&nbsp;
    > Look closely at any VI that open anything.&nbsp; Do a search for "Memory
    > Leak" on the discussion forum and you will find about 60 postings that may
    > help.&nbsp;
    > Matt
    > If you are using DAQ-MX <a
    > href="http://digital.ni.com/public.nsf/allkb/BAF29EE03747EE4B86256E9700541436?OpenDocument"
    > target="_blank">http://digital.ni.com/public.nsf/allkb/BAF29EE03747EE4B86256E9700541436?OpenDocument</a>
    > &nbsp;
    >
    arrays and refs have already been checked.
    thanks, Sebastian

  • Memory Leaks in Java

    Hi,
    I have a considerably large business application that consists of JSPs and JavaBeans which connects to a database. The application runs off a Tomcat server. Some information about the application is as follows:
    a. JDK version 1.4.2_11
    b. Database used is MS SQL Server 2000 with Server pack 4
    c. Running on Tomcat version 4.1.31. Tomcat is being run under services.
    d. Third party libraries -
         Cryptix32
         i-Net Crystal Clear
         CeWolf and JFreeChart
         iText
         jxl
    I noticed that the Tomcat memory utilization increases after a period of using the application.
    I recently purchased JProbe as it was recommended as a good tool to check for memory leaks in Java applications. Having purchased Jprobe, the team is now proceeding to investigate the cause of the problem.
    I would like very much to seek the expertise of the community here as to some technique / steps the team should take during the course of the investigation.
    We are currently following the following steps:
    a. Startup JProbe
    b. Set a JProbe J2EE memory session which points to Tomcat and JDK
    c. Run the JProbe session
    d. Do a Collect Stack Trace
    e. Login to our application, execute a "single function" and then logout
    f. Do an Include Heapdump in Snapshot
    g. Save the snapshot
    h. Stop the JProbe session
    i. Investigate the output
    j. Repeat (c) to (i) for other functions in our application
    Would appreciate if the community here could advice if we are proceeding with the investigation correctly and whether we are missing out on any memory leaks. All suggestions are most welcome.
    Thanks.

    Hi,
    Just a bit more information about the application:
    Application contains:
    - 4490 JSP files
    - 1492 Java Classes
    Application Server:
    - Tomcat 4.1.31
    - JDK 1.4.2_11
    Database:
    - Microsoft SQL Server JDBC 2000
    - Microsoft SQL Server 2000 SP4
    Other JAR files:
    - Cryptix 32
    - jxl
    - CeWolf
    - i-Net Crystal Clear
    All items mentioned above is running on a Server with Microsoft Windows Server 2003 with 2GB of RAM.
    The JSP communicates to the JavaBean which in turn will connect to the Database via JDBC. We are not using connection pooling at the moment.
    The SQL Server takes around 1GB of ram and I have configured Tomcat with an Initial 250MB and a maximum of 750MB of RAM. Tomcat is running under NT services.
    Tomcat memory slowly increases and it takes around 4-7 weeks before it reaches the maximum memory and we get the out of memory error.
    We have done checking for memory leaks using JProbe but have not found any leaks in our program yet. We did find some of our classes were not closing the connection. I am not sure whether this could be the cause of the memory leak. We have also checked for static members in our classes and have not found anything wrong with them.
    Can anyone tell me whether:
    a) Is 2GB RAM sufficient for this type of configuration?
    b) If we add more RAM will it be more beneficial?
    c) Our Tomcat web.xml configuration. Reloadable = true, Development = true. Will this cause memory leaks?
    d) Should we upgrade to Tomcat 5 or 6?
    e) Should we upgrade the JDBC Driver to 2005?
    f) Should we upgrade the version of JDK to 1.5 or 1.6?
    g) Is it recommended to restart Tomcat every now and then?
    Thanks.

  • What is memory leak

    hi,
    can any body tell me wat we mean by "memory leak problm"
    its resulting in failure of a process chain.
    thanks

    Hello,
    Memory leaks are created by keeping a reference to objects that are not in use any more. Often, container objects (like the Java Collection Classes) are the source of such leaks. All objects or classes that are used to collect information are candidates for memory leaks. Especially static variables are dangerous, because the class object itself is not released by the garbage collector. This has to be kept in mind when static lists or maps are introduced.
    chk this blog:
    /people/krum.tsvetkov/blog/2007/07/02/finding-memory-leaks-with-sap-memory-analyzer
    regards
    GVS

  • Listener memory leak.

    Hi,
    We'are using oracle database 8.1.7.4 OPS cluster on 2 nodes. Recentaly our listener in the node#1 has started leaking. How to findout the reason for this leak. And how to prevent this error?
    Thanks.
    Regards,
    Shabbir Hussain.

    You are in the wrong forum. If you have problem with the listener you can try to activate the trace. If you think it is something weird you can even open a TAR by Oracle.
    Bye, Aron

Maybe you are looking for

  • Cash discount in F-58

    Dear experts, When I am entering cash discount percentage in F-58, it is calculating on gross invoice value. Whereas discount should be calculated on net value (gross invoice value less TDS). Please let me know how to do it. Thanks in advance, Vijaya

  • How to desactivate faces in iphoto?

    Bonjour, Je viens de m'acheter un iMac. Je voulais transferer mes photos sauvegardés depuis mon macbook sur un disque dur externe, sur mon nouveau iPhoto. Mais au lieu de 4000 photo's que j'avais, mon iPhoto contient maintenant 17000 photos : parce q

  • How do change the sound level input at the premiere cs6

    Hello:          I would like to know how to change the sound level input al the premiere cs6?. Sincerely, Gabriel Conde

  • JSR 168 / WSRP support in EP

    Hi All, As I am getting no clear reply, I would like to ask the SDN-ers for help regarding the JSR 168 and WSRP support by the Portal. Can anyone tell me whether any of the above standards is supported by the NW'04 or NW'04s - and if not (i guess thi

  • Encore CS3 Disc is in drive, but installation is asking me to insert disc!

    I've got the disc in my drive bay. Autoloads, I click setup. It begins setup of Encore CS3... and then asks me to insert the Adobe Encore CS3 disc into D:\ drive! How is this even happening to me? Is there a way to fix it?