JVM performance slowed down after

Hello all,
My java application is heavily multithreaded and its supposed to run as a 24/7 service. Its supposed to collect SMS from different servers, store in memory/flat-files and send them to clients.
The application has been running for the past 6 days and
the JVM has slowed down considerably. (performance has gone down)
Initially the app used to receive/send arnd 50 SMS per second and now it process aroubd 20-25 SMS per second.
I've been using Your kit profiler to profile my app.
The maximum heap I allocated was 500MB; the alloted Heap shown in the
profiler is 95MB and the used Heap is 65MB
The CPU usage looks fairly stable,i.e. it does go up when SMS comes in
and i/o operations takes place and goes to 0% when no process is being done.
memory usage also looks fairly stable.
(No explicit memory leaks)
The application has over 133 threads and that stays the same as per
the profiler tool kit.
Also in my application I have a maintainance phase at 23:00 hours during which i do some cleaning work like
-deleting of expired SMS from memory
-deleting old log files
-deleteing other flat files
-and finally I explicitly call the garbage collector
What should I look in - to maintain the performance, should I not explicitly call
the GC and let JVM do it on its own? or is it beacause the heap space has become fragmented? - I do make a lots of read/writes from/to the objects stored in Heap.
I also make around 160,000+ read/write from/to flat files in the hard disk.
Could this cause the JVM to slow down?
Any suggestion on this will be great.

Initially the app used to receive/send arnd 50 SMS
per second and now it process aroubd 20-25 SMS per
second.
I've been using Your kit profiler to profile myapp.
Does it have CPU profiling? If yes, then you can look
at where the time's being spent when processing a
message.
It does have a CPU profiling graph, but there is nothing much i can infer from it, I can see the graph peaking to 60-80% CPU usage when SMS are comming in (i.e. SMS is received, stored in memory & a copy is also put in the flat file - which is a read/write I/O operation, so I would defenitely expect the CPU to peak up); this peaking up would normally happen between 6-9am when lots of SMS come it to my app. The rest of the time (in the afternoon & evening) CPU is 0% ; so I can defenitely rule ot memory leak right?
its difficult to find out the time taken to process every message; the rough estimate I got from the log file is 50SMS / Sec. i.e. 50SMS receievd via TCP/IP; then store it in flat file & memory and also deliver it across to a client via socket; get a response back; change some status in memory and also in the flat file; this count of 50 has defenitely dropped to 25-30 in 6 days.
>
The maximum heap I allocated was 500MB; thealloted
Heap shown in the profiler is 95MB and the usedHeap is 65MB
So not a memory problem.
The CPU usage looks fairly stable,i.e. it does goup
when SMS comes in and i/o operations takes place
and goes to 0% when no process is being done.So not a background thread that's run amok
(probably).
The application has over 133 threads and thatstays
the same as per the profiler tool kit.You could be running into contention for a shared
resource. This will show up in the CPU profiler, or
you can get a "quick and dirty" report by hitting
Ctrl-\ in the window where the JVM is running (or, if
on Unix, sending SIGQUIT to the JVM process). This
will send a thread dump to the console. Look for a
lot of threads "wait"ing on some object, then look
for the thread that holds that object.
You are talking of possible dead-locks right? thats something i@ve go to llok into; the profiler does lists ot a list of possible thread-deadlocks. but all of them are purposefully made into TIMED_WAITING ; would that cause the performance to drop?
>
What should I look in - to maintain theperformance,
should I not explicitly call the GC and let JVM doit on its own?
Never call GC directly. The JVM will do it when
necessary. Plus, you don't appear to have a memory
issue.
Yep, would change that and avoid calling GC directly.
>
I also make around 160,000+ read/write from/toflat
files in the hard disk. Could this cause the JVM toslow down?
Ahh ... flat files in a single directory? A lot of
files in one directory will definitely slow things
down, especially if you're opening them for every
read and write: the OS has to scan the entire
directory to find the file.Nothing much I can do there.
>
Does performance improve after your nightly cleanup?
If yes, and you're removing old files, then this is
an indication of the problem.I'll look into the logs to see if there is any increase in performance after GC and clome back

