Memory Issues in my Ipad Application

Hi,
I have a main UIView (Say MainView)which holds the subviews[Other modules of the app]. If i add a new subview to MainView , i'm releasing the memory of that subview's controller(Say Controller_1) after adding its view(Controller1View) as a subview to the MainView also if i'm going to add some other new view(Controller2view) i'm removing the existing subview(Controller1View) from the superview.
If i'm again adding the controller_1's view as a subview , the allocations[In the instruments tool] is showing the number of live objects of Controller_1 as 2.
Why is it so? I'm releasing the controller's memory whenever i have added its view as a subview to mainview. It should be one right.Since i'm having only one instance of the controller @ a time.
Pls Help Me..

You have posted an iOS programming problem in the OS X Leopard's Printing, faxing, and scanning forum. There is a developer's forum in which you should post such questions. Questions regarding iOS programming should be posted in the forums at developer.apple.com. Membership is required but it is free.
If you are a paying iOS developer, then log into their dedicated forums for help.

Similar Messages

  • Out of Memory Issues in Plannign web application

    We have a issue with Planning application running in VM environment. I have noticed following entries in Hyperion Planning log as soon as user launches web forms. Some times this issue is causing serious trouble to my users as it is stopping planning service. Have you seen this issue before? We are using web logic as application server
    I would like to hear your comments and workaround for this issue
    ####<May 26, 2009 12:52:28 PM MDT> <Error> <HTTP> <VMSLCFBSR03> <HyperionPlanning> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1243363948772> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@598788 - appName: 'HyperionPlanning', name: 'HyperionPlanning', context-path: '/HyperionPlanning'] Root cause of ServletException.
    java.lang.OutOfMemoryError: alloc2DimArray - Object size: 0, Num elements: -1681747424
    at com.hyperion.planning.olap.HspFormGrid.compile(Unknown Source)
    at com.hyperion.planning.olap.HspFormGrid.compile(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.generateFormGrid(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.generateFormGrid(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.getEmptyFormGrid(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.getEmptyFormGrid(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.getDataGrid(Unknown Source)
    at jsp_servlet.__enterdata._jspService(__enterdata.java:3651)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at HspValidationFilter.doFilter(Unknown Source)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks,
    Naveen

    We are facing same issue and our environment is in IBM AIX machine and we did increase the java heap size. we have some customization on our weborms which calls sql package for validation of the dimensions.when ever the dataform is opened, workspace and planning goes down
    I am pretty much sure its nothing to do with customization, because we have one form which is lare number of rows when ever try to open it...it makes application to go down and its give us same error messages as you get.
    please do let me know when you have right solution for it.
    Thanks,
    Red
    [email protected]

  • Application is not working due to memory issue

    Hi Friesnds,
    Kindly help me regarding settings in java. Scenario is like that. I have one server having two jboss versions (jboss-4.2.3 GA and jboss- 3.2.6). Each having java memory (JVM settings) 1 GB. The total memory of that server is 3 GB.
    Problem is that every two days my application is not working due to memory issue. Once i freed the memory (through run the commands - (1). sync
    (2). echo 3 > /proc/sys/vm/drop_caches
    Application works fine.
    I heared that the above command (echo 3 > /proc/sys/vm/drop_caches) can't run frequently because of server crash.
    Kindly help me regarding this issue and provide the resolution.
    Let me know if you need more information from my side.
    Thanks
    Ashish Shukla

    All of the above.  I tested on 4 different networks and had no luck, I also had friends test my network and the other networks with their iPhones and all had no issues using FaceTime.
    Also after I wiped my phone (erased all content and settings) I was able to successfully initiate a FaceTime call with no changes to my network and was also able to initiate another call when connected to another previously tested network that didn't work before.  Once I restored from backup though, FaceTime stopped working again.
    I did find this discussion: https://discussions.apple.com/thread/5163024?start=0&tstart=0
    and tried the suggestions found there too.  That discussion describes my issue I am having as well.

  • Heap Memory Issue in weblogic 9.2 for a JSF 1.1 web application

    Hi,
    We are running a JSF application (Myfaces, facelets, tomahawk, richfaces & iBATIS) in weblogic 9.2 server on Solaris 10. This application is deployed in production and works fine under normal circumstances. But when there is a heavy user load we are facing a memory issue. The memory usage is gradually increasing and when it reaches to max, Full GC kicks in again & again which choks up all requests. We don't save anything in session scope. All our backing beans are saved in request scope hence they should be garbage collected after each request done, but this is not happening.
    We took the heap dump from production after this issue and analyzed it. After my analysis, I found all objects which are set in request object not being garbage collected and the root referers of all these objects is weblogic.servlet.internal.MuxableSocketHTTP.
    I reproduced the similar behaviour in one of our development environment using JMeter. I ran 100 concurrent users in JMeter for almost 1 hour and saw the similar behaviour. Below is the result of all weblogic objects which are still hanging in heap after test was over (I also ran manual Garbage Collector from admin server).
    1) weblogic.servlet.internal.MuxableSocketHTTP - 1774 objects - retained heap (1 GB)
    2) weblogic.servlet.internal.ServletRequestImpl - 1774 objects - retained heap (1 GB)
    My understanding is that every request made to weblogic server goes through the MuxableSocketHTTP object which creates the ServletRequestImpl to serve it. Once the request is served these objects are suppose to be removed. As a result of that whatever is saved in your request will still be hanging.
    I am not able to understand why these objects are hanging after request is done. Could anybody answer to my question. I appreciate your help in advance.
    The GC setting for weblogic server while startup is:
    -XX:MaxTenuringThreshold=15 -XX:+PrintTenuringDistribution -XX:+AggressiveHeap -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:PermSize=128m -XX:MaxPermSize=128m -Xms3g -Xmx3g -XX:NewSize=512m -XX:MaxNewSize=1024m
    Thanks MaKK

    What happened with this issue? We are seeing something similar on WebLogic 9.2 MP1 in Solaris (Jdk 1.5. patch 10. 32 bit). Out of Memory's with thousands if instances of weblogic.socket.MuxableSocket hanging around.
    Our thinking was initally the Java heap, then we thought that maybe the sockets weren't being closed properly, possible in WebLogic or in LiveCycle.
    Any info would be greatly appreciated.
    Snippet of our stack trace:
    <16-Feb-2010 04:30:13 o'clock GMT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
    java.lang.OutOfMemoryError: Java heap space.
    java.lang.OutOfMemoryError: Java heap space
    >
    javax.ejb.EJBException: EJB encountered System Exception: : java.lang.OutOfMemoryError: Java heap space
         at weblogic.ejb.container.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:145)
         at weblogic.ejb.container.internal.BaseLocalObject.postInvokeCleanup(BaseLocalObject.java:550)
         at weblogic.ejb.container.internal.BaseLocalObject.postInvokeCleanup(BaseLocalObject.java:496)
         at com.adobe.idp.um.businesslogic.directoryservices.DirectorySynchronizationManagerBean_f5g74_ELOImpl.synchronizeProviders(DirectorySynchronizationManagerBean_f5g74_ELOImpl.java:267)
    Joel

  • IPad 1 and memory issues

    I mean this thing is slooowwww. Many apps crash back to the home screen. I have an app called System and it is showing Wired: 59MB at 36.56% What is this? Apps that are automatically on my iPad? Active shows 2MB at 13.90% and I have nothing running except this app. The reason I am bringing all this up is I was wondering is there any way to speed this iPad up? I mean the memory is atrocious! This thing is slow. And it is a brand new one that I got from the Apple store. Granted, it is not an iPad 2, as I do not have unlimited wealth, as Apple assumes we all do, it is the iPad 1. Maybe the memory issue is having too many apps downloaded? I have absolutely nothing running in the background as I close every app I open because the iPad is so slow and crashes even default email back to the home screen at times! I just want to make this thing faster like the day I first got it. Right now, it is serving as a paper weight as I can't keep anything running for very long. Things run smoothly, yes, but many things do not. Still wondering what this Wired section is, as it is taking up so much of my memory. I have only 88MB free and as soon as I open any app, that diminishes rather quickly.

    No it's not jailbroken. I will never do that to any of my devices. I am talking about memory. I have plenty of storage. Just tired of apps crashing back to the home screen.

  • TO NOKIA SUPPORT: Application Manager Memory issue...

    There is a STRANGE memory issue with Application Manager and Nokia N80 device. It's present in both N80 and N80IE and tried with Firmware versions from v3.x to lastest v4.x one.
    When you have installed many programs, tested with more than 150 counting SIS plus JAVA, Application Manager gets unusuable reporting continuosly "Memory Full - Please close apps..." and you can't do anything with it...
    This issue happens even after starting device without any resident app loaded and 14 Mbytes of free RAM so I think this is a limited memory issue available for Application Manager
    A curious thing is that you can Run and Enter Application Manager and installed App list is showed but not complete, it list all the SIS files installed (I think it start to list that type) and then the JAVA ones is cutted and dont appear the full list of installed apps of this type.
    Another curious thing is that if you uninstall a SIS app and Run again Application Manager the list is filled with one more app of JAVA type so this sound like a MEMORY ISSUE or deliberating restricting number of app listed?
    Perhaps app listing could be stored in a temp file and partially loaded in pages so memory don't get overheaded... :-?
    Today with 1 or 2 GB memory cards, this is a SERIOUS ISSUE.
    Please, could you confirm this and point me where to report this issue so it can be solved in future firmware updates?
    Many thanks in advance.

    So hope i.I'm preparing a bug report to post here.Maybe with our reports the new firmwares will be even better...if some Nokia guy is looking at what we're speaking
    Ever dreamed of earning money online without wasting a single cent?Now you can:
    http:// tinyurl.com/2pfgv2

  • The Ap store on my iPad shows threr is an application update ready.  However thhere is no update.  My wife has the same issue on her iPad.  What needs to be done?

    The Ap store on my iPad shows threr is an application update ready.  However thhere is no update.  My wife has the same issue on her iPad.  What needs to be done?

    There are countless posts about this.  There's a problem at Apple's end and has been so for several days.
    However, I have no trouble updating using itunes on my computer and later syncing to my device.

  • Issue installing iPad Application!

    Dear All,
    Greetings,
    I've developed an iPad application using iOS 4.3 SDk.I tried to install the application in a device which runs on iOS 5 through iTunes. It ended up with error message saying: iTunes Sync 'application name' failed to install. But my application was recognized by iTunes
    I am clueless how to fix this issue, Is there any compatibility issues with iOS4.3 and iOS 5 ?
    Need help on this issue!!!
    Many Thanks,
    Regards,
    Balu

    Follow the walk-thru and links in TN 2250 - check the section 'Performing Common Tasks'

  • IOS memory issues & springboard app crashing

    I'm having an issue with my iPhone (and a 2nd level support tech had me run a diagnostic on my iPad and he said it is happening there too). Over the last month I've reset me iPhone four times and been given a new one in an effort to fix this and I'm kind of losing faith here.
    What happens with my iPhone is that the battery appears to be off to the races in an effort to get to 0 as quickly as possible. I have all but one application (OmniFocus) with background app refresh disabled. Bluetooth is turned off. Location services are enabled but nothing is using them.
    When I go in to see someone at the Genius bar they tele that the Springboard app is crashing and/or I'm having memory issues on my iPhone. Both my iPhone and iPad are running iOS 8.1.2.
    Does anyone have any idea why this is happening? My guess is this is a bug in iOS 8 but I'm open to whatever idea will help me resolve this.

    There is no "callibration" for the home button.  Anyone that tells you otherwise is as full of it as the Genius bar employee that says the button and device are working properly.
    To prove it is hardware, restore the device as new.  Do not install any apps.  Try using the home button.  Does it work consistently every time?  If it does... there is an issue with an App or something in your backup.  If it does not, then there is defnitively a hardware issue.
    Press Apple on this to ensure the issue is resolved before your warrnaty is up.  Might be as simple as having another Genuis at the Apple store evaluate the device.

  • Question for those with memory issues on k8n neo plat

    I have been having issues with my memory on the k8n neo platinum board since i built the system last month and i just recently discovered a fact I had overlooked.
    I Have discovered that  if i test the system while it is cool (having sat turned off overnight for example), then memtest will pass the ram just fine and the system will be stable for a short period of time, generally longer if no intensive applications are used, ie. doom3 vs. websurfing).
    This system, once it heats up ( seems mostly to be the nvidia 3 nb that needs to be "hot"- that is, a probe placed in contact with the module reaches about 58+ degrees c) then the system becomes unstable and memtest, if used, fails.
    Prime95, if used on it when its cool, will usually take about an hour or so to fail, but if its used on the system when its been running a bit ( temps from nb at 58c+ and memory module hot to the touch) then it fails after about 20-30 seconds.
    I have placed an active hs on the nb in an attempt to correct this, but temps still remain high with failures occuring.
    I have spent the better part of three days testing the sytem this way and the above facts have held true in all these tests.
    I have  tested at stock ratings ( not using "auto" in bios, but using "approved ratings" of 10 x 200 for fsb and timings of 2-3-3-7 for my ram at 1:1 (which is recommended as well) since i am testing for base stability at this point;Voltages have been left at auto settings, however.
    I was wondering if anyone else with memory issues could try this out and post if this seems to be the case for you as well.
    Perhaps the memory issues on these boards are directly related to a problem with the nvidia 3 chipset running too hot?
    Does anyone have a memory issue with these boards who is using water cooling on the NB ?
     Lack of issues from people using 'problem" memory, but having no failures with water cooled nb's would support my assumption.

    Yes i did mean chipset.  
    I am using a stock hs/fan from amd, which seems to run a tad hot but, considering that I wont overclock until I can get board stable, its not an issue. (runs 35-40 idle and up to 72 intensive). I need the warranty more then the extra mhz at present.
    I removed the stock heatsink from the nvidia chipset and bought a generic chipset cooler (green, very little in the way of fins and seems to be aluminum) with a small fan.
     I used a generic silver paste from Compusa to adhere both the cpu hs and the chipset.
    I didnt lap either hs, just installed each as per instructions on artic silvers website (figured it had to go on the same way even generic).
    I also bought a kingwin thermal center which i ran probes from to the cpu, case, and nb chipset.
     I am not using it to adjust fans so those arent connected - its just a reference temp I can see at a glance, esp considering the funky bios reading this boards been known to give.
    I assume from these responces that even a nvidia 3 250 chipset shouldnt get as hot as mine?
    I asked about that from the retailer i bought this from but he seemed to think it was "ok" at 50ish celcius, but then again he didnt look too confident when he said it, lol.
    Idle right now reads on Corecenter at 28 celcius for cpu and 33 celcius for the chipset, although, I have readings of 37 c and 43 c from the kingwin thermal center, which i believe to be more accurate.
    My voltage reads at 11.67 for the 12v line at idle right now.
    The psu i got is stick from the xblade case i bought in store. (http://www.xoxide.com/xblade2.html)
    I have a dvd burner, cd drive, and two maxtor ide hd's attached to the system;The only card is the agp.
    Is there a way to check and see if the cpu ispower starved? software monitor or even an external probe perhaps?
    I havent put a probe on it, but the ram came in its own heatspreader, which gets very hot to the touch as well.
    What temps should I be looking for on these items?

  • Embedded JMS/OC4J issue while running an application in Jdeveloper 10.1.3.2

    Hi,
    I am facing an issue while running an application on my laptop.I downloaded Jdeveloper 10.1.3.2.Installed Jheadstart along with that.
    Created a new application specified in HR demo.When I run the application I get following messages,After that it does not show my application pages.It does not even open browser window.
    [waiting for the server to complete its initialization...]
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/08/29 18:01:55 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    When I delete persistnce directory files under embedded oc4j (specifically jms.state), It logs following messages.But it does not run my application pages and not even open browser window to display some error.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:jdevstudio10132\jdk\bin\javaw.exe -client -classpath C:jdevstudio10132\j2ee\home\oc4j.jar;C:jdevstudio10132\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    07/08/29 18:06:16 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized.
    I tried by creating another standalone application with simple html page, it throws same logs and does not show up browser window.I even tried with Jdeveloper 10.1.3.3, but still same issue .
    can you please throw some light on this issue and any suggestion for resolutions.
    Thanks.

    Can someone throw somelight on this issue?
    I posted the same issue in Jdeveloper forum but did not receive any reply .appreciate your suggestions.
    Thanks
    Sekar.

  • JMS/OC4J issue while running an application in Jdeveloper 10.1.3.2/10.1.3.3

    Hi,
    I am facing an issue while running an application on my laptop.I downloaded Jdeveloper 10.1.3.2.Installed Jheadstart along with that.
    Created a new application specified in HR demo.When I run the application I get following messages,After that it does not show my application pages.It does not even open browser window.
    [waiting for the server to complete its initialization...]
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Aug 29, 2007 6:01:47 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/08/29 18:01:55 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    When I delete persistnce directory files under embedded oc4j (specifically jms.state), It logs following messages.But it does not run my application pages and not even open browser window to display some error.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:jdevstudio10132\jdk\bin\javaw.exe -client -classpath C:jdevstudio10132\j2ee\home\oc4j.jar;C:jdevstudio10132\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    07/08/29 18:06:16 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized.
    I tried by creating another standalone application with simple html page, it throws same logs and does not show up browser window.I even tried with Jdeveloper 10.1.3.3, but still same issue .
    can you please throw some light on this issue and any suggestion for resolutions.
    Thanks.

    I am also facing the same issue on my laptop. I searched for forum but no luck.
    appreciate if anybody can throw some light on this.

  • Memory issues AP3 & 10.9.1

    I've been using Aperture since version 1.0 and never have I had memory issues until now.
    HAs anyone come across issues with AP3 and 10.9.1
    "Your system has run out of application memory" ? and shows Aperture in red (paused)?
    I have 32GB ram, all SSD's and the ATI 5870 graphics card.
    Any thoughts/insight/solutions?
    I think I'm on the verge of just dumping Aperture and callling it a day - it's bad enough 10.9.1 is having issues with the finder.

    This is a known issue.
    It doesn't affect everyone, and for some people is resolved by switching off on-screen proofing.
    The work around for the moment is periodic restarts before the system runs out of memory. Hopefully a fix will be along shortly.
    Andy

  • Internal table Memory Issue Exception TSV_TNEW_PAGE_ALLOC_FAILED

    Hi experts,
    I am working on a conversiojn programme. This programme is dealing with 4 input files.
    Each of these files is having more than 50,000 records. I am reading the corresponding application server files to fill
    the internal tables related to these files.
    The files are being read properly and internal tables are being filled.
    However when i try to assign any of these 4 internal tables to other temproray internal tables in programme(requirement)
    i get a dump  TSV_TNEW_PAGE_ALLOC_FAILED.
    The dump is related to memory issue.
    I think The memory available in the programme at this point is not sufficient for table assignment.
    Please suggest any alternatives where i can save any memory .
    Changig of basis setting is not an option.
    Regards,
    Abhishek Kokate

    Hi Kiran,
    I am not agree with you , I am agree with Hermann.
    While writting file you restrict the record max 5,000 to 10,000 records and process don't store the mutch data into internal table.
    After every used refresh the internal table, Declare table where necessary.
    But you can try to avoid the copy cost.
    Rgds
    Ravi Lanjewar

  • Result Set Causing out of memory issue

    Hi,
    I am having trouble to fix the memory issue caused by result set.I am using jdk 1.5 and sql server 2000 as the backend. When I try to execute a statement the result set returns minimum of 400,000 records and I have to go through each and every record one by one and put some business logic and update the rows and after updating around 1000 rows my application is going out of memory. Here is the original code:
    Statement stmt = con.createStatement();
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                System.out.println("doing some logic here");
    rs.close();
    st.close();
    I am planning to fix the code in this way:
    Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,
                          ResultSet.CONCUR_UPDATABLE);
    stmt.setFetchSize(50);
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                System.out.println("doing some logic here");
    rs.close();
    st.close();But one of my colleague told me that setFetchSize() method does not work with sql server 2000 driver.
    So Please suggest me how to fix this issue. I am sure there will be a way to do this but I am just not aware of it.
    Thanks for your help in advance.

    Here is the full-fledged code.There is Team Connect and Top Link Api being used. The code is already been developed and its working for 2-3 hours and then it fails.I just have to fix the memory issue. Please suggest me something:
    Statement stmt = con.createStatement();
    ResultSet   rs = st.executeQuery("Select * from  database tablename where field= 'done'");
                while(rs!=null && rs.next()){
                 /where vo is the value object obtained from the rs row by row     
                if (updateInfo(vo, user)){
                               logger.info("updated : "+ rs.getString("number_string"));
                               projCount++;
    rs.close();
    st.close();
    private boolean updateInfo(CostCenter vo, YNUser tcUser) {
              boolean updated;
              UnitOfWork unitOfWork;
              updated = false;
              unitOfWork = null;
              List projList_m = null;
              try {
                   logger.info("Before vo.getId() HERE i AM" + vo.getId());
                   unitOfWork = FNClientSessionManager.acquireUnitOfWork(tcUser);
                   ExpressionBuilder expressionBuilder = new ExpressionBuilder();
                   Expression ex1 = expressionBuilder.get("application")
                             .get("projObjectDefinition").get("uniqueCode").equal(
                                       "TABLE-NAME");
                   Expression ex2 = expressionBuilder.get("primaryKey")
                             .equal(vo.getPrimaryKey());// primaryKey;
                   Expression finalExpression = ex1.and(ex2);
                   ReadAllQuery projectQuery = new ReadAllQuery(FQUtility
                             .classForEntityName("EntryTable"), finalExpression);
                   List projList = (List) unitOfWork.executeQuery(projectQuery);
                   logger.info("list value1" + projList.size());
                   TNProject project_hist = (TNProject) projList.get(0); // primary key
                   // value
                   logger.info("vo.getId1()" + vo.getId());
                   BNDetail detail = project_hist.getDetailForKey("TABLE-NAME");
                   project_hist.setNumberString(project_hist.getNumberString());
                   project_hist.setName(project_hist.getName());
                   String strNumberString = project_hist.getNumberString();
                   TNHistory history = FNHistFactory.createHistory(project_hist,
                             "Proj Update");
                   history.addDetail("HIST_TABLE-NAME");
                   history.setDefaultCategory("HIST_TABLE-NAME");
                   BNDetail histDetail = history.getDetailForKey("HIST_TABLE-NAME");
                   String strName = project_hist.getName();
                   unitOfWork.registerNewObject(histDetail);
                   setDetailCCGSHistFields(strNumberString, strName, detail,
                             histDetail);
                   logger.info("No Issue");
                   TNProject project = (TNProject) projList.get(0);
                   project.setName(vo.getName());
                   logger.info("vo.getName()" + vo.getName());
                   project.setNumberString(vo.getId());
                   BNDetail detailObj = project.getDetailForKey("TABLE-NAME"); // required
                   setDetailFields(vo, detailObj);//this method gets the value from vo and sets in the detail_up object
                   FNClientSessionManager.commit(unitOfWork);
                   updated = true;
                   unitOfWork.release();
              } catch (Exception e) {
                   logger.warn("update: caused exception, "
                             + e.getMessage());
                   unitOfWork.release();
              return updated;
         }Now I have tried to change little bit in the code. And I added the following lines:
                        updated = true;
                     FNClientSessionManager.release(unitOfWork);
                     project_hist=null;
                     detail=null;
                     history=null;
                     project=null;
                     detailObj=null;
                        unitOfWork.release();
                        unitOfWork=null;
                     expressionBuilder=null;
                     ex1=null;
                     ex2=null;
                     finalExpression=null;
    and also I added the code to request the Garbage collector after every 5th update:
    if (updateInfo(vo, user)){
                               logger.info("project update : "+ rs.getString("number_string"));
                               projCount++;
                               //call garbage collector every 5th record update
                               if(projCount%5==0){
                                    System.gc();
                                    logger.debug("Called Garbage Collectory on "+projCount+"th update");
                          }But now the code wont even update the single record. So please look into the code and suggest me something so that I can stop banging my head against the wall.

Maybe you are looking for

  • Text message on the new iphone

    is there a way for the message preview to not pop up. I do not want it to interrupt me. I can see when I have a message but I don't want to see the preview. Can you help?

  • FI Upload file (Approval Workflow)

    Hi All, Need some assistance: Currently our company has a standard approval workflow built.  So when we receive an invoice without a PO, we manually post the invoice to a GL & Cost Centre.  Once the invoice is coded, It's then sent to the GL owners t

  • Report S_ALR_87013542 strange behaviour

    Hi All, Report S_ALR_87013542 - Actual/Comm/Total/Plan in COAr crcy -  is showing up cross signs in some of the columns.When the cross sign (like any other column value) is clicked the line item detail are sown correctly. Has anybody encountered this

  • How can I get rid of old books that I have deleted from my device? It still shows up as purchased books on "Icloud".

    How can I get rid of old books that I have deleted from my device but still shows up as "purchased books" on "Icloud". I don't want to see some of these books at all. I can sort by one that are PDFs and ones currently on device, but it still gives op

  • Error in installation Oracle 8.1.6 on Fedora linux

    I am getting the following error message while installing Oracle 8i release 2 (8.1.6) for linux intel on Fedora Linux. "Symbol errorno, version GLIBC-2.0 not defined in libc.so.6 with link time reference (libzip.so)" Earlier I have sucessfully instal