A big problem: The Application Deads During Running.

Hi! everyone:
We four colleagues are developping an application use the observer/observerable pattern. In the normal case, this application starts about 20-40 threads some of which repait the GUI and some manipulate the database. With no exception and runtime error, the problem seemed strange: the computer will dead after 3 or 4 hours after start. We have tried resolve this problem through every way, but failed. And it's not seem to be the problem of system resource.
any advice will be appreciated.
thanks!
Dunhong Zhao.

Thanks for your response!
Our OS version is Windows98 4.0 and JVM is 1.3.0.
We have figured out that the system resources are over-consumed, especially the CPU. But we have no idea to find out where is the problem. We have redesign a thread that speeches the alarm messages and the thread that repaints the GUI, the application works better, but the problem still exists. I don't know much about java's garbage-collector mechanism, maybe this is the source of our problem? should I call the System.gc() every time when I finished the repainting? but I find it consumes more time this way. Maybe it's because we have used too much threads, and some of them cause a traffic jam?
thanks again.
I'm waiting for your advice.

Similar Messages

  • How to let the user know the application is still running during SQLite reads

    I'm using an SQLite database to read and write to my application. In some places it has to do very large reads and writes and the application comes to a standstill for like 10 seconds while this is happening. I've tried calling showBusyCursor(), but it only works if I call that function and then set a timer to execute the sql query. But the busy cursor also freezes once the connection starts.
    Why doesn't the showBusyCursor work during this time? Are there any other things I can do to the application to ensure the user that it is not frozen and just processing?

    Keep in mind that I haven't actually implemented this yet, but my path is headed right in that direction in the next few days. From wh
    at I have read you can access the database in two modes: synchronous and asynchronous. From your description it sounds like you are accessing the database in synchronous mode, which will stop the application thread until the database thread is completed.
    To get around that limitation you will want to run your database accesses in asynchronous mode, so that the application will continue running while the database is being accessed. What you do then is implement a listener on the database that will call a function that will hide the waiting cursor or image. Then you start the waiting indicator in the application. Once the database is done, it will trigger your listener and remove the waiting indicator, allowing the user to once again interact with your app.
    Hope this helps!
    ~Mike

  • When I am listening to the radio (streaming through itunes) my macbook pro will log me out, quitting all the applications I have running (often firefox, word processing, itunes, etc). Why?

    When I am listening to the radio (streaming through itunes) my macbook pro will log me out, quitting all the applications I have running (often firefox, word processing, itunes, etc). Why?
    It's very frustrating and I don't understand why it happens. It might happen other times, but I notice it the most when I'm streaming the radio through itunes, though I think it's also happened when I'm streaming music or shows from NPR, so I don't actually know if it's an itunes thing, or an internet thing? Or just my computer being stupid?  But how can I fix it?
    Thanks!

    My best guess at this point is a problem wwith 10.5.8
    It seems clear to me that sometimes, seemingly randomly, software will access the video card (flash player, quicktime, Safari's HTML5 video player, etc) and it will cause a freeze and then log out.
    However - it could just be video card + processor under load.
    This didnt happen before 10.5.8 and I'm thinking it's not the new 27" display causing the issue.
    I'm going to attempt to find time to revert back to 10.5.0 and then combo update back up to 10.5.7 which may be difficult as our IT is remote and we don't have access to Snow Leopard discs.
    I may just have to bring my own in.

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

  • How to hide the Parameter field during Run time?

    Hi,
    How to hide the Parameter field during Run time?
    I have a parameter field which behaves differently depending on the User logged in.
    I am using reports 10G
    For ex: I have 3 field created in JSP
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user = 'SUPER show all the parameter
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user is 'GATEKEEPER" Just show
    PROVIDER
    FROM DATE
    END DATE
    Can I do that?
    Please help
    Thanks.
    KK

    hi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.

  • I downloaded the Windows 64-bit version of iTunes, but the application won't run. It comes up with Apple Application Support - Error 2.  How can I fix this?

    I downloaded the Windows 64-bit version of iTunes, but the application won't run. It comes up with Apple Application Support - Error 2.  How can I fix this? I have uninstalled and reinstalled it several times and it still doesn't work.

    What computer do you have?  is it 32 or 64 bit operating system?

  • Why can't I close the application that is running ...

    Teach me how to close it...
    even if I let my phone standby for 24 hrs, that application (music player)still running
    I didn't play any song
    if I let my phone shut down, of course all the application will stop running, but when I mistakenly click the music player,
    the application will run for whole day until I let my phone shut down...

    Invoke the music player, Options -> Exit. It's the last one in the list
    Cheers,
    DeepestBlue
    5800 XpressMusic (Rock Stable) | N73 Music Edition (Never Say Die) | 1108 (Old and faithful)
    If you find any post useful, click on the Green "Kudos" Button on the left to say Thank You...

  • Though installed firefox 10.0, I recently have the application updater.exe running as soon as firefox is launched. The problem disappears when forcefully closing updater.exe, then also firefox calms down. How to avoid this problem?

    It consumes 30% of cpu and takes with it firefox, together consuming more than half of CPU and going on >1/2h.
    This is a new phenomenon which slows down all other activity on my computer.

    After updating to version 10 I closed Firefox.
    I noticed that there was a lot of CPU activity.
    Checked Task Manager and noticed that in Processes, firefox.exe and plug-in container were running. Opened Firefox and closed again but the processes were still running in TM.
    Highlighted firefox.exe in TM and clicked End Process. Both processes disappeared from TM.
    Have opened and closed FF a couple of times since with no problem.
    However, the OP seems to indicate that this is a problem that re-occurs.
    Why is FF not shutting down properly? Is it possibly something to do with the automatic check for add in/extension updates?

  • Just One Problem - The Application Can't Be Found

    I've successfully moved from a Mac Pro (2,1) to a Mac Mini (6,2), running OS 10.9.5 and iTunes 12.0.1.26. There were several glitches during the move, but I finally associated my iTunes folder, now on an external HD, with the application using the option key during launch method. Everything works, iPhones, iPads, iPods all sync properly, all the playlists are there and play all songs, the App Store and iTunes Store function normally using my single Apple ID.
    Just one problem.
    When I try to play content from within the iTunes Music [Media] folder, either by double-clicking on a track or by control-click "Open With", I get an error message "The Application Can't be Found".
    My iTunes Library goes back to iTunes 3 and contains over 350 GB media. This new behavior is worrying, because I don't understand why moving the iTunes Folder should have caused this. Any ideas will be appreciated.

    Thanks for replying.
    Yes, from within the iTunes app all behaviors appear normal. I should test if tracks or other media that are not inside the iTunes Library respond the same way.

  • HT204150 After having upgraded to mountain lion, the application "contacts" doesn't run. I don't see any contact and add new contacts . The application doesn't run

    After having upgraded to mountain lion, why the application "contacts" doesn't run? Why is impossible add a new contact and I don't see old contacts that I can see on my Ipad?

    I have the same problem. I would like to include this information:
    .- A message "error CoreDAVerrorDomain 1" is shown
    .- with other user, in the same MAC I do not have the problem

  • Problem with "Application lanucher and run as an system user

    Hi
    Im trying to distribute
    Application Lanucher NT Service was not found to run the application as system user.

    Mossbrant,
    > Im trying to distribute
    >
    > Application Lanucher NT Service was not found to run the application as
    > system user.
    >
    I guess this is a duplicate of the one below? I will anser that one.
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    Novell has a new enhancement request system,
    or what is now known as the requirement portal.
    If customers would like to give input in the upcoming
    releases of Novell products then they should go to
    http://www.novell.com/rms

  • Changing data in the table control during run time of transaction F-28

    Dear Experts,
    in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
    Best Regards
    Venkat

    Hi Venkat,
    Use the appropriate sort key in the GL to fill up the assignment field automatically.
    U can create ur new sort key through OB16
    Regards,
    Kiran

  • Most of the applications won't run..

    after i had updated My phone from symbian Anna to symbian belle,it works fine at first...but after sometimes,most of the applications wont run.(i hope i did nothing)
    let me label the applications.(these applications are packed with symbian belle update)
    they are shazam,font magnifier,ovi store,ovi maps,traveller.photo editor,video editor...
    I had removed some of the applications but some of them Cant be removed.
    I had tried hard reset My phone, sadly, it didnt work and it shown misc at the shortcut That i removed..
    What should i do
    Solved!
    Go to Solution.

    @shuin93
    Have you tried re-installing existing device software with Nokia Suite?
    Happy to have helped forum with a Support Ratio = 42.5

  • Its Urgent! J2EE Server Started but the Application is not running?

    J2EE server starts ok, I deployed the application successfully but when I open the URL http://localhost:8000 to start the application in browser it shows errors e.g
    Error: 500
    Internal Servlet Error:
    java.lang.NoSuchMethodError
    at com.sun.web.security.SecurityInterceptor.setSSLAttributes(SecurityInterceptor.java:56)
    at com.sun.web.security.SecurityInterceptor.preInvoke(SecurityInterceptor.java:83)
    at org.apache.tomcat.core.ServiceInvocationHandler.preInvoke(ServletWrapper.java:615)
    at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:531)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
    at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
    at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
    at java.lang.Thread.run(Thread.java:484)
    Please Help me its very Urgent

    I deployed the application successfully, J2ee server started successfully but when I open the browser and try to run the application or view the welcome page it shows the above mentioned error.

  • Why does the application built executable run slower than my developement lib.

    The Response given was LabView 5.0.1.f1 specific. Iam however, using LabView 6.i. The Application runs approximatley 3 to 40 times slower than the developement library. Additionally the Write to spreadsheet data is corrupted when using the application executable. Is there a different solution for 6.i ????
    Tnx
    Len Kraus

    That does not sound right. I recommend rebuilding your VI. Beore you do, open the top level VI and press contol-shift-run arrow to perform a manual binary recompile. This makes LabVIEW recompile the whole code. Most times you will not see anything happen but occasionally an error will surface. Be sure to save the VI then rebuild it.
    You may also need to reinstall the LabVIEW run time engine and/or LabVIEW. I would start with the run time engine first.

