[SOLVED] Compiz Performance with ATI x700

So this is my story:
I have an Acer Aspire Laptop with a ATI x700 Mobility graphics card. A couple of days ago I installed Arch for the first time. I installed the "xf86-video-ati" package and compiz-fusion and it worked great. Then I managed to break my system to unusability and decided to reinstall. In the meantime there was an update for xf86-video-ati (from 6.8.0-4 to 6.9.0-5) and now I have some quite annoying performance issues with compiz: maximizing/unmaximizing as well as unminimizing a window (so I assume everytime it has to load a new window into the memory) takes like 2 seconds (while working perfectly smoothly before).
I tryed the options suggested at http://wiki.archlinux.org/index.php/ATI … nce_tuning but without success. Since I use exactly the same xorg configuration as before I can only speculate that it has to do something with the package update (maybe some option that was enabled by default before now has to be manually set?). I also tried the catalyst drivers but performance was pretty much the same.
Anyways, here are the relevant parts (so I think) of my xorg.conf file
Section "Module"
Load "glx"
Load "dri"
Load "drm"
EndSection
Section "Device"
Identifier "** ATI (generic) [ati]"
Driver "ati"
Option "XAANoOffscreenPixmaps" "true"
Option "MonitorLayout" "LVDS,AUTO"
EndSection
Section "DRI"
Group "video"
Mode 0666
EndSection
Any ideas what I could do to bring back compiz at the speed that my graphics card already proved to be capable of are very welcome
Last edited by Baufo (2008-12-08 16:46:37)

I think I just experienced the same problem with my x800gto.  It was very slow to toggle between vertical/horizontal/full maximizations.  I tried changing the default acceleration method from XAA to EXA.  This seems to have solved the problem, and now my wobbly windows change size with butter smoothness.  The changes I made were to add
Option "AccelMethod" "EXA"
under the device setting.  There reason you need no such option for XAA is because, to my undestanding, XAA is the default.  Making this change means you should also comment out
Option "XAANoOffscreenPixmaps" "true" #needed for aiglx
since it is now irrelevant.
Since you also use an ATI card, I will suggest configuration options that work well for me:
Option "AGPMode" "4"
Option "GARTSize" "64"
Option "EnablePageFlip" "True"
Option "ColorTiling" "True"
Good luck.  Hope this does the trick for you.

