GC Performance problem in 2D game

Hello!
I'm kinda new to java, but have been working with C++ before. Now, I've decided to try and make a 2D online RPG game as a standalone Java application. All is going fine with it, but I am having some performance problems with (probably) the GC:
Each 4-5 seconds there are a 0.5-1 second freeze! It would be great if there was any way to fix this. I am currently using the following Java command line parameters:
-verbosegc -XX:+UseParallelGC
(The -verbosegc is just temporary so I can see some GC output.)
Other then that (the rest of the time) the game runs more or less smooth. This is the output of the GC when the freeze occurred:
[Full GC 13858K->5787K(18304K), 0.0821987 secs]
(Most other lines does not say Full GC.)
I have worked rather hard the last time to fix all memory leaks and such, and now there are none (or very small) leaks left. I don't think I'm over-utlizing objects or w/e it's called.
Is there btw any way to tell the GC to collect a specifig object?
And, does anyone know how other java games and applications does to get rid of problems with the GC?
I have tried experimenting with some heap size parameters, and it works for short times, while the memory fills up, but then it freezes for much longer periods.
Yours, Jiddo.

Another thing to try is to dramatically increase the size of your "eden" space. This can be collected very efficiently, and it does appear that you have objects that have short lifetimes.
Can't remember the name of the parameter that you want, and it looks like you've already been reading the GC doc, but here's the link anyway: http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