Maybe you are looking for

  • Get kernel panic when I burn DVDs

    when I burn several DVDs using the internal DVD burner on my 1.25 Ghz G4 running OS X 10.4.11, I am getting a kernel panic that tells me to reboot my computer. I'm using Toast Titanium 8 to burn with. Any ideas how to prevent this? Here's the details

  • HP Color LaserJet CM2320nf MP scanning to a PDF

    I  have a HP Color LaserJet CM2320nf MP in my classroom. I need to to be able to scan to a PDF for my confidential documents. I have tried unistalling, reinstalling, setting up printing preferences, updating adobe, and using a different computer.It h

  • I cant get my itunes to work

    why is my itunes account blocked

  • Oracle database Connectivity issue

    We are using Oracle 11g database with java 1.6 When i am deploying my application i am getting below error 09:48:13,604 INFO [STDOUT] SQL Exception occured: 09:48:13,605 ERROR [STDERR] java.sql.SQLException: 09:48:13,607 ERROR [STDERR] at oracle.jdbc

  • Ext4 problem - ENOSPC bug

    I get a serious number of error messages in /var/log/messages.log and they all look like this: Apr 22 07:03:40 deskarch kernel: ext4: find_group_flex failed, fallback succeeded dir 2596 On boot up today I got 2000 such messages. toad@deskarch 696\11