Similar Messages

  • [SOLVED] Sluggish perfomance with ATi Rage 128

    Currently I have multiple issues with the following hardware
    CPU - Intel Pentium III (Katamai) 500Mhz
    00:00.0 Host bridge [0600]: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] [1106:0691] (rev 42)
    00:01.0 PCI bridge [0604]: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] [1106:8598]
    00:07.0 ISA bridge [0601]: VIA Technologies, Inc. VT82C596 ISA [Mobile South] [1106:0596] (rev 12)
    00:07.1 IDE interface [0101]: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE [1106:0571] (rev 06)
    00:07.2 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 08)
    00:07.3 Host bridge [0600]: VIA Technologies, Inc. VT82C596 Power Management [1106:3050] (rev 20)
    00:08.0 Multimedia audio controller [0401]: Creative Labs SB Live! EMU10k1 [1102:0002] (rev 05)
    00:08.1 Input device controller [0980]: Creative Labs SB Live! Game Port [1102:7002] (rev 05)
    00:09.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
    00:0a.0 RAID bus controller [0104]: VIA Technologies, Inc. VT6421 IDE RAID Controller [1106:3249] (rev 50)
    01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Rage 128 RF/SG AGP [1002:5246]
    First of all it's not possible to watch xvid encoded movies without problems that is, audio is out of sync of the picture
    glxinfo | grep -i render
    direct rendering: Yes
    OpenGL renderer string: Mesa DRI Rage 128 20051027 AGP 2x x86/MMX/SSE
    mplayer -vo xv /mnt/storage/Videos/In\ Lies\ We\ Trust\ -\ Dr.\ Len\ Horowitz/In\ Lies\ We\ Trust\ -\ Len\ Horowitz\ 2007\ -\ official\ release_xvid.avi
    MPlayer SVN-r29318-4.4.0 (C) 2000-2009 MPlayer Team
    137 audio & 296 video codecs
    Playing /mnt/storage/Videos/In Lies We Trust - Dr. Len Horowitz/In Lies We Trust - Len Horowitz 2007 - official release_xvid.avi.
    AVI file format detected.
    [aviheader] Video stream found, -vid 0
    [aviheader] Audio stream found, -aid 1
    VIDEO: [XVID] 640x480 16bpp 29.970 fps 492.8 kbps (60.2 kbyte/s)
    Clip info:
    Artist: Dr. Leonard Horowitz
    Copyright: Copy Freely
    Name: In Lies We Trust
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ==========================================================================
    AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    [mpeg4 @ 0x8890b20]Invalid and inefficient vfw-avi packed B frames detected
    VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    VO: [xv] 640x480 => 640x480 Planar YV12
    [mpeg4 @ 0x8890b20]frame skip 8t: 0.000 1/ 1 ??% ??% ??,?% 0 0
    [mpeg4 @ 0x8890b20]frame skip 8t: 0.000 2/ 2 ??% ??% ??,?% 1 0
    A: 91.6 V: 91.1 A-V: 0.495 ct: 0.239 2730/2730 85% 6% 4.1% 120 0
    **** Your system is too SLOW to play this! ****
    Possible reasons, problems, workarounds:
    - Most common: broken/buggy _audio_ driver
    - Try -ao sdl or use the OSS emulation of ALSA.
    - Experiment with different values for -autosync, 30 is a good start.
    - Slow video output
    - Try a different -vo driver (-vo help for a list) or try -framedrop!
    - Slow CPU
    - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
    - Broken file
    - Try various combinations of -nobps -ni -forceidx -mc 0.
    - Slow media (NFS/SMB mounts, DVD, VCD etc)
    - Try -cache 8192.
    - Are you using -cache to play a non-interleaved AVI file?
    - Try -nocache.
    Read DOCS/HTML/en/video.html for tuning/speedup tips.
    If none of this helps you, read DOCS/HTML/enmplayer -vo xv /mnt/storage/Videos/In\ Lies\ We\ Trust\ -\ Dr.\ Len\ Horowitz/In\ Lies\ We\ Trust\ -\ Len\ Horowitz\ 2007\ -\ official\ release_xvid.avi
    MPlayer SVN-r29318-4.4.0 (C) 2000-2009 MPlayer Team
    137 audio & 296 video codecs
    Playing /mnt/storage/Videos/In Lies We Trust - Dr. Len Horowitz/In Lies We Trust - Len Horowitz 2007 - official release_xvid.avi.
    AVI file format detected.
    [aviheader] Video stream found, -vid 0
    [aviheader] Audio stream found, -aid 1
    VIDEO: [XVID] 640x480 16bpp 29.970 fps 492.8 kbps (60.2 kbyte/s)
    Clip info:
    Artist: Dr. Leonard Horowitz
    Copyright: Copy Freely
    Name: In Lies We Trust
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ==========================================================================
    AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    [mpeg4 @ 0x8890b20]Invalid and inefficient vfw-avi packed B frames detected
    VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    VO: [xv] 640x480 => 640x480 Planar YV12
    [mpeg4 @ 0x8890b20]frame skip 8t: 0.000 1/ 1 ??% ??% ??,?% 0 0
    [mpeg4 @ 0x8890b20]frame skip 8t: 0.000 2/ 2 ??% ??% ??,?% 1 0
    A: 91.6 V: 91.1 A-V: 0.495 ct: 0.239 2730/2730 85% 6% 4.1% 120 0
    **** Your system is too SLOW to play this! ****
    Possible reasons, problems, workarounds:
    - Most common: broken/buggy _audio_ driver
    - Try -ao sdl or use the OSS emulation of ALSA.
    - Experiment with different values for -autosync, 30 is a good start.
    - Slow video output
    - Try a different -vo driver (-vo help for a list) or try -framedrop!
    - Slow CPU
    - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
    - Broken file
    - Try various combinations of -nobps -ni -forceidx -mc 0.
    - Slow media (NFS/SMB mounts, DVD, VCD etc)
    - Try -cache 8192.
    - Are you using -cache to play a non-interleaved AVI file?
    - Try -nocache.
    Read DOCS/HTML/en/video.html for tuning/speedup tips.
    If none of this helps you, read DOCS/HTML/en/bugreports.html.
    Xorg.conf - http://pastebin.ca/1430775
    Xorg.0.log - http://pastebin.ca/1430776
    Not to mention that there are several more issues such as slow scrolling using Midori, Mouse cursor flickering and incorrect refresh rate selected upon starting X session
    Thanks.
    Last edited by esters (2009-05-24 18:35:30)

    It will be nice to see if this is fixed.  I have a slow keyboard and mouse issues since upgrading xorg-server to 1.6.1.  I have not found a fix for these yet.

  • [SOLVED] Compiz performance & Gnome stability problem

    Hello,
    I just purchased a new computer, core i5 2400 with integrated graphic. After reinstall arch & stuffs as usual, I found out that Compiz is very slow (I think it's slower than my atom netbook) and Gnome randomly crash to GDM. I did google & search the forum, tried every solutions I found with no luck. Here is my situation.
    1. Gnome is fast with metacity. It will crash to GDM if I try to change the screen solution with System->Preferences->Monitors.
    2. Compiz is slow. I can't play 1080p video from youtube smoothly. I also experience random crash & return to GDM.
    3. With compiz, moving the windows of System->Preferences->Monitors always crash Gnome to GDM instantly.
    4. The current config is from arch's wiki.
    5. I also tried many solutions from google, none of them work.
    6. I now fallback to metacity and looking for a solution.
    any idea?? please advise.
    Tony
    Last edited by xtony (2011-01-22 20:54:10)

    Hello,
    This is the driver issue. Sandy bridge requires xf86-video-intel 2.14 which is being in testing repos. All other related software such as Mesa, libdrm that supports this CPU is still in testing too. We will also get better support for this new platform in kernel 2.6.37 (yes, in testing too). For one who don't want to wait. Add testing repos to your pacman & update your system.
    I'll close this thread and Have a good day.
    Tony

  • [SOLVED] Xorg Error with ATI Radeon 6650M

    Dear ArchLinux Community,
    this are my first steps in Arch but not in Linux. If you need more information to help me just let me know :-)
    At first the basic installation works fine as I was expecting it.
    After installing the Xorg (with xinit, fx86_ati, xorg-utils) I tried to start it with startx. An error appears and tells me to create the monitor config file. So I do.
    Now an other error that tells me the "document 9 line 30" is wrong, cannot be done.
    Sometime it tells me that xterm cannot be started or it shows up "exec twm" don't work.
    This Post seems to be linked to the problem at first but there is no real solution.
    Can anyone help me? Does anyone has some experience with that graficcard?
    Greetings mutagen
    Last edited by mutagen (2013-12-17 09:47:30)

    OK I found the problems:
    - change the value 'tmw' in the xinit.rc to 'KWin' (KDE ;-) )
    - forgotten to install xterm
    Now xorg starts and with it KDE, everything works but a bit slow as gnunn said. I will try the AMD drivers as next step.
    Thanks and can be closed :-)

  • Ati X700 and Compiz

    I have recently switched to Arch from ubuntu. I followed the Beginners Guide , I installed libgl , xorg and xf86-video-ati and compiz packages. When I launch compiz by typing fusion-icon in terminal , border of the windows are gone and an error occured "Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug !".
    By the way compiz was working fine on ubuntu.

    Copying my reply on your email in here for reference
    Well, I haven't done it myself so I only know the basics.
    But I just realized something else. Your videocard is not supported anymore by the current Catalyst drivers. Since Catalyst 9.4 ATI dropped support for anything below the HD2xxx series, we're at Catalyst 9.12 now. On Windows ATi keeps a legacy package and does bugfixes on that now and then, but I dont think they do that for Linux.
    With an X700 you are stuck with Catalyst 9.3. You could try these packages: http://aur.archlinux.org/packages.php?ID=25105  and  http://aur.archlinux.org/packages.php?ID=25106
    You should read: http://wiki.archlinux.org/index.php/ATI … yst_driver
    And the stuff it links to.
    Basicly what you need to do is,
    1. Retrieve all the packages you need to set up the older Xorg, with xorg-server 1.6.3 etc etc
    2. Remove your current Xorg stuff
    3. Install the older packages using "pacman -U <package-name.pkg.tar.gz>"
    4. Install and the older Catalyst driver like you would any package from AUR
    5. Configure xorg.conf
    6. Try it and see what happens
    Again, I have not done this myself. So search around and read read read, perhaps you can dig up a hell of a guide somewhere, because there are others with the same problem.
    I read you came from Ubuntu? In Arch you have some more work to do to get things working, I hope you have a little experience in that field.
    Remember, you only need to do this is your really want Compiz.
    I use Openbox and xcompmgr for some effects (fading mostly) myself and am quite satisfied. Perhaps you should give the open-source driver a go? Just don't expect any fancy 3D rendering from them.
    Or you could go and get a better supported card. The X700 seems like a nightmare to me.
    I bet even Ubuntu doesn't support it with fglrx in their current releases? So you would have been stuck on 8.10 or something with them?

  • [SOLVED] Artifacts with EXAPixmap ON and KMS with ATI OSS drivers

    I had some problems for many months on my Arch Linux installation and I couldnt figure out what was causing it, so, because I found the sollution, I wanted to post it here and share it with you.
    I, like others, was experiencing huge artifacts with KMS and EXAPixmaps on, on various cases, visuals and textures. After fiddling with all radeon options in xorg.conf and KMS on/off I found out thats its best for me to have KMS on (I couldnt play wine games otherwise) and EXAPixmaps off. But then again, when EXAPixmaps was off, I had poor 2D performance with KMS on, Xrender acceleration wasnt working and was falling back to software engine. Solution came from something that was brought to my attention in this topic. I ve set ARGB visuals off, raster engine for rendering and tried EXAPixmaps on.
    It worked! Everything are as they supposed to be. Xrender engine and composite manager are finally working, no more artifacts. Framebuffer memory on my radeon card was somehow cleared. I then later found out an awkward solution on how to clear it by demand... Start X with vesa driver... then fix again xorg.conf back to radeon driver and reboot.
    Now I have both 2D and 3D acceleration, I am logged in with KDE and have good performance. My glxgears output is 1000 to 1150 fps (vsync off) and I am using Xrender for the KDE desktop effects.
    EDIT: I must clarify that I have an ATI Radeon 9200 Mobility M9+ (R200 serries)
    Last edited by twilight0 (2011-05-13 20:30:27)

    I 've made some more edits and this is my current xorg.conf
    http://pastebin.com/x6ubG80K
    I have ColorTiling set on for performance, be careful as it may be resource hungry in 3D apps but it increases dramatically fps.
    You can try setting off EXAPixmaps as well and see how it goes, but then you ll have poor 2D performance and yet videos will play just fine either way.

  • Radeonhd: very slow performance with 2D accel enabled

    I have a Radeon HD 4850 in my desktop, and I'm having serious issues trying to get 2D support enabled with the radeonhd driver.
    The driver works fine without EXA and DRI enabled. X seems smooth and snappy. I get a little tearing with X11 and Flash video, but I bought an ATi card; I kind of expect it. I see no discernable difference in performance between the radeon and radeonhd drivers.
    However, if I turn the 2D accel options on, it feels like i'm using a pII or something. Windows tear all over the place, and everything in X slows waay down. I did some cursory seaching and it seems like this problem was solved a while ago and shouldn't show up in the up-to-date packages. I just ran pacman -Syu today; everything is synced.
    I feel like I shouldn't be having these kinds of performance issues, which probably means I missed something somewhere when I was setting stuff up. I'm not a brand-new arch user but this card is new to me and I haven't fiddled with ATi drivers very much.
    Anyone have any suggestions? I'm sort of at a loss here.
    Last edited by f0nd004u (2009-10-08 10:33:13)

    drm-radeon-module-git-r6xx-r7xx refuses to compile, breaks at the end:
    ==> Starting make...
    make DRM_MODULES=radeon.o modules
    make[1]: Entering directory `/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core'
    sh ../scripts/create_linux_pci_lists.sh < ../shared-core/drm_pciids.txt
    make -C /lib/modules/2.6.30-ARCH/build SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules
    make[2]: Entering directory `/usr/src/linux-2.6.30-ARCH'
    CC [M] /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.o
    In file included from /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drmP.h:84,
    from /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.c:36:
    /tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_os_linux.h:36: error: conflicting types for 'irqreturn_t'
    include/linux/irqreturn.h:16: note: previous declaration of 'irqreturn_t' was here
    make[3]: *** [/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core/drm_auth.o] Error 1
    make[2]: *** [_module_/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.30-ARCH'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/tmp/yaourt-tmp-josh/aur-drm-radeon-module-git-r6xx-r7xx/drm-radeon-module-git-r6xx-r7xx/src/drm-build/linux-core'
    make: *** [radeon.o] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build drm-radeon-module-git-r6xx-r7xx package.
    I'm not really sure what to make of that, and the driver definitely won't work without that module. Anyone got an idea?
    *EDIT: Nevermind, I'm dumb and tired and didn't pay attention to make when I was building this.
    Last edited by f0nd004u (2009-10-08 14:28:58)

  • AMD M880G with ATI Mobility Radeon HD 4250 display driver stopped responding

    I have received the following message on my HP Pavilion dv7:
    Display driver AMD driver stopped responding and has successfully recovered. It is an AMD M880G with ATI Mobility Radeon HD 4250.
    The screen randomly does this starting a day or so ago. Maybe once every few hours or it may do it once every 5 min three times in a row. The screen has random little blue dots here and there.
    What do I need to do? Is this something I could potentially fix/replace/etc?

    Is this they way you did a factory reset tomu96?  Performing an HP System Recovery (Windows 7)
    If so, that should have resolved the issue, but since it continues to crash if you made no changes after that restore, you probably have hardware failure.
    In North America, call (800)-474-6836 outside of North America find your support number here HP Technical Support
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Performance with the new Mac Pros?

    I sold my old Mac Pro (first generation) a few months ago in anticipation of the new line-up. In the meantime, I purchased a i7 iMac and 12GB of RAM. This machine is faster than my old Mac for most Aperture operations (except disk-intensive stuff that I only do occasionally).
    I am ready to purchase a "real" Mac, but I'm hesitating because the improvements just don't seem that great. I have two questions:
    1. Has anyone evaluated qualitative performance with the new ATI 5870 or 5770? Long ago, Aperture seemed pretty much GPU-constrained. I'm confused about whether that's the case anymore.
    2. Has anyone evaluated any of the new Mac Pro chips for general day-to-day use? I'm interested in processing through my images as quickly as possible, so the actual latency to demosaic and render from the raw originals (Canon 1-series) is the most important metric. The second thing is having reasonable performance for multiple brushed-in effect bricks.
    I'm mostly curious if anyone has any experience to point to whether it's worth it -- disregarding the other advantages like expandability and nicer (matte) displays.
    Thanks.
    Ben

    Thanks for writing. Please don't mind if I pick apart your statements.
    "For an extra $200 the 5870 is a no brainer." I agree on a pure cost basis that it's not a hard decision. But I have a very quiet environment, and I understand this card can make a lot of noise. To pay money, end up with a louder machine, and on top of that realize no significant benefit would be a minor disaster.
    So, the more interesting question is: has anyone actually used the 5870 and can compare it to previous cards? A 16-bit 60 megapixel image won't require even .5GB of VRAM if fully tiled into it, for example, so I have no ability, a priori, to prove to myself that it will matter. I guess I'm really hoping for real-world data. Perhaps you speak from this experience, Matthew? (I can't tell.)
    Background work and exporting are helpful, but not as critical for my primary daily use. I know the CPU is also used for demosaicing or at least some subset of the render pipeline, because I have two computers that demonstrate vastly different render-from-raw response times with the same graphics card. Indeed, it is this lag that would be the most valuable of all for me to reduce. I want to be able to flip through a large shoot and see each image at 100% as instantaneously as possible. On my 2.8 i7 that process takes about 1 second on average (when Aperture doesn't get confused and mysteriously stop rendering 100% images).
    Ben

  • Performance with LinkedList in java

    Hello All,
    Please suggest me any solution to further improve the performance with List.
    The problem description is as follows:
    I have a huge number of objects, lets say 10,000 , and need to store the objects in such a collection so that if i want to store an object at some particular index i , I get the best performance.
    I suppose as I need indexed based access, using List makes the best sense as Lists are ordered.
    Using LinkedList over ArrayList gives the better performance in the aforementioned context.
    Is there are way I can further improve the performance of LinkedList while solving this particular problem
    OR
    Is there any other index based collection using that i get better performance than LinkedList?
    Thanks in advance

    The trouble with a LinkedList as implemented in the Java libraries is that if you want to insert at index 100, it has no option but to step through the first 100 links of the list to find the insert point. Likewise is you retrieve by index. The strength of the linked list approach is lost if you work by index and the List interface gives no other way to insert in the middle of the list. The natural interface for a linked list would include an extended Iterator with methods for insert and replace. Of course LinkedLists are fine when you insert first or last.
    My guess would be that if your habitual insertion point was half way or more through the list then ArrayList would serve you better especially if you leave ample room for growth. Moving array elements up is probably not much more expensive, per element, than walking the linked list. Maybe 150% or thereabouts.
    Much depends on how you retrieve, and how volatile the list is. Certainly if you are a read-mostly situation and cannot use an iterator then a LinkedList won't suit.

  • How to solve thsi perform/form error occured in epc check

    Call to a program containing a syntax error (CALL/PERFORM/SUBMIT)
    Error in program /SAPAPO/SAPLATPQ_TIMESERIES - include /EPCOS/SD_CRSD0035_04 -
    line 76
    Syntax check error message:
    A target area must be declared either explicitly with an INTO clause or implicitl
    with a TABLES statement.
    Internal Message Code: MESSAGE GYN
    after clicking on error iam getting this statement how to solve this
    PERFORM localise_reqtms(/sapapo/saplatpq_timeseries)
                    USING space
                    CHANGING l_ts_endhor.

    Hi,
      This may be beacuse of the Internal Table you are passing to the Subroutine.
    So, In the Subroutine definition, we need to change the interface definition.
    FORM localise_reqtms(/sapapo/saplatpq_timeseries)
               USING SPACE as type C
               CHANGING L_TS_ENDHOR LIKE <Internal Table Type which you are using>  
    Thanks & Regards,
    Vamsi.

  • Extremely slow performance with Radeon HD 7870

    Hi,
    I am using a number of Adobe programs on my new Windows 8 64 bit system, with 16 gigs of ram, an Intel Core i5 2.67ghz, and AMD Radeon HD 7870 2 gig. All the programs (including After Effects and Illustrator) work very well with the exception of Photoshop CS6 64 bit, which has extremely slow performance with Use Graphics Processor enabled in my preferences (which Photoshop selects by default). If I turn off Use Graphics Processor, the slow performance vanishes. If I change Drawing Mode to Basic, there might be a slightly detectable improvement over Normal and Advanced, but it's still horribly slow. The refresh rate seems to be just a few frames per second. Everything is slow: brushes, zooming, panning, everything.
    I've tried changing the settings I've seen suggested elsewhere: I switched Cache levels to 2, history states to 10, and tile size to 128k. No effect. Photoshop is currently at the default of using 60% of available ram. Efficiency has remained at 100% throughout all my tests. Also, this slow performance has affected me from the moment I installed Photoshop; it didn't crop up after previous good performance. The problem exists regardless of the size or number of documents I have open. Performance is still terrible even when I create a 500 x 500 pixel blank new canvas and try a simple task like drawing with the brush.
    Photoshop is fully up to date, and so are my graphics drivers (Catalyst version 13.1). Any help would be greatly appreciated; at the moment performance is so bad in Photoshop that it's unusable with graphics acceleration enabled. Thanks in advance for replying.
    Photoshop System Info:
    Adobe Photoshop Version: 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00) x64
    Operating System: Windows 8 64-bit
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 4
    Processor speed: 2665 MHz
    Built-in memory: 16379 MB
    Free memory: 13443 MB
    Memory available to Photoshop: 14697 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K
    Image cache levels: 2
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    OpenCL Version: 1.2 AMD-APP (1084.4)
    OpenGL Version: 3.0
    Video Rect Texture Size: 16384
    OpenGL Memory: 2048 MB
    Video Card Vendor: ATI Technologies Inc.
    Video Card Renderer: AMD Radeon HD 7800 Series
    Display: 1
    Display Bounds: top=0, left=0, bottom=1080, right=1920
    Video Card Number: 2
    Video Card: AMD Radeon HD 7800 Series
    Driver Version:
    Driver Date:
    Video Card Driver: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.d ll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
    Video Mode: 1920 x 1080 x 4294967296 colors
    Video Card Caption: AMD Radeon HD 7800 Series
    Video Card Memory: 2048 MB
    Video Card Number: 1
    Video Card: Microsoft Basic Render Driver
    Driver Version: 9.12.0.0
    Driver Date: 20121219000000.000000-000
    Video Card Driver:
    Video Mode:
    Video Card Caption: Microsoft Basic Render Driver
    Video Card Memory: 0 MB
    Serial number: 90970078453021833509
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
    Temporary file path: C:\Users\RAFFAE~1\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      C:\, 931.5G, 534.8G free
    Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       ACE.dll   ACE 2012/06/05-15:16:32   66.507768   66.507768
       adbeape.dll   Adobe APE 2012/01/25-10:04:55   66.1025012   66.1025012
       AdobeLinguistic.dll   Adobe Linguisitc Library   6.0.0  
       AdobeOwl.dll   Adobe Owl 2012/09/10-12:31:21   5.0.4   79.517869
       AdobePDFL.dll   PDFL 2011/12/12-16:12:37   66.419471   66.419471
       AdobePIP.dll   Adobe Product Improvement Program   7.0.0.1686  
       AdobeXMP.dll   Adobe XMP Core 2012/02/06-14:56:27   66.145661   66.145661
       AdobeXMPFiles.dll   Adobe XMP Files 2012/02/06-14:56:27   66.145661   66.145661
       AdobeXMPScript.dll   Adobe XMP Script 2012/02/06-14:56:27   66.145661   66.145661
       adobe_caps.dll   Adobe CAPS   6,0,29,0  
       AGM.dll   AGM 2012/06/05-15:16:32   66.507768   66.507768
       ahclient.dll    AdobeHelp Dynamic Link Library   1,7,0,56  
       aif_core.dll   AIF   3.0   62.490293
       aif_ocl.dll   AIF   3.0   62.490293
       aif_ogl.dll   AIF   3.0   62.490293
       amtlib.dll   AMTLib (64 Bit)   6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00)   1.000000
       ARE.dll   ARE 2012/06/05-15:16:32   66.507768   66.507768
       AXE8SharedExpat.dll   AXE8SharedExpat 2011/12/16-15:10:49   66.26830   66.26830
       AXEDOMCore.dll   AXEDOMCore 2011/12/16-15:10:49   66.26830   66.26830
       Bib.dll   BIB 2012/06/05-15:16:32   66.507768   66.507768
       BIBUtils.dll   BIBUtils 2012/06/05-15:16:32   66.507768   66.507768
       boost_date_time.dll   DVA Product   6.0.0  
       boost_signals.dll   DVA Product   6.0.0  
       boost_system.dll   DVA Product   6.0.0  
       boost_threads.dll   DVA Product   6.0.0  
       cg.dll   NVIDIA Cg Runtime   3.0.00007  
       cgGL.dll   NVIDIA Cg Runtime   3.0.00007  
       CIT.dll   Adobe CIT   2.1.0.20577   2.1.0.20577
       CoolType.dll   CoolType 2012/06/05-15:16:32   66.507768   66.507768
       data_flow.dll   AIF   3.0   62.490293
       dvaaudiodevice.dll   DVA Product   6.0.0  
       dvacore.dll   DVA Product   6.0.0  
       dvamarshal.dll   DVA Product   6.0.0  
       dvamediatypes.dll   DVA Product   6.0.0  
       dvaplayer.dll   DVA Product   6.0.0  
       dvatransport.dll   DVA Product   6.0.0  
       dvaunittesting.dll   DVA Product   6.0.0  
       dynamiclink.dll   DVA Product   6.0.0  
       ExtendScript.dll   ExtendScript 2011/12/14-15:08:46   66.490082   66.490082
       FileInfo.dll   Adobe XMP FileInfo 2012/01/17-15:11:19   66.145433   66.145433
       filter_graph.dll   AIF   3.0   62.490293
       hydra_filters.dll   AIF   3.0   62.490293
       icucnv40.dll   International Components for Unicode 2011/11/15-16:30:22    Build gtlib_3.0.16615  
       icudt40.dll   International Components for Unicode 2011/11/15-16:30:22    Build gtlib_3.0.16615  
       image_compiler.dll   AIF   3.0   62.490293
       image_flow.dll   AIF   3.0   62.490293
       image_runtime.dll   AIF   3.0   62.490293
       JP2KLib.dll   JP2KLib 2011/12/12-16:12:37   66.236923   66.236923
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   12.0  
       LogSession.dll   LogSession   2.1.2.1681  
       mediacoreif.dll   DVA Product   6.0.0  
       MPS.dll   MPS 2012/02/03-10:33:13   66.495174   66.495174
       msvcm80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6910  
       msvcm90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       msvcp100.dll   Microsoft® Visual Studio® 2010   10.00.40219.1  
       msvcp80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6910  
       msvcp90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       msvcr100.dll   Microsoft® Visual Studio® 2010   10.00.40219.1  
       msvcr80.dll   Microsoft® Visual Studio® 2005   8.00.50727.6910  
       msvcr90.dll   Microsoft® Visual Studio® 2008   9.00.30729.1  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS6   CS6  
       Plugin.dll   Adobe Photoshop CS6   CS6  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (64 bit)   3.0.0.383  
       PSArt.dll   Adobe Photoshop CS6   CS6  
       PSViews.dll   Adobe Photoshop CS6   CS6  
       SCCore.dll   ScCore 2011/12/14-15:08:46   66.490082   66.490082
       ScriptUIFlex.dll   ScriptUIFlex 2011/12/14-15:08:46   66.490082   66.490082
       svml_dispmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   12.0  
       tbb.dll   Intel(R) Threading Building Blocks for Windows   3, 0, 2010, 0406  
       tbbmalloc.dll   Intel(R) Threading Building Blocks for Windows   3, 0, 2010, 0406  
       updaternotifications.dll   Adobe Updater Notifications Library   6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   6.0.0.24
       WRServices.dll   WRServices Friday January 27 2012 13:22:12   Build 0.17112   0.17112
    Required plug-ins:
       3D Studio 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Accented Edges 13.0
       Adaptive Wide Angle 13.0
       Angled Strokes 13.0
       Average 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Bas Relief 13.0
       BMP 13.0
       Camera Raw 7.3
       Chalk & Charcoal 13.0
       Charcoal 13.0
       Chrome 13.0
       Cineon 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Clouds 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Collada 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Color Halftone 13.0
       Colored Pencil 13.0
       CompuServe GIF 13.0
       Conté Crayon 13.0
       Craquelure 13.0
       Crop and Straighten Photos 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Crop and Straighten Photos Filter 13.0
       Crosshatch 13.0
       Crystallize 13.0
       Cutout 13.0
       Dark Strokes 13.0
       De-Interlace 13.0
       Dicom 13.0
       Difference Clouds 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Diffuse Glow 13.0
       Displace 13.0
       Dry Brush 13.0
       Eazel Acquire 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Embed Watermark 4.0
       Entropy 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Extrude 13.0
       FastCore Routines 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Fibers 13.0
       Film Grain 13.0
       Filter Gallery 13.0
       Flash 3D 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Fresco 13.0
       Glass 13.0
       Glowing Edges 13.0
       Google Earth 4 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Grain 13.0
       Graphic Pen 13.0
       Halftone Pattern 13.0
       HDRMergeUI 13.0
       IFF Format 13.0
       Ink Outlines 13.0
       JPEG 2000 13.0
       Kurtosis 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Lens Blur 13.0
       Lens Correction 13.0
       Lens Flare 13.0
       Liquify 13.0
       Matlab Operation 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Maximum 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Mean 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Measurement Core 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Median 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Mezzotint 13.0
       Minimum 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       MMXCore Routines 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Mosaic Tiles 13.0
       Multiprocessor Support 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Neon Glow 13.0
       Note Paper 13.0
       NTSC Colors 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Ocean Ripple 13.0
       Oil Paint 13.0
       OpenEXR 13.0
       Paint Daubs 13.0
       Palette Knife 13.0
       Patchwork 13.0
       Paths to Illustrator 13.0
       PCX 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Photocopy 13.0
       Photoshop 3D Engine 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Picture Package Filter 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Pinch 13.0
       Pixar 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Plaster 13.0
       Plastic Wrap 13.0
       PNG 13.0
       Pointillize 13.0
       Polar Coordinates 13.0
       Portable Bit Map 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Poster Edges 13.0
       Radial Blur 13.0
       Radiance 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Range 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Read Watermark 4.0
       Reticulation 13.0
       Ripple 13.0
       Rough Pastels 13.0
       Save for Web 13.0
       ScriptingSupport 13.1.2
       Shear 13.0
       Skewness 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Smart Blur 13.0
       Smudge Stick 13.0
       Solarize 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Spatter 13.0
       Spherize 13.0
       Sponge 13.0
       Sprayed Strokes 13.0
       Stained Glass 13.0
       Stamp 13.0
       Standard Deviation 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       STL 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Sumi-e 13.0
       Summation 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Targa 13.0
       Texturizer 13.0
       Tiles 13.0
       Torn Edges 13.0
       Twirl 13.0
       Underpainting 13.0
       Vanishing Point 13.0
       Variance 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Variations 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Water Paper 13.0
       Watercolor 13.0
       Wave 13.0
       Wavefront|OBJ 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       WIA Support 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       Wind 13.0
       Wireless Bitmap 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00)
       ZigZag 13.0
    Optional and third party plug-ins:
       DAZ Studio 3D Bridge 12.0
       DazUpdateScene 12.0
    Plug-ins that failed to load: NONE
    Flash:
       Mini Bridge
       Kuler
    Installed TWAIN devices: NONE

    Great news!
    I followed your suggestion, Noel, and uninstalled my drivers with the Catalyst Uninstall Utility (which I hadn't used before), rebooted, reinstalled Catalyst 13.2 Beta 7, rebooted, deleted the PS Prefs, started PS, and now the performance is radically improved!
    It baffles me why I would need to do a clean driver uninstall in a new system environment that has only ever had this video card, and is only a few months old, but that action seems to be what's improved the situation. Note that because I deleted the PS preferences, the good performance now occurs with the default Use Graphics Processor enabled, and Drawing Mode set to Advanced (with every feature in the Advanced dialog checked except 30bit display).
    Having no reference point, I can't tell for sure if performance is as good as it theoretically ought to be for my system specs, but using the standard 13px brush is only slightly laggy behind the cursor, even if I become reckless and squiggle on the canvas violently. It wasn't just sluggish response before: Photoshop seemed to be in pain trying to draw the line segments as it laboured to catch up to the cursor. That is pretty much gone now.
    Much more tellingly, zooming and panning the canvas is like it ought to be, responsive and clean, more or less like it was for me in CS4 with my old Nvidia 9600GT. The poor performance with zooming and panning was the most worrying aspect of the issue. It's a great relief to see these working more properly now.
    I have to confess I'm a little embarrassed to have drug you through all this hassle only to discover that something as rudimentary as properly cleaning out the drivers would be the apparent solution. I never would have imagined that doing that, with such a new and stable system, would make any difference, since I don't have a legacy of older drivers dotting my hard drive. In any event, I'm really grateful that you guys took the time to try to help me.
    In the interest of completeness, here's the relevant portion of my system info after doing the reinstall steps I mentioned above:
    Adobe Photoshop Version: 13.1.2 (13.1.2 20130105.r.224 2013/01/05:23:00:00) x64
    Operating System: Windows 8 64-bit
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 4
    Processor speed: 2665 MHz
    Built-in memory: 16379 MB
    Free memory: 13680 MB
    Memory available to Photoshop: 14695 MB
    Memory used by Photoshop: 60 %
    Image tile size: 1024K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    OpenCL Version: 3.0
    OpenGL Version: 3.0
    Video Rect Texture Size: 16384
    OpenGL Memory: 2048 MB
    Video Card Vendor: ATI Technologies Inc.
    Video Card Renderer: AMD Radeon HD 7800 Series
    Display: 1
    Display Bounds: top=0, left=0, bottom=1080, right=1920
    Video Card Number: 2
    Video Card: AMD Radeon HD 7800 Series
    Driver Version:
    Driver Date:
    Video Card Driver: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.d ll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
    Video Mode: 1920 x 1080 x 4294967296 colors
    Video Card Caption: AMD Radeon HD 7800 Series
    Video Card Memory: 2048 MB
    Video Card Number: 1
    Video Card: Microsoft Basic Render Driver
    Driver Version: 12.100.17.0
    Driver Date: 20130226000000.000000-000
    Video Card Driver:
    Video Mode:
    Video Card Caption: Microsoft Basic Render Driver
    Video Card Memory: 0 MB
    As you can see, the Microsoft Basic Render Driver still appears as a Video Card in the list. This presumably has something to do with Windows 8, and I really don't know if its presence here is still a sign that my card is not being used to its optimal capability. I have a hunch that the slight lag that I am still experiencing with the brush when Use Graphics Processor is on -- totally absent with the acceleration turned off -- implies that Photoshop is still unable to take maximum advantage of my card. I would assume that the brush tool should be more responsive with acceleration on than off, in a rig without any issues, but that's just assumption on my part. If you turn off Use Graphics Processor on your systems, is the brush tool more or less responsive?
    But again, panning the canvas with the hand tool is now extremely responsive, without any screen tearing or visible lag, and that's a massive improvement over the total meltdown of performance I was suffering from before.
    Thanks again very much for your help. I'm grateful to all of you who took the time to chime in.

  • [SOLVED]Compiz Fusion doesn't start!

    Hello,
    After an upgrade Compiz Fusion doesn't start. Normally I start Compiz Fusion with the command:
    fusion-icon
    But now it gives on a terminal the following output:
    fusion-icon
    * Detected Session: gnome
    * execution of "which glxinfo" failed
    * Error: glxinfo not installed!
    I searched with Yaourt on "glxinfo", but there is no package called "glxinfo".
    Could someone help?
    Jozef
    Last edited by jozef00 (2009-05-11 16:01:39)

    Hello,
    The problem is solved. Instead of
    fusion-icon
    I use
    compiz-manager
    Thanks to xaiviax for his reply.
    Jozef

  • JDeveloper performance with XSL Mapper

    Hi All,
    Not sure if this is the right place to ask this question since it has to do JDeveloper performance with SOA and not ADF.
    In the XSL Transformation mapper tool, whenever I do an auto-map between two large schemas, my JDeveloper memory usage hikes up to about 1.3 GB and then both the JRE and JDeveloper hangs although the transformation finishes. The problem is that sometimes it hangs before you can save it. It almost seems like a memory leak.
    NOTE: I am not getting any out-of-memory error since I increased already increased the memory.
    Any help to optimize and solve this problem will be very helpful.
    Thanks!

    chk this
    http://docs.oracle.com/cd/E11036_01/doc.1013/e10295/xslt_mpr.htm
    you should have SOA composite application extension for this..
    if you dont want a visual transformation then you can use the jdeveloper project properties -> Run/Debug -> edit run configuration -> XSLT

  • Oracle: slow performance with SELECT using ojdbc14 and connection pooling

    Hello,
    i'm working hard the last days to solve a performance problem with our customer using a oracle 10g database. For testing I used our oracle 9.2.0.1.0 database which shows the same symptoms. All doing solved nothing: the performance while using this oracle is much slower than other databases. This result I cannot trust and so I need some advice. What is missing to improve the performance on the java side?
    The webapplication I use runs fast on MySQL 4.x and SQLServer 2000, but on the above mentioned Oracle it was always 4 times slower. The webapplication uses a lot of simple SELECT-Statements without complicated joins and so on (because it should run on many different databases). Doing some days of creating tests within this webapplication, I was not able to find any entrance point for a change. All databases server I'm using, having only the default configurations after a common installation.
    To reduce the complexity I wrote a simple java application with connection pooling using only the latest libraries from apache-commons(dbcp, pool), and the latest ojdbc14 for oracle 9.2.
    First the results than the code: MySQL needed less than 1000 millisecond, SQLServer around 1000 milliseconds and Oracle over 2000 milliseconds. I stopped pooling and the results are for Oracle even worse: over 18000 milliseconds (mysql:2500, sqlserver:4100).
    I changed the classes for Oracle and used the class oracle.jdbc.pool.OracleConnectionCacheImpl from the ojdbc14-library. No difference (around 100 milliseconds more or less).
    The only Select-Statement works on this table, which has one index on HICTGID.
    It contains 259 entrances.:
    CREATE TABLE HIERARCHYCATEGORY (
      HICTGID                 NUMBER (19)   NOT NULL,
      HICTGLEVEL              NUMBER (10)   NOT NULL,
      HICTGEXTID              NUMBER (19)   NOT NULL,
      HICTGEXTPARENTID        NUMBER (19)   NOT NULL,
      HICTGNAME               VARCHAR2(255) NOT NULL
    );The application simply loops through this table using
    SELECT Hictgid, Hictgname FROM HIERARCHYCATEGORY WHERE HICTGID = ?, but I always open a connection before this query and closes this connection afterwards. So I use the pooling as much as possible. That's all SQL I'm using.
        protected static DataSource setupDataSource(String sDriver, String sUrl, String sUser, String sPwd) throws SQLException {
            BasicDataSource ds = new BasicDataSource();
            ds.setDriverClassName(sDriver);
            ds.setUsername(sUser);
            ds.setPassword(sPwd);
            ds.setUrl(sUrl);
            // The maximum number of active connections:
            ds.setMaxActive(3);
            // The maximum number of active connections that can remain idle in the pool,
            // without extra ones being released, or zero for no limit:
            ds.setMaxIdle(3);
            // The maximum number of milliseconds that the pool will wait (when there are no available connections)
            // for a connection to be returned before throwing an exception, or -1 to wait indefinitely:
            ds.setMaxWait(3000);    
            return ds;
        }I can switch by using external properties between three databases (oracle, mysql and sqlserver) and if I want I can switch pooling off. And all actions I'm interested are logged by Log4J.
        public static Connection getConnection() throws SQLException {
            Connection result = null;
            String sJdbcDriver = m_oJbProp.getString("jdbcDriver");
            String sJdbcUrl = m_oJbProp.getString("databaseConnection");
            String sJdbcUser = m_oJbProp.getString("dbUsername");
            String sJdbcPwd = m_oJbProp.getString("dbPassword");
                try {
                    if (m_oJbProp.getString("useConnectionPooling").equals("true")) {
                         if (log.isDebugEnabled()) {
                              log.debug("ConnectionPooling true");
                        if(null == m_ds) {
                            m_ds = setupDataSource(sJdbcDriver,sJdbcUrl,sJdbcUser,sJdbcPwd);
                              if (log.isDebugEnabled()) {
                                   log.debug("DataSource created");
                        result = m_ds.getConnection();
                    } else {
                        // No connection pooling:
                         if (log.isDebugEnabled()) {
                              log.debug("ConnectionPooling false");
                        try {
                            Class.forName(sJdbcDriver);
                            result = DriverManager.getConnection(sJdbcUrl, sJdbcUser, sJdbcPwd);
                        } catch (ClassNotFoundException cnf) {
                            log.error("Exception: Class Not Found. ", cnf);
                            System.exit(0);
    (.. ErrorHandling ...)Here is the code fragment which is doing the work:
                     StringBuffer sb = new StringBuffer();
                while (lNextBottom <= lNextCeiling) {
                     con = getConnection();
                     innerSelStmt = con.prepareStatement("SELECT Hictgid, Hictgname FROM HIERARCHYCATEGORY WHERE HICTGID = ?");
                     innerSelStmt.setLong(1, lNextBottom);
                     rsInner = innerSelStmt.executeQuery();
                     if ((rsInner != null) && (rsInner.next())) {
                         sb.append(rsInner.getLong(1) + ", " + rsInner.getString(2) + "\r");
                          if (log.isDebugEnabled()) {
                               log.debug("Inner Statement: " + rsInner.getLong(1) + "\r");
                     rsInner.close();
                     con.close();
                     lNextBottom++;
                 if (log.isInfoEnabled()) {
                      log.info("\rResult values: Hictgid, Hictgname \r");
                      log.info(sb.toString());
                 }and the main method:
        public static void main(String[] args) {
            try {
                 long lStartTime = System.currentTimeMillis();
                 JdbcBasic oJb = new JdbcBasic();
                 boolean bSuccess = false;
                 bSuccess = oJb.getHierarchycategories();
                 if (log.isInfoEnabled()) {
                      log.info("Running time: " + (System.currentTimeMillis() - lStartTime));
                 if (null != m_ds) {
                     printDataSourceStats(m_ds);
                      shutdownDataSource(m_ds);
                      if (log.isInfoEnabled()) {
                           log.info("Datasource closed.");
             } catch (SQLException sqe) {
                  log.error("SQLException within  main-method", sqe);
        }My database values are
    databaseConnection=jdbc:oracle:thin:@SERVERDB:1521:ora
    jdbcDriver=oracle.jdbc.driver.OracleDriver
    databaseConnection=jdbc:jtds:sqlserver://SERVERDB:1433/testdb
    jdbcDriver=net.sourceforge.jtds.jdbc.Driver
    databaseConnection=jdbc:mysql://localhost/testdb
    jdbcDriver=com.mysql.jdbc.Driver
    dbUsername=testusr
    dbPassword=testpwdThanks for your reading and maybe for your help.

    A few comments.
    There is of course another difference between your test cases then just the database. There is also the driver. And I suspect that in at least the case with the jtds driver it is helping you along where you are doing something silly and the Oracle driver is not.
    Before I explain the next part I would say the speed differences between MS-SQL and MySQL look about right I think you are aiming here for MS-SQL level performance not MySQL. (For a bunch of reasons MySQL is inherently faster but there are MANY drawbacks as well which have been well discussed on previous threads)
    Here is where I believe your problem lies
    while (lNextBottom <= lNextCeiling) {
                     con = getConnection();
                     innerSelStmt = con.prepareStatement("SELECT Hictgid, Hictgname FROM HIERARCHYCATEGORY WHERE HICTGID = ?");
                     innerSelStmt.setLong(1, lNextBottom);
                     rsInner = innerSelStmt.executeQuery();
                     if ((rsInner != null) && (rsInner.next())) {
                         sb.append(rsInner.getLong(1) + ", " + rsInner.getString(2) + "\r");
                          if (log.isDebugEnabled()) {
                               log.debug("Inner Statement: " + rsInner.getLong(1) + "\r");
                     rsInner.close();
                     con.close();
                     lNextBottom++;
                 }There at least four things that are wrong with above.
    1) Why are you preparing the statement INSIDE the loop. Let us for a moment say that the loop will spin 100 times. That means that you are preparing the same statement 100 times. This is bad. It is also very relevant because for example the Jtds driver is going to be caching the prepared statements you make so that actually while you try and prepare it 100 times it only actually does it once... but in Oracle I don't know what it is doing for sure but if it is preparing on each pass well than that bit of it is going take 100 times longer then it should.
    2) You are opening and closing the connection on each pass through the loop... also a terrible idea. You need to fix this first so that you can repeatedly use the same prepared statement.
    3) Why are you looping in the first place? More on this later.
    4) Where do you close the PreparedStatement? It doesn't look like you do.
    Okay so for starters your loop should look a lot more like this...
    code]
    con = getConnection();
    innerSelStmt = con.prepareStatement("SELECT Hictgid, Hictgname FROM HIERARCHYCATEGORY WHERE HICTGID = ?");
    while (lNextBottom <= lNextCeiling) {
    innerSelStmt.setLong(1, lNextBottom);
    rsInner = innerSelStmt.executeQuery();
    if ((rsInner != null) && (rsInner.next())) {
    sb.append(rsInner.getLong(1) + ", " + rsInner.getString(2) + "\r");
    rsInner.close();
    lNextBottom++;
    innerSelStmt.close();
    con.close();
    I think the code above (and you can put your debug stuff back if you want) which uses ONE connection and ONE prepared Statement will improve your performance dramatically.
    The other question though I would as is why in the hell you are doing 100 or whatever number of queries anyway. This can be done all in ONE query which again will improve performance.
    Your query and such should look like this I think.
    String sql = "SELECT Hictgid, Hictgname FROM HIERARCHYCATEGORY WHERE HICTGID >=? AND HICTGID<=?";
    PreparedStatement ps = conn.prepareStatement(sql);
    ps.setLong(1,lNextBottom );
    ps.setLong(2,lNextCeiling);
    ResultSet rs = ps.executeQuery();
    while(rs.next()){
      // your appending to string buffer code goes here
    }and I can't understand why you're not doing that in the first place.

Maybe you are looking for

  • S_ALR_87012309 - No profit center

    Dear experts, When our business User executes S_ALR_87012309, for main cash G/L account, the profit centers are not being displayed in the report. Our company has new G/L functionality activated. Upon further investigation, it is found that S_ALR_870

  • Cannot print on a USB printer with Java PrintService in Windows 2000

    I want to print a simple ASCII file on a USB printer under Win2K and found 2 problems. Here is the 2nd one. Even though PrintServiceLookup.lookupPrintServices(<DocFlavor>, <AttributeSet>) returns nothing when I specify any AttributeSet, I can still p

  • Cannot connect HP to Airport Express

    I have hooked up my airport express and it connects fine with my Mac. I have been trying to connect to the wireless internet connection also with my HP and having no success. It finds the network, connects to it, but not to the internet. Any help wou

  • [Found workaround] Conky ignores "window_hint below" when autostarted.

    I recently installed conky and adapted its config to my liking. Conky is started automatically after logging in using a desktop entry in .config/autostart. The problem is that after logging in, conky is drawn above other windows although my .conkyrc

  • MDDataSetBW.GetCellData EXCEPTION FUNCTION_NOT_FOUND RAISED. (WIS 10901)

    Hello Guru, I am facing one issue when i try to execute one Webi Report. I created Universe on top of 0PP_C14 Infocube. I am using Basic Finish Date, Production Order, Group Finish Date as Dimension and Number of Manufacturing orders as Keyfigures an