Similar Messages

  • [Solved] Performance Problems (Hitching) with Source Engine games ( CSGO, DOTA 2)

    Hey All,
    I have a GT70 2PC Dominator.
    When I play CSGO I have a problem where the game will randomly hitch/hang for up to 5 seconds. Whatever audio is playing will just continue to loop until the everything goes back to normal. My FPS tends to hover around 120 FPS and dips pretty low. This happens in DOTA 2 as well but to a much much lesser extent.
    I play CSGO on my desktop as well so I am very familiar with the configuration files etc. My FPS_MAX is set to 300 so it' s not capped I have no idea what's going on. I've tried lowering graphic settings etc. While I'm very familiar with CSGO this is my first gaming laptop.
    I did run windows update and the nvidia update through the geforce experience so all of my drivers should be up to date as well.
    I've tried setting the battery to "High Performance" to see if that would change anything. I made sure I was plugged into a laptop as well. But I'm not sure if there are any specific MSI settings or something else to turn on.
    I play other graphically intensive games on higher settings probably the most notable is the MMORPG ArchAge. While I may experience slow downs I never have the game just hitch or hang like it does in CSGO.
    Any help would be greatly appreciated!
    Thanks All!

    Quote from: brackstone;112334
    Even if that worked I would not want that to be the solution. SSDs have a shorter lifespan than HDD and I'd rather not put a lot of stuff on it considering the replacement cost.
    I'm pretty sure MSI feels the same way as they've labeled it "OS_Install"
    What's the brand/model of your HDD?
    1. Try to remove HDD high usage related activities by following FAQs.
        I) http://www.msi.com/pic/faq/[email protected]
        II) http://www.msi.com/faq/nb-740.html
    2. Install The Crystal Disk Info utility and the HDD supports the APM feature, then change its setting.
        I)  Set the APM Control to the highest, in order to prevent the drive enters stand by mode after certain time.
           *Make sure you set the function everytime you restart the system.
           a. Download and install the crystal disk info utility.
           b. Open CrystalDiskInfo.
           c. Choose Function > Advanced Feature > APM Control.
           d. Choose your hard drive.
           e. Set APM function to FEh Maximum performance.
        II) Set the power plan to the maximum. (Control Panel> Hardware and Sound> Power Options>(Hide additional plans) High performance.

  • Various problems in certains games.... please help me guys

    Hi, I have a weird problem when I start up Pacific Fighters and Chronicles of Riddick.
    The thing is, the game takes at least 15 minutes to open and when using the Caps Lock key, the green button on the keyboard takes quite some time to enlighten because the PC lags badly, so is the sound. In PF, the music is terribly affected when this bug occurs.
    This happens about the 1/5 of the time I try to boot the game and the only ways to fix the problem is to:
    1) Simply restart the computer;
    2) Set the computer to sleep mode and then, come back to the game.
    All of my games and my drivers are up to date and something important I'd like you to know is:
    When the game boots normally, I can play easily up to 3 hours without any problem. Right now, I have about 15 games installed on my PC. Just to numerate a few, I have Far Cry, Half-Life 2 and never encountered any problem with these games.
    On the other hand, Battlefield 2, when trying to connect to the server, will freeze and then again, the Caps Lock light on my keyboard will have problem to open (So that shows that the PC lags a lot) and then, it will de-freeze and the game says that I was disconnected from the server (That's quite normal, I've been inactive for 30 seconds). Yet, after returning to the game, the PC isn't completly in its original shape as when using the Teamspeak program, I can hear the others talking but their voice is quite sluggish and skipped every 5 seconds. The sound does the exact same thing in Pacific Fighters when it freezes (It goes mostly as follow: Clack clack clack clack, you know what I mean?)
    If someone, please, knows why I have this problem, any help would be greatly appreciated. I have above 15 000pts in 3Dmarks 03 and my global performance on my PC is very good, except for this annoying bug.
    In BF2, I didn't encounter any problem before, so I don't understand...
    I have a
    -Amd athlon 64 3000+ venice @ 40 degres in ful load
    -Asus A8N-E @ lastest bios + driver 6.70 @ 38 degres in full load
    -Msi NX7800GT @ 81.85 driver @ 45 degres in full load
    -Soundblaster live 24bits
    -Disc dur 160GB WD SATA II that has just been defragmented with diskeeper and that contains no viruses
    -Thermaltake 420WATTS purepower
    -3x512 DDR 400 OCZ
    I also get problems in Bf2 clean sweep map only and only at 1 place : see http://img154.imageshack.us/my.php?image=screen0028ud.jpg
    And also in BF:V   http://img131.imageshack.us/my.php?image=bit6oz.jpg
    Thanks to read this and please help me 

    I also want to precise that in BF:V, this is the only vehicle that is bugged like this..

  • Massive artifacts, redraw and performance problems: xorg 1.8 and Intel

    Hi there.
    Since the update to xorg-server 1.8 my intel GMA950 powered lap top is seriously acting up.
    *Performance has dropped significantly, Games or compiz run slower than before
    *Font drawing is sometimes garbled, sometimes not
    *Some windows or parts of windows (sometimes only the decorations) show artifacts
    *Drawing of fonts while typing is delayed by 1 or more characters sometimes
    It might be related to this bug or the problem described in this thread.
    Just look at this screenshot:
    I tired moving xorg.conf, I tried running compiz with --indirect-rendering, I tried all kinds of options in xorg.conf and all but it just remains broken like this. Has anyone got similar problems and a solution?
    Last edited by Shapeshifter (2010-06-28 15:07:21)

    I've been having the same issue but not to the extent of the OP.
    I read the man for intel
    man intel
    and added these three lines to my xorg.conf
    Option "XvPreferOverlay" "false"
    Option "SwapbuffersWait" "false"
    Option "Tiling" "false" #{edit: after doing some testing I found tiling made no differnece so I ended up commenting it out}
    The first option I added because the man says
    The  overlay
                  behaves  incorrectly  in  the  presence of compositing, but some
                  prefer it due to it syncing to vblank in  the  absence  of  com‐
                  positing
    I use compiz ergo i have compositing and I noticed my video tearing and skipping sometimes. Seems to work fine now (more testing will be required)
    The second option I added because the man says
    Note that when enabled, this option can
    adversely affect the framerate of applications that render
    frames at less than refresh rate.
    I have a hunch compiz probably isn't rendering at the refresh rate and also video would be rendered at less than my vert refresh of 60. So I disabled it.
    The third and last option I added was because the man says
    In most cases (especially for complex rendering),
    tiling dramatically improves performance.
    Well this may be a case where it doesn't and the posters above have noticed improvements.  {edit: after doing some testing I found this made no differnece so I ended up commenting it out}
    In the end moving windows around the screen do not tear anymore and my video is smoother. I enabled all three at once so it maybe that one or a combination of 2 or possibly all 3 resulted in change. I suspect  I will do some more testing but hopefully this is a place to start fro some of you having this issue.
    Last edited by George.Harmony (2010-07-11 21:21:17)

  • Performance problems when using Premiere Elements for photo slideshows

    Hello,
    I had been using Premiere Elements 9 (PE9) to make a simple slideshow for my parents from their vacation trip and I ran into some serious performance problems.  I had used it to create similar projects before, but not nearly as big.  This one is like 260 photos, so basically it is 260 seperate clips.  I have a POWERHOUSE workstation (see below) so it isn't my PC.  Even when PE9 crashes, looking at my performance monitor my CPU and RAM aren't even halfway being utilized.  I finally switched to Windows Movie Maker of all things and it worked seemlessly, amazing really.  I'm wondering if I was just using PE9 for something other than what it was designed for since there weren't really any video clips, just a ton of photos that I made into video clips, if that makes sense.  Based upon my experience with this so far, I can't imagine using PE9 anymore for anything really.  I might have the need for a more professional video editing program in the near future, although it does seem like PE has a lot of features.  How can I make sure it utilizes my workstation to its full potential?  Here are my specs:
    PC
    Intel Core i7-2600K 4.6 GHz Overclocked
    ASUS P8P67 Deluxe Motherboard
    AMD Firepro V8800 Video Card
    Crucial 128 GB SATA 6Gb/s Solid State Drive (Operating System)
    Corsair Vengeance 16GB (4x4GB) Memory
    Corsair H60 Liquid CPU Cooler
    Corsair Professional Series Gold AX850 Power Supply
    Graphite Series 600T Mid-Tower Case
    Western Digital Caviar Black 1 TB SATA III Hard Drive
    Western Digital Caviar Black 2 TB SATA III Hard Drive
    Western Digital Green 3 TB SATA III Hard Drive
    Logitech Wireless Gaming Mouse G700
    I don’t play any games but it’s a great productivity mouse with 13 customizable buttons
    Wacom Intuos5 Pen Tablet
    Yes, this system is blazingly fast.  I have yet to feel it slow down, even with Photoshop, Lightroom, InDesign, Illustrator and numerous other apps running at the same time.  HOWEVER, Premiere Elements 9 has crashed NUMERUOS times, every time my system wasn't even close to being fully taxed. 
    Monitors – All run on the ATI V8800
    Dell Ultra Sharp 30 inch
    Samsung 27 Inch
    HAANS-G 28 Inch
    Herman Miller Embody Ergonomic Chair (one of my favorite items)

    Andy,
    There ARE some differences between PrE and PrPro w/ an approved CUDA-capable and MPE hardware acceleration-enabled nVidia video card, but those differences show up ONLY in the quality of the Scaling. The processing overhead is almost exactly the same, when it comes to handling the extra pixels.
    As of PrPro CS 5, two things changed:
    The max. size of Still Images went up from 4096 x 4096 pixels, to quite a bit larger (cannot recall the numbers now).
    The Scaling algorithms have been improved, though ONLY with the correct nVidia cards, with MPE hardware support enabled.
    Now, there CAN be another consideration, between the two programs, in that PrPro CS 5 - CS 6, are 64-bit ONLY, so one benefits from the computer and OS to run it. PrE can be either 32-bit, or 64-bit, so one might, or might not, be taking advantage of the 64-bit program and OS. Still, the processing overhead will be almost identical, it's just that the 64-bit OS can spread it around a bit.
    I still recommend Scaling the large Still Images in PS, prior to Import, to keep that processing overhead as low as is possible. Scaled Still Images work just fine, and I have one Project with 3000+ Scaled Still Images, that edits just fine in PrPro, even on my older 32-bit workstation. Testing that same machine, and PrPro some years ago, I could ONLY work with up to 5 - 4096 x 4096 Stills, before things ground to a crawl.
    Now, Adobe AfterEffects handles large Still Images differently, so I just moved that test Project to AE, and added another 20 large Images, which edited just fine. IIRC, AE can handle Still Images up to 10K x 10K pixels, and that might have gone up, as of CS 5.
    Good luck, and hope that helps,
    Hunt

  • 3D performance problems after upgrading memory

    I recently purchased an additional 2GB of memory to try and extend the life of my aging computer.  I installed the memory yesterday and Windows seems to recognize it (reporting now 3.3GB) but when I dropped into WoW (pretty much the only game I have) the 3D performance was down from the usual 60FPS @ 1600x1080 to a bleak 20 (at best) and the CPU utilization went to about 80% on both cores (with ~20% kernel usages).  Basically WoW was being software 3D rendered!!!
    I went through the usual reinstall drivers, reboot, etc... and couldn't find a fix.  I powered down, pulled out 2 of the memory sticks, booted up, and dropped into WoW - it ran at the full 60FPS and CPU utilization was very low (i.e. back to GPU Hardware 3D rendering).  I powered down again, swapped the 2 sticks for the other 2 sticks, booted up, and dropped into WoW - again it ran 100% fine.  So I powered down, put all four sticks in, booted back up, and when I dropped into WoW it was running in the software 3D rendering mode (20FPS at best and High CPU/Kernel usage).
    I've tried the /PAE option in boot.ini - no joy.  I've tried /MAXMEM = to 3300, 3072, 3000, and even 2048 - no joy in any of those cases.  Has anyone seen anything like this before?  Or have suggestions to fix (other than going to Win7-64)?
    All info in signature is up to date.
    Thanks in advance for any help!

    Quote
    Well his last post was a little over 6 hours ago so he was up pretty late.
    Looks like nothing one does in here goes completely unnoticed.   
    Anyway, I am done sleeping now.
    Quote
    his 2 Pfennig's worth.  I know, I know it's Euro's now.
    Yeah, and what used to be "Pfennige" is now also called "Cents" and here are mine:
    Quote
    I've tried the /PAE option in boot.ini - no joy.  I've tried /MAXMEM = to 3300, 3072, 3000, and even 2048 - no joy in any of those cases.  Has anyone seen anything like this before?  Or have suggestions to fix (other than going to Win7-64)?
    PAE or Physical Memory Extension will not do anything as Microsoft has castrated this feature to such an extend that it has nothing to do with memory addressing anymore when in comes to Windows XP:
    http://en.wikipedia.org/wiki/Physical_Address_Extension#Microsoft_Windows
    Quote
    Windows XP Service Pack 2 and later, by default, on processors with the no-execute (NX) or execute-disable (XD) feature, runs in PAE mode in order to allow NX. The NX (or XD) bit resides in bit 63 of the page table entry and, without PAE, page table entries only have 32 bits; therefore PAE mode is required if the NX feature is to be exploited. However, desktop versions of Windows (Windows XP, Windows Vista) limit physical address space to 4 GiB for driver compatibility reasons.
    The feature is already automatically enabled.  But since is original function (Address Extension) does no longer exist when it comes to the desktop versions of Windows XP, it won't really do anything you would ever notice.
    About the /MAXMEM Switch:  In Windows 32bit operating systems, every process is limited to 2GB of memory.  The point of the switch is to allow certain applications (or their run-time process) to occupy a higher amount of system memory than 2GB.  However, the culprit here is that only those applications are able to utilize this ability that have been programmed (or compiled) accordingly.  A special flag (large memory aware) has to be implemented.  Otherwise, these application will be restricted to 2GB even though the /MAXMEM Switch has been set to extend the 2GB limit to 3GB.  Most 32bit applications come without the "large memory aware" flag and that is why usually, settings the switch won't change anything.
    In any case, it is unlikely that /PAE (even if it would not be castrated) and /MAXMEM would have an impact on your actual issue because I doubt that it has much to do with either memory adressing or the memory limit of an indiviual Windows process.
    Quote
    the 3D performance was down from the usual 60FPS @ 1600x1080 to a bleak 20 (at best) and the CPU utilization went to about 80% on both cores (with ~20% kernel usages).
    There are a couple of hardware based explanations to consider here.  Let's start with the most obvious one:
    1. 975X Memory Controller
    The main reason that the system chooses to automatically set the Memory Speed to DDR2-667 even though DDR2-800 modules are installed, is that by design the memory controller of the Intel 975X Chipset does not natively support DDR2-800 modules, but
    >>Intel® 975X Express Chipset Datasheet - For the Intel® 82975X Memory Controller Hub (MCH)<< [Page 20]
    This means, that from the point of view of the memory controller, operating the memory @DDR2-800 actually means overclocking it (with all potential side effects).
    Basically, if your initial problem disappears as soon as you reduce the memory speed to DDR2-667, the design limitation of the memory controller may explain your findings.
    2. Different memory modules
    If I read your signature correctly, you are actually mixing two different kits/models of RAM (CM2X1024-6400C4DHX and  CM2X1024-6400C4).  This can work of course, but in practice it not necessarely does under all circumstances. 
    This list  (-> http://ramlist.i4memory.com/ddr2/) indicates that there are at least 14 different module types/revisions of Corsair DDR2-800 / CL4 modules that utilize a wide range of different memory chips (Elpida, ProMos, Micron, Infinion, Powerchip, Qimonda, Samsung, Infinion etc.).  Even though the superficial specifications for these chips appear to be pretty similar (DDR2-800 / CL5 / CL4), this does not necessarely mean that the modules will respond to the same operating conditions in the same way. There may be small difference in sub-timings/sub-latencies and/or the general responsiveness of the ICs which may affect the operating behaviour of the memory controller (which by the way also includes the PCI-Express interface which your video card is hooked up to).
    And again:  If running the system @DDR2-667 solves your issue, the possible explanation is that higher clock speeds may amplify (or trigger) potential performance problems that could have to do with the use of non-identical memory modules.
    Furthermore: It is also possible that the memory controller's design limitations and the potential compatibility problems that may be attributed to mixing different modules types may reinforce each other in terms of reduced system performance.
    3. The BIOS may have an impact as well
    There has been known issue with the use of certain video cards in conjunction with 4GB of system memory on this mainboard:
    https://forum-en.msi.com/index.php?topic=107301.0
    https://forum-en.msi.com/index.php?topic=105955.0
    https://forum-en.msi.com/index.php?topic=99818.msg798951#msg798951
    What may have come out as graphics/display corruption in earlier BIOS Releases may come out as reduced system performance when using the latest BIOS Release.  Of course, this is hard to prove, but I thought I'd mention it anyway.  May I ask what amount of video memory your card has onboard?
    Fortunately, there is a BIOS version that you could consider to try in this matter.  It is not only the last BIOS Release that could be used in order to avoid the corruption issue, but it is (in my oppionion) the best BIOS Version that was ever released for the 975X Platinum PUE Mainboard:  W7246IMS.716 [v7.1b6].  I have been using this mainboard for almost two years and have tested almost every BIOS Release that ever came out and I always went back to v7.1b6 as "ground zero". 
    It will properly support your E6600 (so you don't have to worry about that) and as far as I remember, there are no known compatibility issues with other components.  So maybe, you want to give this a shot.
    The bottom line is that in a worst case scenario, the problem you describe could be caused by all of the above things at the same time.  You cannot really do anything about the 975X Chipset Specifications and the only way to rule out explanation #2 is to test modules that are actually identical (same model number, revision and memory chips).  A test of the 7.1b6 BIOS Release is something you should consider.  It may be the only way to test the BIOS Hypothesis.
    This post turned out to be longer than I intended, but then again, I am well-rested after a good sleep and the wake-up coffee is kicking in pretty good.

  • I am having problem with my games application...non of the game run smoothly and also the games close automaticially

    I am having problem with my games application... no idea where is the problem. non of the game run smoothly 1st in 1st its hard to open the apps in it open than also it will close automatically. Please help me out

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    Also consider Deleting any Apps you have Purchased / Downloaded but you now never use..
    If necessary...
    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414

  • TiledLayer performance problem

    I'm using the TiledLayer in the javax.microedition.lcdui.game package to render a scene which is about 140 tiles wide and 7 tiles height, each tile having the size of 8x8 pixels.
    Even though I have used the setViewWindow on my LayerManager instance I get really bad performance when calling paint.
    I tried my application on a real device (iPaq compatible device using Emsetech MIDP 2.0 vm) and the it ran 100 times faster than the Wireless Toolkit.
    My rendering time in the Wireless toolkit is around 2500 milliseond and about 25 on a real device. I'm targeting 10 to 12 frame / second.
    It is really difficult get a feel of the application when it run so slow.
    I'm by the way using Windows XP (Pro) on a Pentium 3@650 MHz.
    I have tried to make change to the muTank demo created by SUN. I have hereby reproduced the problem since the performance hits zero wheneever when I increase the number of tiles in TiledLayer instance to fx. factor 3, which should really be a problem.
    Do anybody else having performance problems with the TileLayer?
    Yours sincerely
    Christian Damsgaard

    Yeap, while the below is not great, it shows what I mean, and what the TiledLayer should do by default (kind-of). However it only takes ~200ms per draw cycle not ~500ms when using a larger TiledLayer. Your also notice that I'm not using a LayerManager, it seamed to add ~50ms to the paint time.
    [url http://www.mycgiserver.com/~mrmlk/res/bike.png]the bike sprite
    [url http://www.mycgiserver.com/~mrmlk/res/backdrop.png]the backdrop
    [url http://www.mycgiserver.com/~mrmlk/res/parlx.png]the other backdrop
    <a href="import javax.microedition.midlet.*;
    import javax.microedition.lcdui.game.*;
    import javax.microedition.lcdui.*;
    import java.util.*;
    public class TiledLayerTest extends MIDlet implements Runnable {
    Thread runner = null;
    boolean running = true;
    boolean paused = false;
    GC gc = new GC( true );
    Graphics g = gc.getGraphics();
    /* LayerManager lm = new LayerManager(); {
         lm.setViewWindow(0, 0, gc.getWidth(), gc.getHeight() ) ;
    Image backdrop = null; {
         try {
         backdrop = Image.createImage( "/backdrop.png" );
         } catch( Throwable t ){
         System.err.println( "backdrop failed to load" );
    Image parlx = null; {
         try {
         parlx = Image.createImage( "/parlx.png" );
         } catch( Throwable t ){
         System.err.println( "parlx failed to load" );
    Image bike = null; {
         try {
         bike = Image.createImage( "/bike.png" );
         } catch( Throwable t ){
         System.err.println( "bike failed to load" );
    Sprite player = new Sprite( bike ); {
         player.move( 0, 3*20 );
    int width = (gc.getWidth()/20)+1;
    int[][] tiles={{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
              { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}};
    int[][] ptile={{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
    TiledLayer tl = new TiledLayer( width, 7, backdrop,
                        20, 20 ); {
         for( int x = 0; x<width; x++){
         for( int y = 0; y < 7; y++ ) {
              tl.setCell( x, y, tiles[y][x] );     
         //lm.append( tl );
    TiledLayer par = new TiledLayer( width, 7, parlx,
                        20, 20 ); {
         for( int x = 0; x<width; x++){
         for( int y = 0; y < 7; y++ ) {
              par.setCell( x, y, ptile[y][x] );     
         //lm.append( par );
    public TiledLayerTest() {
    public void destroyApp(boolean unconditional) {
         running = false;
    public void pauseApp() {
         paused = true;
    protected void startApp() {
         if( runner == null ) {
         runner = new Thread( this );     
         running = true;
         paused = false;
         Display.getDisplay( this ).setCurrent( gc );
         runner.start();
    long sleep = 0,start = 0, diff = 200, fpss = 0, fpsw = 0;
    int fps = 0;
    int lfps = -1;
    int x=0;
    int xx=0;
    int px=0;
    public void run() {
         fpss = System.currentTimeMillis();
         fpsw = fpss + 1000;
         while( running ) {
         if( paused ) {
              runner.yield();
         } else {
              start = System.currentTimeMillis() ;
              x++;
              tl.move( -2 , 0 );
              par.move( -1, 0 );
              if( player.collidesWith( tl, true ) ) {
              System.out.println("ok");
              if( x%10 == 0 ) {
              //x=0;
              xx++;
              if( xx < tiles[0].length - width ) {
                   tl.move( 20, 0 );
                   for( int x = 0; x<width; x++){
                   for( int y = 0; y < 7; y++ ) {
                        tl.setCell( x, y, tiles[y][xx+x] );     
              } else {
                   //System.out.println( "Level Over!" );
              if( x%20 == 0 ) {
              px ++;
              if( px < ptile[0].length - width ) {
                   par.move( 20, 0 );
                   for( int x = 0; x<width; x++){
                   for( int y = 0; y < 7; y++ ) {
                        par.setCell( x, y, ptile[y][px+x] );     
              g.setColor( 255, 255, 255 );
              g.fillRect(0,0,gc.getWidth(), gc.getHeight());
              par.paint( g );
              tl.paint( g );
              player.paint( g );
              //lm.paint( g, 0, 0 );
              g.setColor( 0, 0, 0 );
              g.drawString( lfps + "fps " + diff ,
              0, 0, g.TOP|g.LEFT );
              gc.flushGraphics();
              fps ++;
              if( System.currentTimeMillis() > fpsw ) {
              lfps = fps;
              fps = 0;
              fpss = System.currentTimeMillis();
              fpsw = fpss + 1000;
              diff = (System.currentTimeMillis() - start );
              sleep = System.currentTimeMillis()
                   + 200 - diff;
              while ( System.currentTimeMillis() < sleep )
              runner.yield();
    class GC extends GameCanvas {
    GC( boolean b ) {
         super( b );
    public Graphics getGraphics() {
         return super.getGraphics();
    }">import javax.microedition.midlet.*;
    import javax.microedition.lcdui.game.*;
    import javax.microedition.lcdui.*;
    import java.util.*;
    public class TiledLayerTest extends MIDlet implements Runnable {
    Thread runner = null;
    boolean running = true;
    boolean paused = false;
    GC gc = new GC( true );
    Graphics g = gc.getGraphics();
    /* LayerManager lm = new LayerManager(); {
         lm.setViewWindow(0, 0, gc.getWidth(), gc.getHeight() ) ;
    Image backdrop = null; {
         try {
         backdrop = Image.createImage( "/backdrop.png" );
         } catch( Throwable t ){
         System.err.println( "backdrop failed to load" );
    Image parlx = null; {
         try {
         parlx = Image.createImage( "/parlx.png" );
         } catch( Throwable t ){
         System.err.println( "parlx failed to load" );
    Image bike = null; {
         try {
         bike = Image.createImage( "/bike.png" );
         } catch( Throwable t ){
         System.err.println( "bike failed to load" );
    Sprite player = new Sprite( bike ); {
         player.move( 0, 3*20 );
    int width = (gc.getWidth()/20)+1;
    int[][] tiles={{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
              { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}};
    int[][] ptile={{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
    TiledLayer tl = new TiledLayer( width, 7, backdrop,
                        20, 20 ); {
         for( int x = 0; x<width; x++){
         for( int y = 0; y < 7; y++ ) {
              tl.setCell( x, y, tiles[y][x] );     
         //lm.append( tl );
    TiledLayer par = new TiledLayer( width, 7, parlx,
                        20, 20 ); {
         for( int x = 0; x<width; x++){
         for( int y = 0; y < 7; y++ ) {
              par.setCell( x, y, ptile[y][x] );     
         //lm.append( par );
    public TiledLayerTest() {
    public void destroyApp(boolean unconditional) {
         running = false;
    public void pauseApp() {
         paused = true;
    protected void startApp() {
         if( runner == null ) {
         runner = new Thread( this );     
         running = true;
         paused = false;
         Display.getDisplay( this ).setCurrent( gc );
         runner.start();
    long sleep = 0,start = 0, diff = 200, fpss = 0, fpsw = 0;
    int fps = 0;
    int lfps = -1;
    int x=0;
    int xx=0;
    int px=0;
    public void run() {
         fpss = System.currentTimeMillis();
         fpsw = fpss + 1000;
         while( running ) {
         if( paused ) {
              runner.yield();
         } else {
              start = System.currentTimeMillis() ;
              x++;
              tl.move( -2 , 0 );
              par.move( -1, 0 );
              if( player.collidesWith( tl, true ) ) {
              System.out.println("ok");
              if( x%10 == 0 ) {
              //x=0;
              xx++;
              if( xx < tiles[0].length - width ) {
                   tl.move( 20, 0 );
                   for( int x = 0; x<width; x++){
                   for( int y = 0; y < 7; y++ ) {
                        tl.setCell( x, y, tiles[y][xx+x] );     
              } else {
                   //System.out.println( "Level Over!" );
              if( x%20 == 0 ) {
              px ++;
              if( px < ptile[0].length - width ) {
                   par.move( 20, 0 );
                   for( int x = 0; x<width; x++){
                   for( int y = 0; y < 7; y++ ) {
                        par.setCell( x, y, ptile[y][px+x] );     
              g.setColor( 255, 255, 255 );
              g.fillRect(0,0,gc.getWidth(), gc.getHeight());
              par.paint( g );
              tl.paint( g );
              player.paint( g );
              //lm.paint( g, 0, 0 );
              g.setColor( 0, 0, 0 );
              g.drawString( lfps + "fps " + diff ,
              0, 0, g.TOP|g.LEFT );
              gc.flushGraphics();
              fps ++;
              if( System.currentTimeMillis() > fpsw ) {
              lfps = fps;
              fps = 0;
              fpss = System.currentTimeMillis();
              fpsw = fpss + 1000;
              diff = (System.currentTimeMillis() - start );
              sleep = System.currentTimeMillis()
                   + 200 - diff;
              while ( System.currentTimeMillis() < sleep )
              runner.yield();
    class GC extends GameCanvas {
    GC( boolean b ) {
         super( b );
    public Graphics getGraphics() {
         return super.getGraphics();
    }</a>
    I've only tested this in the WTK 2.0, I'm going to give it (and the "normal" way of doing it) a go in the Nokia SDK once it has downloaded..

  • Bios2.0 performance / problem

    1.bios 2.0 performance
    is this as slow as hell like bios1.9. i'm at bios1.7 and my computer's performance is good. but when i upgraded to 1.9 performance is crappy in games. so i dowgraded to 1.7 again
    2.problem
    when i turn on my computer it shutdowns at once and when i turn on again same thing happens. but when i clear the cmos jumper everything is fine again. is this a bios issue?

    Quote
    Originally posted by Maesus
    By the way, do not forget to "Load Optimal Default" everytime after you clear CMOS and put in the new values!! This is an important step!
    Could you explain a little more why this is? Is something getting configured aside from the timings, performance mode and other stuff that we can individually set ?
    Also , are you refering to the "Load High Performance Defaults" Bios option ?  I don't recall seeing a "Load Optimal Default"  item.

  • PL/SQL Performance problem

    I am facing a performance problem with my current application (PL/SQL packaged procedure)
    My application takes data from 4 temporary tables, does a lot of validation and
    puts them into permanent tables.(updates if present else inserts)
    One of the temporary tables is parent table and can have 0 or more rows in
    the other tables.
    I have analyzed all my tables and indexes and checked all my SQLs
    They all seem to be using the indexes correctly.
    There are 1.6 million records combined in all 4 tables.
    I am using Oracle 8i.
    How do I determine what is causing the problem and which part is taking time.
    Please help.
    The skeleton of the code which we have written looks like this
    MAIN LOOP ( 255308 records)-- Parent temporary table
    -----lots of validation-----
    update permanent_table1
    if sql%rowcount = 0 then
    insert into permanent_table1
    Loop2 (0-5 records)-- child temporary table1
    -----lots of validation-----
    update permanent_table2
    if sql%rowcount = 0 then
    insert into permanent_table2
    end loop2
    Loop3 (0-5 records)-- child temporary table2
    -----lots of validation-----
    update permanent_table3
    if sql%rowcount = 0 then
    insert into permanent_table3
    end loop3
    Loop4 (0-5 records)-- child temporary table3
    -----lots of validation-----
    update permanent_table4
    if sql%rowcount = 0 then
    insert into permanent_table4
    end loop4
    -- COMMIT after every 3000 records
    END MAIN LOOP
    Thanks
    Ashwin N.

    Do this intead of ditching the PL/SQL.
    DECLARE
    TYPE NumTab IS TABLE OF NUMBER(4) INDEX BY BINARY_INTEGER;
    TYPE NameTab IS TABLE OF CHAR(15) INDEX BY BINARY_INTEGER;
    pnums NumTab;
    pnames NameTab;
    t1 NUMBER(5);
    t2 NUMBER(5);
    t3 NUMBER(5);
    BEGIN
    FOR j IN 1..5000 LOOP -- load index-by tables
    pnums(j) := j;
    pnames(j) := 'Part No. ' || TO_CHAR(j);
    END LOOP;
    t1 := dbms_utility.get_time;
    FOR i IN 1..5000 LOOP -- use FOR loop
    INSERT INTO parts VALUES (pnums(i), pnames(i));
    END LOOP;
    t2 := dbms_utility.get_time;
    FORALL i IN 1..5000 -- use FORALL statement
    INSERT INTO parts VALUES (pnums(i), pnames(i));
    get_time(t3);
    dbms_output.put_line('Execution Time (secs)');
    dbms_output.put_line('---------------------');
    dbms_output.put_line('FOR loop: ' || TO_CHAR(t2 - t1));
    dbms_output.put_line('FORALL: ' || TO_CHAR(t3 - t2));
    END;
    Try this link, http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm#23723

  • Performance problem in Zstick report...

    Hi Experts,
    I am facing performance problem in Custoom Stock report of Material Management.
    In this report i am fetching all the materials with its batches to get the desired output, at a time this report executes 36,000 plus unique combination of material and batch.
    This report takes around 30 mins to execute. And this report is to be viewed regularly in every 2 hours.
    To read the batch characteristics value I am using FM -> '/SAPMP/CE1_BATCH_GET_DETAIL'
    Is there any way out to increase the performance of this report, the output of the report is in ALV.
    May i have any refresh button in the report so that data may get refreshed automatically without executing it again. or is there any cache memory concept.
    Note: I have declared all the itabs with type sorted, all the select queries are fetched with key and index.
    Thanks
    Rohit Gharwar

    Hello,
    SE30 is old. Switch on trace on ST12 while running this progarm and identify where exactly most of the time is being spent. If you see high CPU time this problem with the ABAP code. You can exactly figure out the program/function module from ST12 trace where exactly time is being spent. If you see high database time in ST12, problem is with database related issue. So basically you have to analyze sql statement from performance traces in ST12. These could resolve your issue.
    Yours Sincerely
    Dileep

  • SQL report performance problem

    I have a SQL classic report in Apex 4.0.2 and database 11.2.0.2.0 with a performance problem.
    The report is based on a PL/SQL function returning a query. The query is based on a view and pl/sql functions. The Apex parsing schema has select grant on the view only, not the underlying objects.
    The generated query runs in 1-2 sec in sqlplus (logged in as the Apex parsing schema user), but takes many minutes in Apex. I have found, by monitoring the database sessions via TOAD, that the explain plan in the Apex and sqlplus sessions are very different.
    The summary:
    In sqlplus SELECT STATEMENT ALL_ROWS Cost: 3,695                                                                            
    In Apex SELECT STATEMENT ALL_ROWS Cost: 3,108,551                                                        
    What could be the cause of this?
    I found a blog and Metalink note about different explain plans for different users. They suggested to set optimizer_secure_view_merging='FALSE', but that didn't help.

    Hmmm, it runs fast again in SQL Workshop. I didn't expect that, because both the application and SQL Workshop use SYS.DBMS_SYS_SQL to parse the query.
    Only the explain plan doesn't show anything.
    To add: I changed the report source to the query the pl/sql function would generate, so the selects are the same in SQL Workshop and in the application. Still in the application it's horribly slow.
    So, Apex does do something different in the application compared to SQL Workshop.
    Edited by: InoL on Aug 5, 2011 4:50 PM

  • Performance problem with WPF Viewer CRVS2010

    Hi,
    We are using Crystal Reports 2010 and the new WPF Viewer. Last week when we set up a test machine to run our integration tests (several hundred) all report tests failed (about 30 tests) with a timeout exception.
    The testmachine setup:
    HP DL 580 G5
    WMWare ESXi 4.0
    Guest OS: Windows 7 Enterprise 64-bit
    Memory (guest OS): 3GB
    CPU: 1
    Visual Studio 2010
    Crystal Reports for Visual Studio 2010 with 64 bit runtime installed
    Visual Studio 2008 installed
    Microsoft Office 2010 installed
    Macafee antivirus
    There are about 10 other virtual machines on the same HW.
    I think the performance problem is related to text obejcts on a report document viewed in a WPF Viewer. I made a simple WPF GUI with 2 buttons and the first button executes a very simple report that only has a text object with a few words in it and the other button is also a simple report with only 1 text object with approx. 100 words (about 800 charchters).
    The first report executes and displays almost instantly and the second report executes instantantly but displays after approx. 1 min 30 sec.
    And execute in this context means that all VB.Net code runs in the compiler without any exception or performance problem. The performance problem seems to come after viewer.Show() (in the code below) has executed.
    I did another test on the second report and replaced the text obejct with a formula field with the same text as the text object and this test executed and displayed the report instantly.
    So the performance problem seems to have something to do with rendering of textobjects in the WPF Viewer on a virtual machine with the above setup.
    I've made several tests on local machines with Windows XP (32 bit) or Winows 7 (64 bit) installed and none of them have this performance problem. Its not a critical issue for us because our users will run this application on their local PCs with Windows 7 64-bit but its a bit problematic for our project not being able to run all of our integration tests but I will probably solve this by using a local PC instead.
    Here is the VB.Net code Im using to View the reports:
    Private Sub LightWeight_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
            Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeight.rpt")
            ' Initialize Viewer
            Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
            viewer.Owner = Me
            viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
            viewer.Show()
        End Sub
        Private Sub LightWeightSlow_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
            Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeightSlow.rpt")
            ' Initialize Viewer
            Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
            viewer.Owner = Me
            viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
            viewer.Show()
        End Sub
    The reports are 2 empty default reports with only 1 textobject on the details section.
    // Thomas

    See if the KB [
    [1448013  - Connecting to Oracle database. Error; Failed to load database information|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433343338333033313333%7D.do] helps.
    Also the following may not hurt to have a look at (if only for ideas):
    [1217021 - Err Msg: "Unable to connect invalid log on parameters" using Oracle in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033323331%7D.do]
    [1471508 - Logon error when connecting to Oracle database in a VS .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373331333533303338%7D.do]
    [1196712 - Error: "Failed to load the oci.dll" in ASP.NET application against an Oracle database|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393336333733313332%7D.do]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • JRC 2: Performance Problem

    Hi.
    Our reporting component used JRC 1.x before we upgraded to JRC 2.x. We got two issues after upgrading.
    First issue I solved already with a workaround which I published on stackoverflow.com. (1) Does anyone knows where I will find the issue management system to report this issue?
    Second issue occurs big performance problem within our project. We opened a report with 6 subreports (which includes 1 upto 3 tables) in 2-4 seconds using JRC 1. If we will open same report using JRC 2, we wait upto 60 seconds.
    This methods requires more time with JRC 2 comparing to JRC 1:
    ReportClientDocument#open(String, int);
    SubreportController#setTableLocation(String, ITable, ITable)
    DatabaseController#setTableLocation(ITable, ITable)
    Each invocation of one of these methods requires 2-4 seconds.
    Thank you in advance.
    Best regards
    Thomas
    (1) http://stackoverflow.com/questions/479405/replace-a-database-connection-for-subreports-with-jrc

    hello ....
    my report is  ''crystal report 11'' => "OLE DB"  => "Add Command(select * from table) " .
    code(JRC) : eclipse + crystal report for eclipse version 2 =>  "cr4e-all-in-one-win_2.0.1.zip"
    <%@ page contentType="text/html; charset=UTF-8"
    import="
    com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    java.sql.Connection,
    java.sql.DriverManager,
    java.sql.ResultSet,
    java.sql.SQLException,
    java.sql.Statement" %>
    <%
         try {
              String reportName = "report.rpt";
              ReportClientDocument clientDoc = new ReportClientDocument();
              clientDoc.open(reportName, 0);
              String tableAlias = "Command";
              clientDoc.getDatabaseController().setDataSource(myResult("SELECT * FROM table"), tableAlias,tableAlias);
              CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
              crystalReportPageViewer.setReportSource(clientDoc.getReportSource());
              crystalReportPageViewer.processHttpRequest(request, response, application, null);
         } catch (ReportSDKExceptionBase e) {
              e.printStackTrace();
             out.println(e);
    %>
    I simplified the code, *myResult("SELECT * FROM table") *  is absolutely no problem ,
    and this code is absolutely no problem in the "crystal report for eclipse "version 1
    but in  version 2 run error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: u7121u6CD5u9810u671Fu7684u8CC7u6599u5EABu9023u7DDAu5668u932Fu8AA4---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.new(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b9.onDataSourceChanged(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
         at org.apache.jsp.No_005f1.Eclipse_005fJTDS_005fSQL2005_005fTable_002dviewer_jsp._jspService(Eclipse_005fJTDS_005fSQL2005_005fTable_002dviewer_jsp.java:106)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: u7121u6CD5u9810u671Fu7684u8CC7u6599u5EABu9023u7DDAu5668u932Fu8AA4
         at com.crystaldecisions.reports.queryengine.Connection.bf(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Rowset.z3(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Rowset.bL(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Rowset.zM(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.a(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.a(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.try(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.a(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.u7(Unknown Source)
         at com.crystaldecisions.reports.datafoundation.DataFoundation.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.dfadapter.CheckDatabaseHelper.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.datafoundation.CheckDatabaseCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.VerifyDatabaseCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         ... 39 more
    Please help me and tell me why....

  • Performance problem with S873,S691,S679,S716

    Hi All,
    I am using tables S873,S691,S679,S716 in my report. Since these have huge data its creating performance problem. Right now i am selecting data from tables as Select single.. in Loop.. endloop.
    If i try to get it out and use FOR ALL ENTRIES, its taking longer time.
    I dont have all keys with me and i m trying to use index whereever possible.
    Any hints, comments are really appreciable.
    My code goes like this.
    This is not a full code... only a part where i am fetching data from 'S' tables.
    loop at i_mvke.
    SELECT kunnr zzobklgq zzcbklgq
    FROM s679 INTO
    (s679-kunnr,s679-zzobklgq,s679-zzcbklgq) WHERE
    matnr EQ i_mvke-matnr AND
    vrsio EQ p_versn AND
    sptag IN s_billed AND
    werks EQ p_werks AND
    vkorg EQ i_mvke-vkorg AND
    kunnr IN s_kunnr.
    SELECT SUM( zznslqty ) FROM s691 INTO
    w_s691_net_bill_qty WHERE
    Use index Z5
    matnr EQ i_mvke-matnr AND
    spmon EQ w_spmon AND
    vrsio EQ p_versn AND
    werks EQ p_werks AND
    vkorg EQ i_mvke-vkorg AND
    kunnr IN s_kunnr."
    SELECT SUM( zznslqty ) SUM( zzninvnum ) FROM s873 INTO
    (work01-zznslqty, work01-zzninvnum) WHERE
    use index Z02
    vkorg EQ i_mvke-vkorg AND
    werks EQ p_werks AND
    matnr EQ i_mvke-matnr AND
    sptag IN s_billed AND
    vrsio EQ p_versn AND
    kunnr IN s_kunnr.
    SELECT zcrdotov FROM s716 INTO s716-zcrdotov WHERE
    matnr EQ i_mvke-matnr AND
    sptag IN s_billed AND
    vkorg EQ i_mvke-vkorg AND
    kunnr IN s_kunnr AND
    werks = p_werks AND
    vrsio EQ p_versn.
    GET THE RECORD TOTAL
    ADD 1 TO w_s716_total_count.
    GET THE ONTIME TOTAL
    IF s716-zcrdotov = 1.
    ADD 1 TO w_s716_ontime_count.
    ENDIF.
    ENDSELECT.
    PERFORM fill_output_table.
    endloop. "i_mvke
    Message was edited by: Agasti Kale

    hi
    good
    wrong->
    SELECT kunnr zzobklgq zzcbklgq
    FROM s679 INTO
    (s679-kunnr,s679-zzobklgq,s679-zzcbklgq) WHERE
    matnr EQ i_mvke-matnr AND
    vrsio EQ p_versn AND
    sptag IN s_billed AND
    werks EQ p_werks AND
    vkorg EQ i_mvke-vkorg AND
    kunnr IN s_kunnr.
    write->
    SELECT kunnr zzobklgq zzcbklgq
    FROM s679 INTO CORRESPONDING FIELDS OF TABLE I_MVKE
    WHERE
    matnr EQ i_mvke-matnr AND
    vrsio EQ p_versn AND
    sptag IN s_billed AND
    werks EQ p_werks AND
    vkorg EQ i_mvke-vkorg AND
    kunnr IN s_kunnr.
    do the changes accordingly in the below select statements. you have not post the detail report otherwise i could have help you in other select statements also.
    thanks
    mrutyun

Maybe you are looking for

  • Web Service Connector Export Issue

    Hi, Version: Crystal Xcelsius Designer 4.5 I have a Crystal Xcelsius dashboard with a Web Service Connector component on it, as well as some graph components. When I "Preview" the file, the display works fine and the graph is filled with data obtaine

  • Lightroom 5.5 and Digital Photo Professional 4

    My workflow includes processing my Canon 6D RAW files in LR exporting them in reduced size JPG format to a folder on my external drive and then opening up the images in Digital Photo Professional (versions 3 and 4) to review and tweak before submissi

  • CREATING RAW DEVICE IN LINUX

    HI ALL, in redhat linux 5 how to format the disk(ex: /opt,/u01,.....) and make it as raw device for ASM installation

  • ITunes Match completely freezes iTunes at opening

    So, I just upgraded to iTunes Match last night, and then iTunes got stuck at step one for over 5 hours, and I had to reset my computer for another program, so I did so. Now, my iTunes automatically connects to the iTunes store to do the whole iTunes

  • Parsing Phone Numbers

    Hello, We are working on an integration that needs the phone numbers in CRMOD parsed out into the individual components. Currently the Web Services provide a phone number in it's full form. We would like to get the country code, area code, phone numb