GC with long period (3.5sec)

Hi
I am facing a very citical problem. We develop an JSP/Tomcat 4.1.x framework and use jdk 1.3.1
small introduction:
Additional we use RMI and a SAX-Parser to analyse the JSP-Sites. We use JDBC to connect Oracle 9 database server with a connection pool.
I use the jvm parameters -Xms and -Xmx of 128 MB
I try to explain my problem:
Sometimes one request to a JSP take 10 to 12 seconds or more. Sometimes it don't need so long. So i had the idea to implement a small performance class which trace me some critical sections in my code. But if i add up all the traced time, i get always 1.2 to 1.6 seconds.
What happened?
I use the -verbosegc option of the JVM and see that the gc works often with normal duration. But sometimes the duration is between 3.5 and 4.5 seconds. And this sometimes three times per request. (~12 sec)
I think this is to unusal to believe it due to the long duaration.
The heap size is throughout between 30 and 40 MB. (80 MB are free!)
What can be the reason for?
Are there objects which hold references to each other and the gc can release them? Other opinions?
I start with reusing Objects like StringBuffer and others. I use a profiler to see the most instantiated classes to make them if possible reusable. I this the right way?
I shall be highly oblidged if anybody can help.
best egards
Wolfgang

First thing to try (and this is just a guess, but empirically true) is to be sure to null-out everything that you are done with inside a method. I did a test once against 2 similar pieces of code (do 1 million times....) The gc was super-slow when it had to try to figure out which objects were dead.
This is more true with arrays. myArray = null. In collections, be sure to use the remove() method when you don't need something.
Simply put, clean up after yourself in the methods, and then the GC shouldn't spike-up like that.

