Question: DB2 V8.2.2 and speed of backups/restore with TSM

Hello,
our database is growing and our backups/restore takes longer and longer. We would like to now, if there is an existing IBM tool, with which we could exactly see where our bottleneck is. At the moment we are backing up with four sessions, a 1,7 terabyte database, we are using automatic buffer and parallelism, we have a four CPU (power 5, 1.9GHz) AIX server. The backup takes nine hours. We have identified five components which influense the backup time. CPU-Speed, SAN, Network, TSM and Sessions.
Regards,
Alexander

Hello Alexander,
just to give you my five cents.
I would recommend too (like Markus Döhr): Test the whole infrastructure for optimizing backup performance.
You have to keep in mind performance of SAN, Server (HBAs, bandwidth of system busses) and network. I would recommend for the network testing, a tool like netperf (originally from HP, but available for all SAP OSs - compiler necessary) to measure your network environment. You should figure out how much bandwidth one session could achieve. May be you should find out first which network buffer sizes TSM uses, to use the same buffers in the tests. For our environment it showed that we need 4 network sessions to utilize a 1GBit LAN completely. You should also keep in mind, that the system should have enough resources to handle the additional I/Os due to the backup without influencing the production to much.
Instead of using big buffers like Eric recommends, I recommend to use the auto tuning of DB2 backup, which comes with one of the V8 Fixpaks (I think with V8.2 (FP7)). In our test it speeds up the backup a lot. Just run the backup with the command:
db2 backup db SID online use tsm open 4 sessions
DB2 will automatically tune the backup to achieve best possible performance.
In our environment we run a 2.8TB Backup with a backup rate of around 600GB/h which consumes only 12,5% of the possible I/O bandwidth. We assume that this should be no problem even when few of our HBAs have problems (this happens not only in theory - already two times this year). We're using Legato Networker and running a 10GB ethernet exclusively for backup. We already saved the database within 2 hours 16 minutes; if necessary we could do even faster. I think the limit is at the moment is somewhere around 1.8TB/h, But this is neither necessary nor it makes sense (because this would have an impact on our production).
Best regards
Ralph Ganszky