Similar Messages

  • Why does Firefox performance slow down after starting Jack server?

    Hello,
    I started configuring my audio on my system. So, I want to have jack working (not jack2, to work with wineasio) with best sound quality with all sound routed through jack. When i start jack server with this command and settings:
    killall jackd;killall pulseaudio;jackd -R -t 1000 -d alsa -P hw:0,0 -r 48000 -n2 -D
    Firefox slows down, opens new pages slow and the scroll down is very very slow. I had this issue with other distros too. I suspect that it has to do with realtime ( which i need for my audio related apps like traktor through wine, ardour, ableton through wine etc) without being sure about it. Any idea why this is happening?

    zabrielza wrote:I had this issue with other distros too.
    This smells like hardware problem. Do this:
    1. Kill pulseaudio, jack, and make sure they are killed
    2. Make sure you do not renice anything or apply other such tweaks
    3. Run jackd -d alsa
    4. Use your system
    5. If unsatisfactory, try jackd -d alsa -p 1024 -n 3
    6. Use your system
    Jack runs with realtime priority by default (no flag required), and we still use the audio group to provide that privilege. I also do not advocate the realtime kernel, but you may try it. Jack not functioning well (i.e. hampering other tasks significantly) on a standard kernel is cause for concern.
    You can read/grep your dmesg and systemd journal for suspicious messages. You may try running real-time audio tasks in another operating system with your hardware, and upon success may proceed to debug the problem on Linux, possibly with the help of the alsa developers.
    Or better yet, grab a supported semi-pro external audio device if jack is important for you. However, this may not help if the problem is somewhere deeper, e.g. at the hardware interrupt level.
    Last edited by schivmeister (2015-04-30 18:21:56)

  • MacBook Pro 13" Late 2011 Experiencing Significant Slow Down After Boot Camp Installation

         Okay, so today, after installing Windows 7 on my MacBook Pro via Bootcamp Assistant, I experienced significant performance slow down (fans going at full blast, applications opening after extended periods of time, keystrokes not being registered) when I returned to my OS X partition/second hard drive. I have dual hard drives, one of them being a Samsung 256 GB SSD with OS X Mavericks and the other being my original 500 GB HDD, divided into a 250 GB OS X Mavericks partition and a 250 GB Windows partition. I have the SSD set as my startup disk and I have it located in the main HDD bay. I moved the old HDD into a caddy and placed it where the optical drive normally should be.
          After multiple failed attempts to install Windows via USB and Bootcamp Assistant, I decided to reinstall my optical drive and use a Windows installation disk. This attempt proved successful, and I was able to install Windows 7 onto the 250 GB partition I had created for it on the 500 GB HDD. After completing basic setup of Windows, I removed the optical disk drive and reinstalled the SSD and the HDD into their original spots (SSD in the main HDD bay, HDD in the caddy where the optical drive normally is).
         After completing this tedious process, I booted my Mac back up using the SSD. However, I noticed something was wrong when the login screen, apps, and nearly everything else on my desktop had slowed to crawl. I decided to check my Activity Monitor to see what the problem might be. Activity Monitor told me that the task "kernel_task" was taking up anywhere from 200-600% of my CPU, which explained the slowdown in performance. I looked around to see if there were others with the same problem as me, and I found that Spotlight Indexing might be an issue, with a potential remedy being move my Bootcamp Partition into the Privacy section of Spotlight under System Preferences. After doing that, I experienced no increase in performance and everything was still going very slowly.
         The next step I took was to see if booting into Safe Mode would help the issue. After booting into Safe Mode on my SSD, I noticed that things were back to their normal speeds, with applications opening at the speed they should be and keystrokes being registered instantaneously. However, the fans were still going and had not shut off once booting into Safe Mode. In addition, I checked Activity Monitor and the "kernel_task" in question was no longer taking up massive amounts of the CPU.
         At this point, I don't know what to do and I need help in restoring my Mac to original speeds. I may end up deleting my Boot Camp partition as a last measure if all else fails, seeing as I installed Windows in the first place for running a few programs and games that I can live without. However, I'd prefer to not have things come to that and fix things before deleting the Boot Camp Partition. I've heard that if everything runs normally in Safe Mode, then the issue is third-party software. Is this true?
         Any help would be greatly appreciated as I am writing this from the MacBook in question in Safe Mode because it's essentially useless in normal SSD operation.

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off merely by the seeming complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the behest of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed:
    Copy a line of text in this window to the Clipboard.
    Paste into the window of another application.
    Wait for the test to run. It usually takes a few minutes.
    Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' \*AutoCad \*dropbox \*GoogleDr\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 ` route -n get default|awk '/e:/{print $2}' ` 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB com.apple.AirPortBaseStationAgent 464843899 );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' /^ *$|CSConfigDot/d;s/^ */  /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' ' s/^ +//;5p;6p;8p;12p;' ' {sub(/^ +/,"")};NR==6;NR==13&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<200) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { print "'${p[41]}'";if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$|'${p[41]}'/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1000) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/ { next;} /(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { print "'${p[41]}'.plist\t'${p[42]}'";if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/ { next;} /%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]" "$1;b=b$1;} END { if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n  "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n  [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|POSIX sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n  ...and %s more line(s)\n",l-L);} ' ' /^ +[NP].+ =/h;/^( +D.+[{]|[}])/{ g;s/.+= //p;};' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test );c2=(com.apple.loginwindow\ LoginHook '" /L*/P*/loginw*' '" L*/P*/*loginit*' 'L*/Ca*/com.ap*.Saf*/E*/* -depth 1 -name In*t -exec '"${c1[14]}"' :CFBundleDisplayName" {} \;' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' :${p[35]}\" :Label\" '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'bad |Beac|caug|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cgh] ! -name *ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Ca*/*/Ex,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t /S*/L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' -i4TCP:0-1023 com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents launchd Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0(){ [[ "$v" ]]&&echo "$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "$s"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;A2 4 20 21;B7 6;B2 9;A4 14 7 52 9;B2 10;B6 9 10 4;C3 25;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D13 14 1 48 42;D12 34 43 53 44;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D13 14 2 48 43;D13 4 5 32 1;D22 4 4 50 0;D13 4 3 32 5;D12 26 48 49 49;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start Time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • LR 2.5 slows down after upgrading to Snow Leopard

    This is my first post, so first of all I'd like to say hello to everybody here and apologize for my poor english
    My computer is an iMAC with an Intel Core 2 Duo, 4GB RAM, 500GB HD and a graphic card NVIDIA GeForce 8800 GS with 512 MB VRAM.
    The LR database is contains, up to now, about 5000 photos most of them in NEF format (my camera is a Nikon D300)
    In the last month I noticed that the performance slowed down consistently as thumbnails refresh started taking a long time as well as editing photos and the overall LR2 (executing at 64bits) working.
    I started monitoring the system, but despite the low LR2 performances I still had a lot of free RAM and the cores weren't really working a lot.
    I can't say this for sure, but I could bet that the performance problems began with the upgrade to Snow Leopard.
    Can anybody help me to solve this issue?
    Thanks a lot in advance
    Roberto

    Ian Lyons wrote:
    Lightroom performance should not have deteriorated as a result of upgrading to Snow Leopard. Things that you should check are:
    1. that you are indeed running Lightroom in 64-bit mode (open System info under Help menu and check that Application Architecture shows x64)
    2. that you have all of your previews rendered to at least Standard-size
    3. that you have at least 20% free hard disk space
    You should also run the Catalog Optimisation option in Catalog Settings
    1. Yes, LR2 was running in 64 bit mode before upgrading to Snow Leopard, then (don't know why) gets back to 32 just after the upgrade and I manually set it to 64 bit (checked in the application and on the process monitoring while running)
    2. I have the preview rendered 1:1 in the folder I'm working on (done again tonight)
    3. I have 55% free HD space
    4. I run a Catalog Optimization many times, The last one was tonight
    In other words I've checked and tried all these things many times. I've red on the internet that it might be a geforce 8800 issue, but I've found only windows references. Don't forget that neither RAM nor CPU are stressed when LR2 is working and all other applications run normally

  • Has anyone noticed MacBook Air slowing down after installing Maverick

    Has anyone noticed MacBook Air slowing down after installing Maverick?

    Activity Monitor - Mavericks
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy

  • Lightroom workflow slows down after modifying an image

    Hi fellow users,
    Lightroom 4.3 runs smoothly if I work on unmodified images.
    However, if I apply modifications on an image, retouching it afterwards becomes much slower, even if I render a preview AFTER I made modifications on the image.
    I tell you an example: I import a raw file to the program and I render it`s preview. Then I retouch the image - it works very fast, no waiting time, no Loading overlay.
    Where the problem starts: I import a raw file, I apply some modifications on it (for example a preset), then I render it`s preview - then I want to do more modifications on the image, which becomes very slow.
    I was monitoring the cpu usage of the computer. In the first case, the cpu usage during modifying the image is normal.
    In the second case, it goes up to 100%.
    It seems that applying modifications on an image makes working on it slow, no matter if you have the most up-to-date preview or not.
    Anyone knows if it is normal or not?
    Is there any solution to this?
    Thanks,
    Tamas
    My configuration:
    Windows 7 64 bit (up to date)
    Lightroom 4.3 64 bit
    Fast PC
    lightroom settings:
    camera raw cache: 20gb
    video cache: 10gb

    First of all, you can forget about the preview rendering, that's irrelevant. Previews are only used by the Library module, not the Develop module. In Develop, it's handled by the ACR cache.
    Now, as for slowing down after initial adjustments, that's a variable I haven't looked out for. But it could well be correct (it would explain some weird results I got across two machines recently).
    In general, Lightroom 4 performs well below expected standards on some systems, while others fly along, and it seems nobody can explain why. Long story, do a search on this forum and you'll come up with several lengthy threads. The problem is that there are so many variables in this that it's almost impossible to even define what "slow" means. And now you've added another (interesting) one...

  • Performance slow down (Run Portal Form)

    performance slow down
    Hi :
    When I code a program and running, it is running speed is very fast. but After I was coded programs about 10 program, it is speed is
    slow down, runing a program must speed 1 minute.
    My portal system totally have 12 programs, when I reinstall portal system. that problem never change.
    Can you tell me why? Thanks.
    null

    Hi :
    Sorry, I don't understand your answer.
    you mean the solution is create index.
    But what table can I create index, oracle portal table or my own apllication table?

  • System Slow-Down After Printing

    I recently installed Mountain Lion. Over the last couple of weeks I have noticed a significant operating system (10.8.2) slow down after printing with my Epson R3000 printer. This happens after every printing session. When I say slow-down I mean significant delays and dreading "beachballs" when opening applications, selecting menu items or anything else I should choose to do. I'm left with re-starting the computer to get going normally again.After re-atarting I have gone to "verify permissions" and I get approx "5" pages of permission errors, all associated with the printer library in some fashion or another. I then repair all those permissions and re-start my MacPro. The operating system then works as normal and I can use the computer with no problems (until I start printing again). I mainly use the computer for photo editing with Adobe Photoshop CS6, Adobe Lightroom 4 and Aperture 3.2.
    I did not have this problem before upgrading to Mountain Lion (and then to 10.8.2). I did not get "significant" permission errors before upgrading. Since all printer drivers for this printer are handled now by Apple via the "new" Software Update process I can't even re-download the Epson printer driver and start over. I'm completely at a loss as to what, associated with the printer function, is causing these "significant" permission errors and subsequent operating system slow down. My printer is almost brand new and was working flawlessly before Mountain Lion. Let me be clear though, I can print fine. My problem is the system slow down after using the print function which I am only guessing has something to do with the "5" pages of permission errors after printting photos (with CS6/Lightroom/Aperture).
    Incidently, I am not in any way a computer expert. Verifying and repairing permissions is about all I know how to do that's why I need help. I also just thought I would try the forums first before going to technical support to see what people thought about this.
    Again, I repair the permission errors, re-start my system and all is fine. Any further suggestions would be deeply appreciated.

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Slow down after installing Lion OS

    My Macbook pro later than 2009 model slowed down after installing the new OS Lion
    any suggestions to speed it up

    First suggestion ,there have been a number of identical user questions like yours, in the Lion Community. If you want to talk to other MacBook Pro owners, try the forum they have.
    http://www.apple.com/support/macbookpro
    What you do not need is some gizmo to "speed up" or clean caches etc.
    Maybe you need to make more room on your hard drive, or add more RAM.
    For now, hold down Command-R and run Disk Utility to check the health of your system drive (Lion Recovery Mode)
    http://www.apple.com/support/lion

  • Compleat system slow down after current updates

    Has anyone learned why we all seem to have a compleat system slow down after the current set of updates? Everything works, but is VERY slow to respond. Even iTunes 7.1.1 plays video choppy now. Audio track plays fine however. Odd.
    -Apple //GS

    First of all, try repairing your permissions with Applications> Utilities> Disk Utility. Select the hard drive you're running off of and then click the Repair Permissions button.
    If that doesn't work I'd do an archive and install:
    http://docs.info.apple.com/article.html?artnum=107120
    Then run the combo update(s) instead of the consecutive ones. That seems to be working for a lot of people, but it will probably take a while.

  • System slow down after lion update 8/18/11

    Has anyone else had a problem with their system slowing down after downloading the system update for Lion on 8/18?  My system is not nearly as responsive and is only about two weeks old and have not installed any software other than Microsoft Office 2011 when I bought the machine.  Any ideas?

    Ok my system is booting and shutting down faster now.. This method worked for me:
    First, I repaired the permissions:
    1) Open up Disk Utility
    2) Select your hard drive
    3) Now select Repair Disk Permissions.
    Then, I deleted the caches folder:
    1) From the Finder's Go menu, select Go To Folder, and go to this folder: /Library
    2) Delete everything inside the Caches folder (This might require the Admin Username & Password)
    Finally, go to System Preferences and click on Startup Disc then click on your boot drive (In my case I've selected my HD labeled "Macintosh HD Mac OS X, 10.7.1". Now do a restart by clicking on the Restart button. If you don't have a Startup drive selected your mac will waste time at boot searching for a suitable boot drive !
    I Hope this works for you as well.
    Cheers!

  • System slow down after upgrade to 10.10.2

    Still have a slow down after updating to 10.10.2    
    Tried everything I can think of.
    Get spinning color wheel for a long time when opening even small files. Scrolling through folders, cursor hangs for a moment. opening and saving takes much longer.
    Used HD repair and repaired permissions and diagnosed HD.  No problems.
    Looking at Activity Monitor, I don't see anything that stand out-
    -C

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Windows 8.1 gradually slows down after hours. Speed returns normal if restart "explorer.exe".

    I have Windows 8.1 Pro (x64) installed on Alienware M17x. The slowdown mostly appears as slow response in the situation such as open a folder/window, open/close/switch tabs in IE, drag window, and there's also cursor lag. It gradually
    slows down after system boot, noticeable after 3-4 hours, really slow after 8-9 hours.
    I have thought about many possible processes which can cause this issue, and then I found out that it's caused by "explorer.exe". If I kill "explorer.exe", the speed suddenly becomes normal. Then, I restart explorer.exe
    again, it stays normal, and then it still gradually slows down again after hours.
    I have checked driver or software compatibility. Also, CPU usage and Disk usage is normal.
    Please give some advises, reasoning, or solutions.

    SaccoSVD
    The process that is causing the problem is called sidebar.exe and I am curious why it is running on a win 8 machine as I dont believe it is built in. (It seems to have over 22,000 instances launched so I suspect either malware or a broken app)
    It is usually associated with a Vista machine, or updated win 7 machine.  Did you do do a clean install?  Have you run a malwarebytes scan?
    Please download the free version of Malwarebytes.
    Update it immediately.
    Do a full system scan
    Let us know the results at the end.
    http://www.malwarebytes.org/products
    Wanikiya and Dyami--Team Zigzag

  • Illustrator begins to slow down after 10 to 15 minutes

    Illustrator begins to slow down after 10 to 15 minutes, my system exceeds the minimum requirements. What gives?
    Xeon Processor 3ghz
    20gigs of ram
    Win7 64bit
    200gigs of storage

    Sorry I forgot to mention that it's the Creative Cloud version.

  • Why do my loops slow down after many iterations

    My Vi seems to freeze up or slow down after several iterations of the loop. This is an Analog Input Capture VI.
    Attachments:
    Final_Main_VI_with_working_amp.vi ‏456 KB

    First of all, thank you for your contribution. You are right to say that I have no need in changing the AI Config every time that the loop runs. But as this is supposed to be a soft-scope, I need to be able to update the parameters associated with AI Start while the loop is running (e.g. trigger level).
    I have tried to move the AI Config subVI out of both loops but the error as a result is: "No transfer in progress for the specified source."
    I also need a sampling rate of exactly 96kHz. I realize that the laptop clock cannot attain this value. Do you know how I could get exactly 96kHz.
    Attachments:
    Final_Main_VI_with_working_amp.vi ‏498 KB

Maybe you are looking for

  • The order in attribute set is MESSED UP

    Hello forum, Here is an intricate description of my problem: When I define BRIDGE_TYPE attribute set for Discoverer the sequence of attributes often changes in attribute set without my intervention. This is especially the problem because advanced att

  • Sequence of transferred pictures in Revel

    The sequence of pictures transferred to Revel are sometimes in a different sequence then on Photoshop.  Is that a normal problem from the transfer process?

  • Initial setup of iphone6

    I can't get past wi-fi in the initial setup of iphone6. (i have no wi-fi)

  • Nast table use

    Hi , what is the use of Nast table in smartforms?? when we use this table?? regards,

  • Why does my Photoshop CC always start as a trial?

    When I start Photoshop CC it starts as a trial saying that I have 32767 days left on my trial. If I say start trial it is ok but then requires sign in. After signing in, it congratules me for purchasing Photoshop and the program opens normally. What