Similar Messages

  • Acquire images and store to disk with long period in between?

    I am using an IMAQ PCI 1422 data aqusition board to run a camera. I would like to be able to take a sequence of snapshots and specify the delay in-between. I need the delays to be as short as 2 minutes and as long as 20 minutes. Is there any way to do this in Vision Builder? Every time I try to increase the skipcount to a number that large the program objects.
    Any advice that you can give me would be greatly appreciated.

    AMB,
    In Vision Builder for Automated Inspection, you should be able to add a delay object. You can input time in miliseconds that will delay inspection 2 and 20 minutes.
    A. Talley

  • I am using my Ipad on a remote craftshow site and am having problems with battery lasting 8 hrs. Can I use a 12v rv battery to recharge it or atleast maintain the charg over longer periods of time? I have a dc adapter. thanks

    I am using my Ipad on a remote craftshow site and am having problems with battery lasting 8 hrs. Can I use a 12v rv battery to recharge it or at least maintain the charge over longer periods of time? I have a dc adapter. thanks

    You should be able to use the battery if you get a car type charger which recharges mobile devices.
    The full size iPads use a 10-12W charger, whereas the mini uses a 5W charger. Many car chargers only supply 5W. But at 5W, the car charger should give you some extra time on your iPad. It would be best to use a 10-12W car charger.
     Cheers, Tom

  • I have a problem with my new ipad air 64g with cellular. When I off my ipad for a long period of time ( around 2 hours), my ipad air freeze. Nothing is showing on screen with any button except by pressing reboot (home   on/off button)

    I have a problem with my new ipad air 64g with cellular. When I off my ipad for a long period of time ( around 2 hours), my ipad air freeze. Nothing is showing on screen with any button except by pressing reboot (home   on/off button). Anyone out there can help. Thanks.

    I have a 64GB iPad Air WiFi+Cellular (Verizon), and I don't see the issues you are describing.  First I would suggest that you update your iPad to the newest iOS update.  If that doesn't help, then you may want to schedule an appointment at an Apple Genius Bar.  If you go this route, I suggest that you let the iPad sleep for long enough for the problem to arise before you go to your appointment.

  • Slow computer with spinning rainbow for long periods

    slow computer with spinning rainbow for long periods, how do I correct this ?

    Do you have any experience with hardware upgrades? Even a beginner could install some RAM in a Macbook, that is a very simple process and can often give you a major, noticable speed boost. For a more advanced upgrade, you can also replace your harddrive with a newer, faster one. I recomment ifixit.com for all the parts you might need to upgrade your machine. I have upgraded my White Mid-2010 Unibody macbook to 8GB of RAM and a 1TB SSD and it runs like a champ.

  • HT5455 Can long periods with no screen saver cause permanent image persistence or other damage to my IPS retina display?

    Can long periods of login screen idle or no screen saver cause permanent image persistence (or other damage for that sake) to my IPS retina display?

    Image persistance on Apple displays:
    http://support.apple.com/kb/HT5455
    Apple say this about LCD screen burn in:
    http://support.apple.com/kb/HT2807
    which includes suggestions for curing that effect.
    Alternatively:
    How to fix screen burn and/or stuck pixels on an LCD monitor:
    JScreenFix
    http://www.jscreenfix.com/basic.php

  • Display Data on waveform chart or XY graph over a long period of time

    Display Data on waveform chart or XY graph over a long period of time
    Can anyone help?
    I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi.  I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run.  I really want the display to show these changes over long periods (eg. days, months and even years).
    Problem.
    I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display  alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot).  I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of  2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of  days, months  and even years.  Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
    I really want the display to be like the one in in the second attachment.
    Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
    I will appreciate any help that can be given to me.
    Thanks
    Attachments:
    Real-Time Graph Display.vi ‏170 KB
    Sampe screen1.doc ‏37 KB

    Long term testing can be tricky- and we'l get into that later.  Lets start with the basics that you have wrong.
    The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
    You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
    But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application.  Your PC WILL loose power or need to be rebooted eventually.  Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies.  It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
    For an application like this I would seperate my "collection" and "Evaluation" operations. 
    Have one vi that takes the reading and writes it to a file at a configurable rate  You may want 1reading  per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability.  having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
    Have another utility that COPIES the files, reads them and displays the data you are interested in that day.  The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like.  Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
    Jeff

  • How can I record multiple signals for a long period of time?

    Hi, everyone
    I am new at labView I just recentlyl started using it. Right now I am working on this assignment
    that I have to display en record six different signals comming up from a DAQ. so basically What I did
    for my IV is placing a whileloop. Inside the while loop I set up the DAQ assistant and then I send that
    to a split signal function in order to split the signas that are comming from the DAQ ( so those signals
    are EMG1,EMG2, blood flow1, blood flow2, blood pressure, and AM stimulation) after I split the signals
    I send each individual signals to a waveforme graph, but my problem is that I need to record those individual
    signals for a long period of time every second for about 8 hours. so it will be really helpfull if someone can
    guide me through this. Thanks
    Regards

    Hi,
    With your while loop, you'd better use low-level VIs to write your data to a file. Please see attached...I've used text file function but if you need ta save a large amount of data, you may need to use binary file functions instead (nearly the same way to perform this whatever you chose text file or binary file function).
    Best,
    J.
    Attachments:
    RecordData.vi ‏27 KB

  • Problems with Long Interactive PDFs with Extensive Interactivity via Buttons and Hyperlinks

    I have inherited a project which requires the creation of large interactive pdfs with lots of buttons and hyperlinks. I am having continuing problems with buttons not working and long periods of wasted time as attempted exports fail.
    Background:
    The largest books range from 264 MB to 411 MB – (764 to 1024 pages).  Per book, the maximum number of buttons on each page is 16, linking separate files (subsections) in the book via text anchors.  The buttons are created using Master Pages which are set for each file (subsection) in the book.  50% to 60% of the pages in each file (subsection) will also be referenced as 2 hyperlinks.  One is the source page hyperlink on each workflow and the second is a listing on the source page as a possible navigation path. I have created hyperlink destinations for each page which is used to generate the source and navigation hyperlinks.  With 2 hyperlinks representing 50%-60% of the pages - that means the largest book contains a maximum of 1200 hyperlinks.  Each file (subsection) also has it’s own separate TOC and the bookmarks that are created  (optionally) during the TOC creation process.   As currenlty formatted, the book is primarily images of workflows which mean 50%-60% of the pages contain pdf images.
    Several questions:
    1.  How do I get my buttons to work consistently?  There is nothing worse than working hard and then ending up with faulty product.  I have been thinking about combining all the files into 1 document per book.  Then I could change the buttons to objects, add a hyperlink over each one and set them for a specific hyperlink destination.  Can I do that if the buttons are on Master Pages?  Can InDesign handle a document with 1024 pages?    I can't fix the problems in Acrobat later because it would mean 1024 fixes for just 1 button correction.
    2.  How do I stop InDesign from freezing when exporting these large pdfs?  It seems to wait until the final steps to crash which sometimes means a 4-6 hour waste of time per export. 
    3.  Are we making a mistake using pdfs as our workflow images?  I'm not pleased with the quality of the images we have and wonder if we switched to another image format if this would improve the results.   Would it be worth the effort and relinking?  I have been reading different information on what the preferred source image format is for InDesign.  One article I found yesterday says using pdf images is a problem.  Another site said the Photoshop, TIF and JPG are preferred but PDFs were also acceptable.
    4.  Do I need to propose scrapping InDesign as the source of the project?  If so, what application can better meet my needs?

    Those are the limitations you have to put up with.
    Apple doesn't follow the PDF spec. It chooses which PDF features it will support.
    As to the version number (v5 or v6 or the new multimedia features in v9), there is different support in different versions of Reader/Acrobat as the product has developed. You just need to post a message to downloaders that they need to view the file in Adobe Reader version X or above to get the best experience.
    Other industry standards face the same problem: How can you add new feature like multimedia? You can't always be backwards compatible.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Import Items Request remain in Status Pending Normal For a Long Period

    Hi,
    Import Items Concurrent Requests Remain in Status Pending Normal For a Long Period(30 minutes) Before Running.
    It is actually completing within 10 minutes after pending normal for 30 minutes.
    This problem is happening only with Import Items concurrent request, Other request are running as soon as they started.
    My Application version: 12.1.3
    Database Version:11.1.0.7
    My Standard Manager details Processes=16 Sleep Time=10 Cache=40
    Please correct, If there is need to change Standard Manager configuration...
    Plz reply soon.
    Regards,
    Alig

    Alig,
    Standard Manager is running this request, Import Item program request after the completion, creating Item categories for this it is taking time, that is the reason another import items request is waiting for the Item categories program to be completed.You need to find out why the "Item Categories" takes that long to complete.
    Do you have the statistics up to date?
    Enable trace as per these docs to find out why the request takes that long.
    How to Set a Trace with Bind and Waits from the Concurrent Request Form [ID 601647.1]
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    Thanks,
    Hussein

  • Where do changed data values goto if DB is in BACKUP mode for LONG PERIODs

    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time.
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs.
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.

    user13076519 wrote:
    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time. It writes just like it always does, plus it puts some extra in the redo log the [url http://oraclenz.com/2008/07/11/logging-or-nologging-that-is-the-question-part-ii/]first time a block is changed.
    >
    >
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs. This appears to be a typo (incompleteness, really) in the backup and recovery guide.
    The redo stream is not limited by the number of of redo logs, only the volume of data. When a log fills up, it gets archived. If all the logs get filled up before the first one is finished archiving, the db will stall until the next redo becomes available. The only limit to archiving is disk space (and bandwidth if that is an issue, which it can be in some configurations).
    >
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??Archived logs are archived, Oracle only reads them in recovery. You do not understand archive logs, read the concepts manual.
    >
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*Because it is overgeneralizing.
    >
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.Oh, you want to send me a gift for showing where in oracle it's documented? See [url http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:271815712711]here for something over a decade old.

  • My nano resets when i turn it on after a long period of time

    when i turn my ipod off for a long period of time (like a day or sometimes even a few hours) it wont turn on by the play button so i have to like push the select button and it comes on with the apple logo like it resetted. why is it doing this?

    Might be sleep/deep sleep you are referring to.
    http://docs.info.apple.com/article.html?artnum=60945

  • CS4 stops responding for long periods of time

    First of all, let me say that I am very enthused with the changes in CS4. I feel that this is the best update to PhotoShop that I have seen, and I am a user since version 3.0.
    The problem that I see, ocassionally, is that PhotoShop becomes non-responsive for a long period ie: 1-2 minutes. I have experienced this on both my desktop (64 bit Vista Ultimate and 64 bit CS4) and my laptop (32 bit Vista Ultimate). During this time the disk drive is continuously active as though it is swapping the file to disk. The file size, however, is not large enough to cause this and the utilization factor is shown as well below 100%. After a period of time the disk drive stops and CS4 becomes responsive again.
    The system is an AMD dual core processor with 6GB RAM on the desktop and 2GB RAM on the laptop. Both systems use SATA hard drives. The CS4 scratch disc is a separate dedicated drive on the desktop. Both systems use Nvidia video and open GL is working fine on both computers. Both computers have the latest Nvidia drivers. Since there are no open GL problems, I assume that the video drivers are okay. As I have said, I see this problem on both my laptop and my desktop.

    Thanks for the replies. The desktop was default to a net printer, however the laptop was default to a local printer. I will try a local printer on the desktop and will let you know the results in a few days.

  • Spinning rainbow wheel for long periods on File Open commands in Acrobat and Office 365 programs

    Hardware & Software:
    MacBook Pro (17-inch, Mid 2009)
    77GB of free hard disk space
    8GB RAM
    Running OS X Yosemite (Version 10.10.2)
    Over the last few days, when I try to execute a File Open command from Adobe Acrobat or Office 365 programs (even from an innocuous location such as Documents), I get the spinning rainbow wheel for long periods of time (10 seconds to minutes) before I am able to select a file to open. I copied messages from Console after a File Open command for each of Adobe Acrobat and Excel (the selected location was Documents), given below:
    Excel Log Messages
    2/24/15 5:50:50.970 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Microsoft Excel" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:51:01.280 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.739 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Microsoft Excel" after 11.77 seconds (server forcibly re-enabled them after 1.00 seconds)
    Adobe Acrobat Log Messages
    2/24/15 5:58:22.145 PM     bird[257]        Assertion failed: ![_xpcClients containsObject:client]
    2/24/15 5:58:23.454 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Acrobat" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.722 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Acrobat" after 7.27 seconds (server forcibly re-enabled them after 1.00 seconds)
    Can anyone give me an idea of what these messages mean and how I can solve this problem?
    If I'm not in the correct Community for this question, could someone kindly tell me where I should re-post?
    Thanks.
    David Walker

    Yes; I have previously connected to an iMac at this location using File Sharing.  However, in my attempts to solve this problem last week, I had already unchecked File Sharing in System Preferences.  Tonight, I also deleted the folder from the window in the File Sharing System Preferences page, then rebooted.  The problem still persists.
    I try not open files across a server line, i.e., I try always to copy a file to the local computer and open it there.  I may have gotten careless and tried to open a file from the Windows server with either or both Acrobat and Office 365.  Although this was an SMB share, is it possible that these programs are now trying to connect to the Windows server on a File Open?
    I had about decided to quit chasing this problem; we spend about two weeks every two months at this Boston location, and I'll be returning to my Florida home this weekend.  So I decided I would see what the situation was when I returned to my native habitat, although I may be chasing this problem again in our trip to the Boston area in April.
    The other thing I wondered (I guess I can't quite let it go), is whether there is a command line in Terminal that would kill all AFP shares.
    In any case, thanks for your help; you're very knowledgeable.

Maybe you are looking for

  • Is there a factory unlock that I can buy to unlock an IPhone  5c locked to Sprint

    Please help. I bought an IPhone 5c locked to Sprint from an eBay seller. It was only slightly discounted so not cheap! My daughter searched in eBay and we paid with her birthday money. I thought any phone could be unlocked as did not think eBay would

  • How do I create individual xml files from the parsed data output of a xml file?

    I have written a program (DOM Parser) that parses data from a XMl File. I would like to create an individual file with the corresponding name for each set of data parsed from the xml document. If the parsed output is Single, Double, Triple, I would l

  • PSE 6 for Mac and Raw 5.4

    In the download section of Adobe.com, it said RAW 5.4 was usable in PSE 6, so I downloaded the update.  Is there any good reason I can't open it.  It tells me to "Quit"... which is not a nice thing to say (maybe I need thicker skin!).  Any advice?  

  • No icons on screen

    I loaded two security updates today and restarted my comp. The only thing that now shows on the screen is the dock. Help

  • ALV tree - run time error.

    I'm trying to creat an ALV tree with the format exactly the same as BCalv_tree_simple_demo program, except adding one more node. I create a database table in se11 and exporting this table to ALV. However when i run it, it showed run time error that "