Similar Messages

  • Hi there, I just bought an iMac 2011.  Just a quick question.  Are those keyboard and mouse batteries that comes with the package are rechargeable?

    Hi there, I just bought an iMac 2011.  Just a quick question.  Are those keyboard and mouse batteries that comes with the package are rechargeable?  Thanks!

    Mine was bought last year and they were not; it they don't say "rechargeable". they're not. I started to use rechargeable as soon as the original batteries died.

  • Erase and sync issues (backup/restore)

    Hello.
    I have an issue with the backup/restore with my iPhone.
    Sometimes, it is difficult to find an answer that fits your problem exactly on the forum!  Lots of good stuff though!
    This post will be little longer than normal, but I need to get all the facts on the table.
    I'll try to keep this brief.  Please hear me out!
    From another post ...
    https://discussions.apple.com/message/12273122
    Kwopau stated ...
    if you do a restore, you only have 2 options, Restore as new, meaning nothing will go on it
    and you will just have to start fresh and no contacts will go in there.
    The other option is "Restore from Back up _______" it will completely restore your phone
    from your last back up and everything will be on there.
    End of quote ...
    Here is my situation.
    I have a 3g 16GB iPhone.
    I am still running IOS 3 (not IOS 4).
    I do not use sync.  I  manually manage the music and books with iTunes.
    I have an HP laptop.
    A while ago, I had to completely rebuild the computer.
    The computer has a new computer and user name (I don't know if this matters in iTune/iPhone matchup)?
    I have not been able to connect the iPhone since then.
    Let me rephrase that.
    I can connect with iTunes.  I can see all that is on the iPhone.
    When I try to add or delete music or books on the iPhone with iTunes or set the manually manage check box, I get the following message ...
    The iPhone "myname's iPhone" is synced with another iTunes library.
    Do you want to erase this iPhone and sync with the this iTunes library.
    Most commands appear to be grayed  out,  I can't add or delete anything.
    I do not have anything in current  iTunes library at the moment. 
    My fear is this.
    If I do the erase and sync as suggested  (iPhone message above) to the iPhone and then use the new iTunes library,  will I be able to use the backup (I just created) to restore to the iPhone that I just reset?
    If so, will it have contacts and all the other stuff?
    I can afford to lose the music and books, and perhaps the apps on the iPhone.
    I cannot afford to lose my contact list.
    I need to find another way to backup the contact list, Outlook, etc?
    If there other posts relative to this, please point me to them.
    I am afraid to pull the trigger for fear that iTunes will not recognize the iPhone after the erase and sync and then not allow me to restore.
    Perhaps someone can put my mind at ease and convince me that it will all be good if I proceed!
    Thanks for you time and help in this matter ...
    Bob

    Do you know how to transfer purchases? Connect the iPad to the PC and launch iTunes. Click on the iPad nema on the left side of the iTunes window to select it. Then go to File>Transfer Purchases. That should put all of your purchased iPad content into the iTunes library on the PC.
    Here are instructions in a very short, easy to follow article.
    Transfer iTunes Library to a new computer
    This discussion will be helpful to show you how to make the PC work wTunes from the iPad.
    https://discussions.apple.com/thread/3305461
    This is the discussion from which I borrowed the some of the text in my post from the discussion above.
    https://discussions.apple.com/message/11527071#11527071
    What puzzles me is that if you had updated with the PC, I would have thought that you would have backed up and synced with that PC as well, but read the articles and instructions and post back with questions.
    You can email the pdf files to the iPad, or use iOS file sharing, and open and save them in iBooks or another pdf reader app, but start with getting your stuff onto the PC.

  • HT5642 my ipod is stuck in the recovery mode since 2 days and it is not restoring with itunes

    my ipod is stuck in the recovery mode since 2 days and it is not restoring with itunes
    plzz help me friends

    What exactly happens when you restore via iTunes? Error message?

  • Iphone was dropped on floor and it said to restore with itunes. But, it wont restore.

    iphone was dropped on floor and it said to restore with itunes. But, it wont restore. what do i do?

    sounds like you broke it.  You'll need to bring your phone into Apple for evaluation and likely an out of warranty exchange.

  • Not getting the voice telling me my distance and speed - just did restore

    I just bought two new sensors for my new 5th generation Nano (two Nano's actually).
    I succesfully linked them up, did a successful run, the data was there - but there was no voice telling me how far I was running or my speed. I looked down, and my nano still showed the calibration run of 0.5 miles, and something called the "basic workout". I followed the directions to delete all runs, but it did not get rid of these two runs (basic and calibration). Did I do something wrong? I just restored my Nano, but want to avoid this problem again. Did anybody else have this problem?

    Connect it to a computer running iTunes.  How to reset iPod -  http://support.apple.com/kb/HT1320
    Find my iPod Touch - http://images.apple.com/ipodtouch/built-in-apps/find-my-ipodtouch.html - has to be enabled before device is lost.  It also requires the device be connected to WiFi and not having been restored by the finder.
    Texas Mac Man links on lost/stolen i-devices - https://discussions.apple.com/message/18151280

  • Question: my macbok  - just opened and now a white screen with a flashing grey box with a question mark - help?

    Good Evening
    Have just opened my macbook laptop and shows a white screen with a flashing gey box in the middle with a question mark ?
    Help
    Thank you

    A flashing question mark appears when you start your Mac

  • Commands for OCR and Voting File backup Restore?

    We have 2 node rac instance on 64-bit win2003 with three diskgroups DATA, BKUP, +FRA.
    We have ordered for new servers till then I will not have any test instance but only the production to work on.
    I am taking care of db files, ctl, spfile, arcivelog files through RMAN.
    The voting file and the ocr file is on raw disks.
    I have gone through the rac material but My request is somebody please compile the way and command to backup my ocr and voting file and in case of loss what are the commands to restore the files?
    Thanks in advace.
    [email protected]

    Hi Sami,
    Taking backups from OCR
    %CRS_HOME%\bin\ocrconfig -export C:\OCR_%DATA%.bkp -s online
    Restoring OCR... http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#i1016682
    Run the following command to add an OCR location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocr destination_file or disk
    Run the following command to add an OCR mirror location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocrmirror destination_file or disk
    Backing Up and recover Voting Disks http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#BABDJDHI
    with ocopy and crsctl
    Regards,
    Rodrigo Mufalani

  • Some questions on efficient serial read and speeding up data processing

    I have this flow meter that spits out two strings when queried with command "x" : Date:time, and then Meter #1 xxxx.xxxx SCFM . All that the x does is query the meter to display its status. The serial readout from the meter is intended to only duplicate the value present on the little lcd that the meter has. It's not meant for controlling and my discussion with the company was that while not ideal, parsing the string is the only way to get useable info from it. I only need the flow value and there is no way that it will just output that string. So I have it set up to search for the meter name, and if this has a value find the number. Before I did not have the true false case but it meant that the flow would state zero every time that it received the date:time string. My questions are:
    Is this the only way to do this? both in terms of finding the number I need and making sure that it is always updated properly.
    Right now I have a delay in the while loop because if I sample too fast, I oversample the buffer and get no useable string data (get one letter or no value at a time). Is there any way to remove this and have continous sampling?  I thought about reducing the wait time to 25ms, searching for a series of characters like #, 1, and parsing the string character by character, but the vi moves too fast to capture all of the data. If I put in a buffer delay I am right back where I started with the longer delay.
    Is there anything else I can do to make this code more efficient and better sample the flow meters output?
    Attachments:
    Serial Test.vi ‏15 KB

    Does the device send back a termination character such as a line feed or carriage return?  If so, you should be using that to terminate your read after reading a large number of bytes.
    Right now, your Write/Read sequence is in an odd order.  First you check number of bytes, then you write the X, then you read that original number of bytes immediately after sending the x.  Since it was probably 0 at the port when the loop started, you initially read 0 bytes.  Then the next iteration, (assuming your loop rate was slow enough, you'll get bytes as the port based on the X written in the previous iteration.
    You need to write the X, delay a period of time, then do bytes at port (assuming you can't use the termination character, and you have a different number of bytes every iteration that you can't rely on), then read that number of bytes.

  • Any way to exclude BPC security settings and profiles from backup/restore?

    We are on BPC 10 MS and restoring the PROD version to a DEV environment, but do not want to restore the security profiles.   Need to figure this out before new BPC development is sent back to PROD with same b/u restore process.  DEV security is different than PROD and we do not want the security profiles/settings in DEV to overlay PROD...

    Hi Mike,
    No automate process to maintain different set of users in both environments while restoring . Manually manage after refreshed based on required user profiles.
    Thanks,
    Vivek.

  • My complaints and Questions MP4 M4V video files and other complaints

    My complaints and Questions MP4 M4V video files and other complaints
    I have been scratching my head as to how to fix my problem and I found some answers and some questions along the way. First of all, I have a video that should be correctly formatted for my iPod. Its specs are:
    Kind: MPEG-4 video file
    Size: 19.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 12:25 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 360 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    F:\File\AnotherFile\A3rdFile\TheMovieFileInQuestion.mp4
    Wow that was a chore. Apple! Let us drag copy and paste our info tabs information so we don’t have to type all this stuff when we are having trouble. **another problem and suggestion** right there.
    Ok, back to the problem of the forum.
    From what I can see from http://www.apple.com/ipodclassic/specs.html this file falls in line of everything required in order to be able to play on my iPod. It plays in iTunes fine but will NOT sync with my iPod. I get an annoying message that states, “Some of the Songs and videos in your iTunes library, including “BlaBlaBlaiPondFixYourJunkBlaBlaBla”, were not copied to the iPod “My iPod” because they cannot be played on this iPod.” Why oh why can iTunes play this video file but my iPod cant. Especially when the specs on Apple’s website say it can.
    So that was bugging me for a LONG time until I found my “Create iPod or iPhone version” option in the “Advanced” heading. Thank goodness this made my files playable on my iPod. Extremely LONG wait though. I know that other programs convert it in ½ the time. But times not to important as long as it gets done, (would be very convenient if it was faster though **Problem and suggestion**)
    Ok, now that I have used the “Create iPod or iPhone version” option it has slowly but surly converted my video. Ok, here is my main problem, the new file which is the result of the conversions information is as follows:
    Kind: MPEG-4 video file
    Size: 35.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 1:28 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 658 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    C:\File\WhyIsThisNewFileInMyMusicFolder\TheMovieFileInQuestion.m4v
    So basically it has made my file bigger *not a bonus in my book* greatly increased my Bit Rate *another interesting feature*, and I think the biggest change it has changed it from an .mp4 to an m4v.
    Why does it need to be an .m4v I could have sworn some of my videos were or are in mp4 which shouldn’t matter anyway because I was under the impression that iPods could play mp4 files. So that’s my biggest complaint and question. Why can my 80GB classic iPod not play my MP4 files and why am I forced to convert them??
    This conversion also creates 2 files in iTunes when I am done which is annoying because I have to go into my files info and look to see what file is the mp3 in order to remove it. Very annoying I can open my iPod options and see the files and some are faded (the ones it can not play) why can’t I remove them from that area.Suggestion Apple please make files that cannot be played on my iPod stand out some how for easier cleaning Suggestion. Thank you.
    Speaking of cleaning iPods, when I moved my entire library to an external drive I was faced with a terrible problem. “This file could not be found, would you like to locate file”, I was faced with this annoying message at least 600 times. Now I am glad that iTunes has a little “!” mark to show dead links so that you do some minor cleaning, Good Job iTunes No compliant there. However iTunes has no way of selecting all the broken files for major cleaning (like in my case). Going through and deleting over 600 files 1 by 1 is extremely time consuming and annoying. **Suggestion Apple please add more cleaning features for organizing iTunes**.
    Ok, speaking of organization now, another problem that appeared when converting my video files was that it put my new videos into the location where I have all my songs (my external hard drive) why can’t it put the new files in the locations of the original file? I have my computer highly organized and my original files were in that drive in that folder for a reason. If I could open my original file and skip the conversion, my iTunes would go to that specific folder to access the file which is fine. But now these new conversion files are elsewhere taking up space and disorganizing my computer. True I can go into the new location and move the files to where I want them (original location) but I don’t think I should have to hunt them down, copy, move, delete ect etc for all these files over and over. Very annoying, time consuming and should be unnecessary. **Suggestion Make file creation and location more customizable, and user friendly, your customers will love you for it**.
    Well since I have gotten into Apples iTunes and iPod problems that I have had to face I might as well bring up one or two more problems and suggestions. About a month after purchasing my iPod a sibling bought one as well. His however is way more convenient then mine. I suppose he has a 5th gen. so here is my question: why does he have a search option and I don’t!!!! Why does he get more features every so often and I don’t?! Why can’t Apple write some software for us classic guys which got the iPods going! It’s very annoying when I have to spend more time looking for the song then I spend actually listening to it, when he can pull his up in like 3-6 seconds? I highly doubt the hardware between our iPods is that dissimilar and even if they are why cant software be written for us. **Suggestion treat all your customers good not just the newer ones, and make some more features for the classics like me and my iPod.” We will be grateful for it I promise.
    Ok, I am almost done. Let me just recap my questions, I know my post is kind of lengthy.
    #1. Why can’t my iPod play MP3 video files? And why do I have to convert to almost all the same settings except changing it from an mp4 to an m4v. according to Apples own site I should be able to play .m4v .mp4 and .mov files!! Note: remember iTunes plays them fine but my iPod will not.
    #2. Would be much more convenient to be able to copy the information from the windows in iTunes so that problems and trouble shooting would be much easier. A little check on off options in iTunes advanced settings would be terrific.
    #3. Why is the conversion so slow? Please speed it, you have the power. Convenience is the thing that sells products.
    #4. Files that cannot be played on the current iPod need to be easier recognized for simpler cleaning.
    #5. Also make an easier way to select all dead link files for faster cleaning, deleting, etc. This one is important.
    #6. Make a user friendly way to change where my files are going to end up once I convert them for iPod more options and better customizable settings are need.
    #7. One of the most important is ADD A SEARCH OPTION. I and we classics will LOVE Apple for it.
    For you readers, I apologize for the long post, and any grammatical errors you might find throughout it. These are problems that I have faced with these programs and hardware and I wanted to make sure they got acknowledged and hopefully addressed. Any information about why I cannot play MP4 Video files on my iPod would be the best. If anything in my post gets answered that’s the one I want most. Will save me a lot of hassle.
    Thank you all and I look forward to your suggestions and comments. All are welcome and appreciated.
    Sincerely,
    Bond, James

    Was playing with iTunes and thought of another suggestion! Let us play files in iTunes from an iPod! A friend or sibling should be able to plug his iPod into my computer open iTunes and play any of the files there. Many times I have wanted to show a movie clip or video to a friend, and I have the dock so I can do it on my T.V. but play it on their computer in their iTunes forget it. That would be a very nice feature as well so we can watch our movies at maximum size or listen to music on a better sound system, just another suggestion that would be nice. Thanks

  • Need to permanently set network link modes (duplex and speed)

    Hello everyone,
    I have an Intel on-board network card  which does not play well with my FritzBox. According to Intel this is a known issue in how the card negotiates its link mode. Intel provided a tool to set the link mode under windows (because the standard windows settings did not persist). Now I successfully figured out how to set duplex and speed to the appropriate values but i have to do this every time on boot with
    $ ethtool -s eno1 speed 100 duplex full
    My question now is twofold:
    1. Is there any other way to persistently set those values? I know about mii-tool but this reports my card is not supported and I don't know if it would persist a reboot.
    2. If i need to run ethtool on every boot: What would be the preferred (best-practice) way to do it? I'm still really new to arch and Linux but cursory reading indicates to write a systemd service.
    Cheers
    Kai

    Maybe this could be useful
    https://wiki.archlinux.org/index.php/Sy … vice_files
    I have just read a little but I think this will do

  • Quality and speed to burn cd

    Greetings,
    I'm about to put my apps on a cd, and they ask is i format it to mac only or mac and pc...
    If I choose the second one, will it be of less mac quality ?
    and what about the speed ? what speed chould I choose, and what is the diffirence ?
    Thanks
    "If you don't ask you'll never know..."   Mac OS X (10.4.6)   ......

    I know you don't want my help but I am going to try one more time. Hopefully you won't get mad at me this time.
    "-you want it for mac or both?"
    It does not matter which format you use to burn the CD in terms of the data being safe and reliable.
    If you are doing a backup and all you will ever use it on is your Mac then feel free to burn it as Mac only. If you were burning pictures, for example, to share with someone who has a PC then you would want to burn it in a format that was compatible with both the Mac and the PC.
    "-at with speed do you want me to copy"
    Speed is not an issue. There are a lot of variables when it comes to speed such as the speed of your burner, the software you are using to do the burn with and the type of media you are burning it on to. I generally burn CD-R at 8x but I can only burn a DVD at 1x as that is the best my burner will do, at least on my G-4 Mac. On my wife's G-5 iMac I can burn at faster speeds because her hardware can handle higher speeds. It also depends on the media you buy. If you look at a CD-R it will usually list a speed range. If you buy media that is rated at 16X it may not burn reliably at 52X. In that case I would set my burner at 16X.
    The easiest thing to do is to just set the speed to "maximum" You can do this in iTunes if you are burning music by going to iTunes preferences and selecting the advanced icon then selecting the burning tab and then selecting "maximum". You may be able to do it in Toast also although I don't use it so I don't know. That way the computer can determine the best speed. Let the computer do it as that is what it is for.
    One thing that would help would be if you would list what kind of hardware you have in your profile. Right now it says something like "if you don't ask you won't know" Take a minute and help those who are trying to help you by putting the proper information there such as your model of mac (iMac, e Mac, whatever) and information such as how much ram you have. This will help people with your questions and help eliminate confusion.

  • Java Audio Metronome | Timing and Speed Problems

    Hi all,
    I’m starting to work on a music/metronome application in Java and I’m running into some problems with the timing and speed.
    For testing purposes I’m trying to play two sine wave tones at the same time at regular intervals, but instead they play in sync for a few beats and then slightly out of sync for a few beats and then back in sync again for a few beats.
    From researching good metronome programming, I found that Thread.sleep() is horrible for timing, so I completely avoided that and went with checking System.nanoTime() to determine when the sounds should play.
    I’m using AudioSystem’s SourceDataLine for my audio player and I’m using a thread for each tone that constantly polls System.nanoTime() in order to determine when the sound should play. I create a new SourceDataLine and delete the previous one each time a sound plays, because the volume fluctuates if I leave the line open and keep playing sounds on the same line. I create the player before polling nanoTime() so that the player is already created and all it has to do is play the sound when it is time.
    In theory this seemed like a good method for getting each sound to play on time, but it’s not working correctly.
    At the moment this is just a simple test in Java, but my goal is to create my app on mobile devices (Android, iOS, Windows Phone, etc)...however my current method isn’t even keeping perfect time on a PC, so I’m worried that certain mobile devices with limited resources will have even more timing problems. I will also be adding more sounds to it to create more complex rhythms, so it needs to be able to handle multiple sounds going simultaneously without sounds lagging.
    Another problem I’m having is that the max tempo is controlled by the length of the tone since the tones don’t overlap each other. I tried adding additional threads so that every tone that played would get its own thread...but that really screwed up the timing, so I took it out. I would like to have a way to overlap the previous sound to allow for much higher tempos.
    I posted this question on StackOverflow where I got one reply and my response back explains why I went this direction instead of preloading a larger buffer (which is what they recommended). In short, I did try the buffer method first, but I want to also update a “beat counter” visual display and there was no way to know when the hardware was actually playing the sounds from the buffer. I mentioned that on StackOverflow and I also asked a couple more questions regarding the buffer method, but I haven’t received any more responses.
    http://stackoverflow.com/questions/24110247/java-audio-metronome-timing-and-speed-problems
    Any help getting these timing and speed issues straightened out would be greatly appreciated! Thanks.
    Here is my code...
    SoundTest.java
    import java.awt.*; 
    import java.awt.event.*; 
    import javax.swing.*; 
    import javax.swing.event.*; 
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundTest implements ActionListener { 
        static SoundTest soundTest; 
        // ENABLE/DISABLE SOUNDS 
        boolean playSound1  = true; 
        boolean playSound2  = true; 
        JFrame mainFrame; 
        JPanel mainContent; 
        JPanel center; 
        JButton buttonPlay; 
        int sampleRate = 44100; 
        long startTime;  
        SourceDataLine line = null;  
        int tickLength; 
        boolean playing = false; 
        SoundElement sound01; 
        SoundElement sound02; 
        public static void main (String[] args) {        
            soundTest = new SoundTest(); 
            SwingUtilities.invokeLater(new Runnable() { public void run() { 
                soundTest.gui_CreateAndShow(); 
        public void gui_CreateAndShow() { 
            gui_FrameAndContentPanel(); 
            gui_AddContent(); 
        public void gui_FrameAndContentPanel() { 
            mainContent = new JPanel(); 
            mainContent.setLayout(new BorderLayout()); 
            mainContent.setPreferredSize(new Dimension(500,500)); 
            mainContent.setOpaque(true); 
            mainFrame = new JFrame("Sound Test");                
            mainFrame.setContentPane(mainContent);               
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
            mainFrame.pack(); 
            mainFrame.setVisible(true); 
        public void gui_AddContent() { 
            JPanel center = new JPanel(); 
            center.setOpaque(true); 
            buttonPlay = new JButton("PLAY / STOP"); 
            buttonPlay.setActionCommand("play"); 
            buttonPlay.addActionListener(this); 
            buttonPlay.setPreferredSize(new Dimension(200, 50)); 
            center.add(buttonPlay); 
            mainContent.add(center, BorderLayout.CENTER); 
        public void actionPerformed(ActionEvent e) { 
            if (!playing) { 
                playing = true; 
                if (playSound1) 
                    sound01 = new SoundElement(this, "Sound1", 800, 1); 
                if (playSound2) 
                    sound02 = new SoundElement(this, "Sound2", 1200, 1); 
                startTime = System.nanoTime(); 
                if (playSound1) 
                    new Thread(sound01).start(); 
                if (playSound2) 
                    new Thread(sound02).start(); 
            else { 
                playing = false; 
    SoundElement.java
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundElement implements Runnable { 
        SoundTest soundTest; 
        // TEMPO CHANGE 
        // 750000000=80bpm | 300000000=200bpm | 200000000=300bpm 
        long nsDelay = 750000000; 
        long before; 
        long after; 
        long diff; 
        String name=""; 
        int clickLength = 4100;  
        byte[] audioFile; 
        double clickFrequency; 
        double subdivision; 
        SourceDataLine line = null; 
        long audioFilePlay; 
        public SoundElement(SoundTest soundTestIn, String nameIn, double clickFrequencyIn, double subdivisionIn){ 
            soundTest = soundTestIn; 
            name = nameIn; 
            clickFrequency = clickFrequencyIn; 
            subdivision = subdivisionIn; 
            generateAudioFile(); 
        public void generateAudioFile(){ 
            audioFile = new byte[clickLength * 2]; 
            double temp; 
            short maxSample; 
            int p=0; 
            for (int i = 0; i < audioFile.length;){ 
                temp = Math.sin(2 * Math.PI * p++ / (soundTest.sampleRate/clickFrequency)); 
                maxSample = (short) (temp * Short.MAX_VALUE); 
                audioFile[i++] = (byte) (maxSample & 0x00ff);            
                audioFile[i++] = (byte) ((maxSample & 0xff00) >>> 8); 
        public void run() { 
            createPlayer(); 
            audioFilePlay = soundTest.startTime + nsDelay; 
            while (soundTest.playing){ 
                if (System.nanoTime() >= audioFilePlay){ 
                    play(); 
                    destroyPlayer(); 
                    createPlayer();              
                    audioFilePlay += nsDelay; 
            try { destroyPlayer(); } catch (Exception e) { } 
        public void createPlayer(){ 
            AudioFormat af = new AudioFormat(soundTest.sampleRate, 16, 1, true, false); 
            try { 
                line = AudioSystem.getSourceDataLine(af); 
                line.open(af); 
                line.start(); 
            catch (Exception ex) { ex.printStackTrace(); } 
        public void play(){ 
            line.write(audioFile, 0, audioFile.length); 
        public void destroyPlayer(){ 
            line.drain(); 
            line.close(); 

    Thanks but you have never posted reply s0lutions before ?? And F 4 is definitely not 10 times faster as stated before I upgraded !!

  • Warp Stabilizer and Speed can't be used on same clip

    ...just my luck that on my first ever Premiere project (CS6) I'm building a timeline and need to use both the Rate Stretch Tool and the Warp Stabilizer on multiple clips. The message, "Warp Stabilizer and Speed can't be used on same clip" took me by surprise.
    However, after research here on the Forum, I found a Workaround that I'm deploying:
    "Apply the effects, nest and finally apply warp stabilize" Ann Bens
    Here's what I did:
    In my only sequence -- Sequence 01 -- I highlighted a clip that I had already applied Rate Stretch to.
    chose Clip/Nest
    This created a Nested Sequence 02 with the clip in it.
    In Sequence 01, the clip now says, "Nested Sequence 02"
    I applied the Warp Stabilizer to the Nested Sequence 02 clip and it worked. Both Rate Stretch and Warp Stabilizer have been applied to the same clip!
    So I've done this like ten times to ten clips and now have 10 Nested Sequence folders.
    Questions:
    Are my step-by-steps correct?
    Do I let these multiple Nested Sequences just keep piling up? (when I right click on a Nested Sequence and choose Clear, I get a warning message that I'm going to delete clip references)
    Now that the workaround has worked, is there a way to close -- unlink -- from these Nested Sequence folders? If so how?
    I am so Over My Head for a first project. I thought you could always compound Video Effects!
    NotOnSugarMountain

    Best is to make a copy of the timeline or clips that you are going to multiple nest etc.
    If you screw up you can easily replace nested clips etc with a copy from the copy you made.
    There is an undo function but most of the time its not enough.

Maybe you are looking for

  • Iphone 5 power button is not working

    The power button of my phone is not working properly. I just bought it last January in the US and I'm staying here in the PH, and the apple stores here still doesn't support it. How can I have it replaced? I think it's not working anymore.

  • 3G Questions

    I have a 15gb 3g iPod, and I am having the "battery life" issues. I have the receipt, the forms for the claim, etc, and I purchased it within the "faulty" window. But, after reading here, it seems as though Apple is not actually processing the claims

  • Error A 12E5 during installing Creative Cloud on Windows 8

    I keep getting the Error A 12E5 whenever I try to Install Creative Cloud Desktop. I've run it as admin as well, and still the same result. I'm on a Windows 8 laptop and all the help forums I can find for this error pertains to Macs. Can anyone help?

  • IPhoto 8.1.2 quits when importing

    iPhoto 8.1.2 quits when importing. It only imports 1 photo at a time. Every time I try to import more photos, it quits. I tried deleting com.apple.iPhoto.plist I tried repairing disk permissions I tried creating a new account, and it quits there also

  • CCA Agent debug - AD SSO NAC Appliance

    Hi, I'm investigating a HARD AD SSO issue on NAC appliance and checking the doc suggested by Prem (Troubleshooting Windows SSO)I don't understand how I can obtain the output in page 14 (title: Debug Logs from Agent). I've activated the event.log (add