Bad performance problem of Application
Hi guys,
When I open my site by many user it will take lot of time to load than how can i solved multiuser problem i m using flex and hibernate than how can i solved performance problem.
Thanks
abhi
when i open my site than connection
problem is coming connection has been lost when i m login from my site it will take time after that primary factory arror come and we need to start tomact.if many user acces this site it will take lot of time.
Similar Messages
-
Performance problem in application
Hi ,
I have some serious problems with my application on perfromance, when i check the db for events i can see the following
Events Total_Waits Time Wauted
1 Data file init write 1794 9077
2 local write wait 24 63
3 read by other session 4718 3460
4 db file sequential read 1864619 413008
5 db file scattered read 178020 80039
6 db file single write 116 2
7 db file parallel read 52 179
8 direct path read 54476 4824
9 direct path read temp 93568 27171
10 direct path write 18521 960
11 direct path write temp 13999 226
Buckets for Sequential read
Bucket wait_count
1 1 1441402
2 2 39998
3 4 78500
4 8 187616
5 16 78683
6 32 26376
7 64 8488
8 128 1683
9 256 1742
10 512 126
11 1024 4
When I check the history details for the session i have the following details
SAMPLE_ID SESSION_STATE BLOCKING_SESSION BLOCKING_SESSION_STATUS EVENT EVENT_ID EVENT# P2 P3TEXT P3 WAIT_CLASS WAIT_CLASS_ID WAIT_TIME TIME_WAITED
26571178 ON CPU NOT IN WAIT 1 0 144 0
26571176 WAITING NO HOLDER db file sequential read 2652584166 116 312822 blocks 1 User I/O 1740759767 0 255583
26571175 WAITING NO HOLDER db file sequential read 2652584166 116 3076763 blocks 1 User I/O 1740759767 0 251864
26571174 ON CPU NOT IN WAIT 1 0 124 0
26571171 WAITING 111 VALID log file sync 1328744198 115 0 0 Commit 3386400367 0 555324
26571169 WAITING NO HOLDER db file sequential read 2652584166 116 3076834 blocks 1 User I/O 1740759767 0 36578
26571166 WAITING UNKNOWN Data file init write 2326919048 9 256 timeout 4294967295 User I/O 1740759767 0 102445
26571165 ON CPU NOT IN WAIT 312 blocks 1 6079 0
26571164 ON CPU NOT IN WAIT 1 0 124 0
26571163 WAITING UNKNOWN read by other session 3056446529 67 198938 class# 1 User I/O 1740759767 0 215
26571161 WAITING UNKNOWN read by other session 3056446529 67 3073940 class# 1 User I/O 1740759767 0 299513
26571160 WAITING NO HOLDER db file sequential read 2652584166 116 3073906 blocks 1 User I/O 1740759767 0 158991
26571158 WAITING 111 VALID log file sync 1328744198 115 0 0 Commit 3386400367 0 229301
26571155 WAITING NO HOLDER db file sequential read 2652584166 116 3073109 blocks 1 User I/O 1740759767 0 124131
26571152 WAITING NO HOLDER db file sequential read 2652584166 116 3075524 blocks 1 User I/O 1740759767 0 213313
26571151 ON CPU NOT IN WAIT 1 0 143 0
26571149 WAITING NO HOLDER db file sequential read 2652584166 116 3075601 blocks 1 User I/O 1740759767 0 37342
26571147 WAITING NO HOLDER db file sequential read 2652584166 116 3074293 blocks 1 User I/O 1740759767 0 150539
26571146 WAITING 111 VALID log file sync 1328744198 115 0 0 Commit 3386400367 0 148213
26571144 WAITING NO HOLDER db file sequential read 2652584166 116 3076250 blocks 1 User I/O 1740759767 0 198960
26571143 WAITING NO HOLDER db file sequential read 2652584166 116 3076821 blocks 1 User I/O 1740759767 0 139530
26571142 WAITING NO HOLDER db file sequential read 2652584166 116 3076273 blocks 1 User I/O 1740759767 0 214391
26571140 ON CPU NOT IN WAIT 1 0 124 0
26571139 ON CPU NOT IN WAIT 1 0 216 0
26571137 WAITING NO HOLDER db file sequential read 2652584166 116 3076411 blocks 1 User I/O 1740759767 0 185643
26571136 ON CPU NOT IN WAIT 1 0 134 0
26571135 WAITING NO HOLDER db file sequential read 2652584166 116 3074201 blocks 1 User I/O 1740759767 0 434296
26571133 WAITING UNKNOWN direct path write 885859547 164 1484961 block cnt 1 User I/O 1740759767 0 170312
How can I improve on db file sequential read/ do you see any other potential problems for my query execution time.
Thank you
Edited by: tcklion on Apr 23, 2009 10:57 AMtcklion wrote:
I couldnt find the hash value , i am using this query
Hash values are o for the query output
select sid, sql_text,sql_hash_value
from v$session s, v$sql q
where sid in ('session id)
How can i find the hash value from sys.v_$active_session_history, i dont see a column which shows the hash valueYou can use the SQL_ID available in V$ACTIVE_SESSION_HISTORY. The parameter to DBMS_XPLAN.DISPLAY_CURSOR is actually the SQL_ID and not the hash value (in passing, the SQL_ID is actually an obfuscated hash value, but that's not the point here: http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/).
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Performance Problem while signing into Application
Hello
Could someone plz throw some light into which area I can look into for my performance problem. its an E-business suite version 11.5.10.2 which was upgrade from 11.5.8.
the Problem : When the Sign in Page is displayed , After the user name / Pwd is entered it sort of takes for ever for the System to actually log the user in. Sometimes I have to click twice on the Sign in Button.
I have run purge sign on audit / purge concurrent Request/manager logs / gather schema stats but its still slow. Are there any way of check whether the Middle Tier is the bottle neck.
Thanks
Ninican you check the profile option FND%diagnostic% if it was enabled or not
fadi -
Weblogic 10.3.5 performance problem
Hi.
I'm using a weblogic 10.3.5 as a test server (We deploy there the applications before going into production). The problem is that after a certain amount of deploys, the server becomes slower and slower until its mandatory to reestart because it crashes.
The error trace is this:
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at weblogic.utils.StringUtils$StringMaker.getString(StringUtils.java:605)
at weblogic.utils.StringUtils$ReflectedStringMaker.getString(StringUtils.java:615)
at weblogic.utils.StringUtils.getString(StringUtils.java:600)
at weblogic.utils.classloaders.AbstractClassFinder.getClassSource(AbstractClassFinder.java:31)
at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:58)
at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:58)
at weblogic.application.utils.CompositeWebAppFinder.getClassSource(CompositeWebAppFinder.java:88)
at weblogic.utils.classloaders.DelegateFinder.getClassSource(DelegateFinder.java:30)
at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:58)
at weblogic.application.utils.CompositeWebAppFinder.getClassSource(CompositeWebAppFinder.java:90)
at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:58)
at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:58)
at weblogic.utils.classloaders.CodeGenClassFinder.getClassSource(CodeGenClassFinder.java:25)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at com.sun.faces.application.ApplicationFactoryImpl.getApplication(ApplicationFactoryImpl.java:107)
at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:130)
at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:252)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:216)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:338)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
We tried with more memory and the same problem occurs. What kind of configuration/settings should we use/change in the server to avoid this problem?
Thanks."Caused By: java.lang.OutOfMemoryError: GC overhead limit exceeded"
The reason for this error is explained here: http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom
and here: http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#cms.oom
You could try using -XX:-UseGCOverheadLimit, but that does not make the bad performance go away.
How many applications are you deploying?
Some tuning HotSpot tuning examples are presented here: http://middlewaremagic.com/weblogic/?p=7340 -
Performance problems, do we need to upgrade. Server and Database level
Problem:
I'm a Java programmer and a Transact SQL DBA. So i have knowledge about databases. Nowwe have a database who performs very bad and got much deadlock problems and so on. It's an Oracle Database.
We have Oracle version 9 and an application in Delphi. The bad performance is only since a while. We have cleaned the archive.
My suggestion is why not migrate to a newer version of Oracle. Change some hardware specs get up to date.Then i think we will have less problems.
But ofcourse this is more trail on error. That why i hope there is an Oracle specialist here who can help me with a few questions.
Users and Specs
I got 150 till 180 users
i got a server with 1 processor XEON 233 GHZ
4 gig memory, constant use 1,5 gig
Questions
1. Is it a good idea to upgrade? Maybe not to solve al the problems, but version 9 is old, there is version 10 or 11.
2. Which version we should use 10 or 11? 11 is in use for a while so this sounds like a good idea.
3. Are the specs OK or must i do something about the server to?
Maybe dual core, or Enterprise (64 bit). Memory upgrade?
4. Maybe for 64 bit i need Oracle version 11 to have good support on it?
I hope somebody can help me a bit.
Thanks,
Kind regards,
AndréHi Andre,
. Is it a good idea to upgrade? Maybe not to solve al the problems, but version 9 is old, there is version 10 or 11.
2. Which version we should use 10 or 11? 11 is in use for a while so this sounds like a good idea.I suggest you to upgrade to latest available 11.2.0.2.
But do complete testing your upgraded database before you move to PRODUCTION.
. Are the specs OK or must i do something about the server to?It all depends on the usage and concurrent users :)
4. Maybe for 64 bit i need Oracle version 11 to have good support on it?Regardless of bit version all Oracle Versions has good support.
Refer MOS tech notes:
*How to Perform a Full Database Export Import during Upgrade, Migrate, Copy, or Move of a Database [ID 286775.1]*
*Minimizing Downtime During Production Upgrade [ID 478308.1]*
*Different Upgrade Methods For Upgrading Your Database [ID 419550.1]*
thanks,
X A H E E R -
Performance problem , 100 % swap used, but vmstat - sr = 0
Hi,
I have a performance problem on a server. It is sometimes very low during several hours.
context : v890, 32 Go RAM, 8 SPARC IV+, solaris 10 release 03/05, veritas volume manager, containers, several oracle databases, applications...
with iostat, swap partition : %b -> 100% !!!!
with vmstat, r-> 0, b -> 0, w ->29, free memory : 600 Mo , sr -> 0, idle : more than 50%,
uptime, load average : 6
vmstat -S : si -> 0 , so -> 0
vmstat -p : api -> 45126682863 ( probably a bug ) , apo -> 0 fpi -> 1895320681342 ( probably a bug ), fpo -> 0
It's difficult to me to find the problem. Is it paging activity ??? someone can tell me, what is the memory limit for paging activity start ?
If you thing I'm in the wrong way, thanks for all ideas :)
Julien
Edited by: Wylem on Feb 28, 2008 6:11 PMDoes seem a bit odd.
The 'w' column doesn't necessarily mean that anything bad is happening now, but it does mean that the system was severely memory limited at some point in the past at least.
Paging should occur when free memory drops below LOTSFREE. I don't remember if swapping happens at a particular point, but probably wouldn't happen above DESFREE. The page scanner should become active (non-zero 'sr' numbers) any time the memory is below LOTSFREE.
Since you have Solaris 10, you might want to grab the dtrace toolkit and see if some of the tools in there show you anything more useful (some of the I/O ones might break down the access further).
So it really doesn't look like you're swapping/paging out anything now, but you almost certainly did in the past. It could be that you're using an app that has paged out a lot of stuff do disk, so that the I/O you're seeing is it bringing stuff back now that RAM is available.
Darren -
Bad performance on system, export/import buffer many sawps
Hello,
I have an ECC 6.0 system on AIX with 6 application servers. There seems to be a performance problem on the system, this issue is being noticed very well when people are trying to save a sale order for example, this operation takes about 10 minutes.
Sometimes we get short dumps TSV_TNEW_PAGE_ALLOC_FAILED or MEMORY_NO_MORE_PAGING but not very often.
I am not very good at studying the performance issues, but from what I could see is that there are may swaps on buffer export/import, program and generic key. Also the HitRatio is 88% at buffer export/import, which I think is pretty low.
I know that the maximum value accepted of swaps per day is 10000, is that right?
Can you please advice me what needs to be done in order for these swaps to decrese and hit ratio to increase? And also what else I should do in order to analyse and root cause and the bad performance of the system?
Many thannks,
manolivHi,
sappfpar determines the minimum and maximum (worst-case) swap space requirements of an R/3 application server. It also checks on shared memory requirements and that the em/initial_size_MB and abap/heap_area_total parameters are correctly set with the following procedure:
/usr/sap/<SYSTEMNAME>/SYS/exe/run/sappfpar check pf=/usr/sap/<SYSTMENAME>/SYS/profile/<Profile name>
At the end of the list, the program reports the minimum swap space, maximum heap space, and worst case swap space requirements:
Additional Swap Space Requirements :
You will probably need to increase the size of the swap space in hosts in which R/3 application servers run.
As a rule of thumb, swap space should equal
3 x Size of Main Storage or at least 1 GB, whichever is larger.
SAP recommends a swap space of 2-3 GB for optimal performance.
Determining Current Swap Space Availability: memlimits
You can find out how much swap space is currently available in your host system with R/3s memlimits program.
Heres how to run memlimits:
From the UNIX command prompt, run the R/3 memlimits program to check on the size of the available swap space on the host system on which an R/3 application server is to run.
The application server must be stopped, not running.
/usr/sap/<SYSTEMNAME>/SYS/exe/run/memlimits | more
The available swap space is reported in the output line Total available swap space: at the end of the program output. The program also indicates whether this amount of swap space will be adequate and determines the size of the data segments in the system. -
10.6 Performance Problems
Although I installed Snow Leopard from scratch, I encountered severe performance problems after a while. To copy a file, for instance, took minutes instead of seconds for a some 100 MB file. To switch between windows took long time. The processing was interrupted by waiting loops every few seconds. And so on.
I looked around in various forums to find hints how to solve this problem, but nothing worked. The activity monitor doesn't show anything unusual; from its point of view everything is fine.
In the meantime, I reinstalled again Snow Leopard from scratch. After installing iLife 08, I now have the impression that some Finder operations are again getting slower. This may be a trace to the reason for that performance problems. However, this only affects the file copying times, not the application performance, so this does not explain the full picture
So my question: does anyone else - having performance problems with SL - has similar observations in combination with iLife 08? Does anyone else have similar performance problems and solved them?
Regards,
HardySometimes the performance of the system is impacted by permission errors, I would recommend running Disk Utility and repair permissions, also, just in case... check the disk to make sure you don't have nay bad sectors. You can also use a system utility to optimize system performance, Onyx is a good utility that is also free, just make sure to download the appropriate version for your system. http://www.titanium.free.fr/pgs2/english/download.html
-
Performance problem inserting lots of rows
I'm a software developer; we have a J2EE-based product that works against Oracle or SQL Server. As part of a benchmarking suite, I insert about 70,000 records into our auditing table (using jdbc, going over the network to a database server). The database server is a smallish desktop Windows machine running Windows Server 2003; it has 384M of RAM, a 1GHz CPU, and plenty of disk.
When using Oracle (9.2.0.3.0), I can insert roughly 2,000 rows per minute. Not too shabby!
HOWEVER -- and this is what's making Oracle look bad -- SQL Server 2000 on the SAME MACHINE is inserting roughly 8,000 rows per minute!
Why is Oracle so slow? The database server is using roughly 50% CPU, so I assume disk speed is an issue. My goal is to get Oracle to compare favorably with SQL Server on the same hardware. Any ideas or suggestions? (I've done a fair amount of Oracle tuning in the past to get SELECTs to run faster, but have never dealt with INSERT performance problems of this magnitude.)
Thanks,
Daniel RabeI've tried using a PreparedStatement and a CallableStatement, always with bind variables. (I use a sequence to populate one of the columns, so initially my code was doing the insert, then a select to get the last inserted row. This was fast on SQL Server but slow on Oracle, so I conditionalized my code to use a pl/sql block that does INSERT... RETURNING so I could get the new rowid without doing the extra select - that required switching from PreparedStatement to CallableStatement). The Performance Manager shows "Executes without Parses" > 98%.
Performance Manager also shows Application I/O Physical Reads approx 30/sec, and Background Process I/O Physical Writes approx 60/sec.
File Write Operations showed most of the writes going to my tablespace (which is sized plenty big for the data I'm writing), but with occasional writes to UNTODBS01.DBF as well.
The database is in NOARCHIVELOG mode.
I'm NOT committing very often - I'm doing all 70,000 rows as one transaction. BTW, I realize this isn't a real-life scenario - this is just the setup I do so that I can run some benchmarks on various queries that our application performs. Once I get into those, I'm sure I'll have a whole new slew of questions for the group. ;-)
I'll look into SQL TRACE and TKPROF - time to refresh some skills I haven't used in a while...
Thanks,
--Daniel Rabe -
TiledLayer performance problem
I'm using the TiledLayer in the javax.microedition.lcdui.game package to render a scene which is about 140 tiles wide and 7 tiles height, each tile having the size of 8x8 pixels.
Even though I have used the setViewWindow on my LayerManager instance I get really bad performance when calling paint.
I tried my application on a real device (iPaq compatible device using Emsetech MIDP 2.0 vm) and the it ran 100 times faster than the Wireless Toolkit.
My rendering time in the Wireless toolkit is around 2500 milliseond and about 25 on a real device. I'm targeting 10 to 12 frame / second.
It is really difficult get a feel of the application when it run so slow.
I'm by the way using Windows XP (Pro) on a Pentium 3@650 MHz.
I have tried to make change to the muTank demo created by SUN. I have hereby reproduced the problem since the performance hits zero wheneever when I increase the number of tiles in TiledLayer instance to fx. factor 3, which should really be a problem.
Do anybody else having performance problems with the TileLayer?
Yours sincerely
Christian DamsgaardYeap, while the below is not great, it shows what I mean, and what the TiledLayer should do by default (kind-of). However it only takes ~200ms per draw cycle not ~500ms when using a larger TiledLayer. Your also notice that I'm not using a LayerManager, it seamed to add ~50ms to the paint time.
[url http://www.mycgiserver.com/~mrmlk/res/bike.png]the bike sprite
[url http://www.mycgiserver.com/~mrmlk/res/backdrop.png]the backdrop
[url http://www.mycgiserver.com/~mrmlk/res/parlx.png]the other backdrop
<a href="import javax.microedition.midlet.*;
import javax.microedition.lcdui.game.*;
import javax.microedition.lcdui.*;
import java.util.*;
public class TiledLayerTest extends MIDlet implements Runnable {
Thread runner = null;
boolean running = true;
boolean paused = false;
GC gc = new GC( true );
Graphics g = gc.getGraphics();
/* LayerManager lm = new LayerManager(); {
lm.setViewWindow(0, 0, gc.getWidth(), gc.getHeight() ) ;
Image backdrop = null; {
try {
backdrop = Image.createImage( "/backdrop.png" );
} catch( Throwable t ){
System.err.println( "backdrop failed to load" );
Image parlx = null; {
try {
parlx = Image.createImage( "/parlx.png" );
} catch( Throwable t ){
System.err.println( "parlx failed to load" );
Image bike = null; {
try {
bike = Image.createImage( "/bike.png" );
} catch( Throwable t ){
System.err.println( "bike failed to load" );
Sprite player = new Sprite( bike ); {
player.move( 0, 3*20 );
int width = (gc.getWidth()/20)+1;
int[][] tiles={{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}};
int[][] ptile={{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
TiledLayer tl = new TiledLayer( width, 7, backdrop,
20, 20 ); {
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
tl.setCell( x, y, tiles[y][x] );
//lm.append( tl );
TiledLayer par = new TiledLayer( width, 7, parlx,
20, 20 ); {
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
par.setCell( x, y, ptile[y][x] );
//lm.append( par );
public TiledLayerTest() {
public void destroyApp(boolean unconditional) {
running = false;
public void pauseApp() {
paused = true;
protected void startApp() {
if( runner == null ) {
runner = new Thread( this );
running = true;
paused = false;
Display.getDisplay( this ).setCurrent( gc );
runner.start();
long sleep = 0,start = 0, diff = 200, fpss = 0, fpsw = 0;
int fps = 0;
int lfps = -1;
int x=0;
int xx=0;
int px=0;
public void run() {
fpss = System.currentTimeMillis();
fpsw = fpss + 1000;
while( running ) {
if( paused ) {
runner.yield();
} else {
start = System.currentTimeMillis() ;
x++;
tl.move( -2 , 0 );
par.move( -1, 0 );
if( player.collidesWith( tl, true ) ) {
System.out.println("ok");
if( x%10 == 0 ) {
//x=0;
xx++;
if( xx < tiles[0].length - width ) {
tl.move( 20, 0 );
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
tl.setCell( x, y, tiles[y][xx+x] );
} else {
//System.out.println( "Level Over!" );
if( x%20 == 0 ) {
px ++;
if( px < ptile[0].length - width ) {
par.move( 20, 0 );
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
par.setCell( x, y, ptile[y][px+x] );
g.setColor( 255, 255, 255 );
g.fillRect(0,0,gc.getWidth(), gc.getHeight());
par.paint( g );
tl.paint( g );
player.paint( g );
//lm.paint( g, 0, 0 );
g.setColor( 0, 0, 0 );
g.drawString( lfps + "fps " + diff ,
0, 0, g.TOP|g.LEFT );
gc.flushGraphics();
fps ++;
if( System.currentTimeMillis() > fpsw ) {
lfps = fps;
fps = 0;
fpss = System.currentTimeMillis();
fpsw = fpss + 1000;
diff = (System.currentTimeMillis() - start );
sleep = System.currentTimeMillis()
+ 200 - diff;
while ( System.currentTimeMillis() < sleep )
runner.yield();
class GC extends GameCanvas {
GC( boolean b ) {
super( b );
public Graphics getGraphics() {
return super.getGraphics();
}">import javax.microedition.midlet.*;
import javax.microedition.lcdui.game.*;
import javax.microedition.lcdui.*;
import java.util.*;
public class TiledLayerTest extends MIDlet implements Runnable {
Thread runner = null;
boolean running = true;
boolean paused = false;
GC gc = new GC( true );
Graphics g = gc.getGraphics();
/* LayerManager lm = new LayerManager(); {
lm.setViewWindow(0, 0, gc.getWidth(), gc.getHeight() ) ;
Image backdrop = null; {
try {
backdrop = Image.createImage( "/backdrop.png" );
} catch( Throwable t ){
System.err.println( "backdrop failed to load" );
Image parlx = null; {
try {
parlx = Image.createImage( "/parlx.png" );
} catch( Throwable t ){
System.err.println( "parlx failed to load" );
Image bike = null; {
try {
bike = Image.createImage( "/bike.png" );
} catch( Throwable t ){
System.err.println( "bike failed to load" );
Sprite player = new Sprite( bike ); {
player.move( 0, 3*20 );
int width = (gc.getWidth()/20)+1;
int[][] tiles={{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}};
int[][] ptile={{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
TiledLayer tl = new TiledLayer( width, 7, backdrop,
20, 20 ); {
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
tl.setCell( x, y, tiles[y][x] );
//lm.append( tl );
TiledLayer par = new TiledLayer( width, 7, parlx,
20, 20 ); {
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
par.setCell( x, y, ptile[y][x] );
//lm.append( par );
public TiledLayerTest() {
public void destroyApp(boolean unconditional) {
running = false;
public void pauseApp() {
paused = true;
protected void startApp() {
if( runner == null ) {
runner = new Thread( this );
running = true;
paused = false;
Display.getDisplay( this ).setCurrent( gc );
runner.start();
long sleep = 0,start = 0, diff = 200, fpss = 0, fpsw = 0;
int fps = 0;
int lfps = -1;
int x=0;
int xx=0;
int px=0;
public void run() {
fpss = System.currentTimeMillis();
fpsw = fpss + 1000;
while( running ) {
if( paused ) {
runner.yield();
} else {
start = System.currentTimeMillis() ;
x++;
tl.move( -2 , 0 );
par.move( -1, 0 );
if( player.collidesWith( tl, true ) ) {
System.out.println("ok");
if( x%10 == 0 ) {
//x=0;
xx++;
if( xx < tiles[0].length - width ) {
tl.move( 20, 0 );
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
tl.setCell( x, y, tiles[y][xx+x] );
} else {
//System.out.println( "Level Over!" );
if( x%20 == 0 ) {
px ++;
if( px < ptile[0].length - width ) {
par.move( 20, 0 );
for( int x = 0; x<width; x++){
for( int y = 0; y < 7; y++ ) {
par.setCell( x, y, ptile[y][px+x] );
g.setColor( 255, 255, 255 );
g.fillRect(0,0,gc.getWidth(), gc.getHeight());
par.paint( g );
tl.paint( g );
player.paint( g );
//lm.paint( g, 0, 0 );
g.setColor( 0, 0, 0 );
g.drawString( lfps + "fps " + diff ,
0, 0, g.TOP|g.LEFT );
gc.flushGraphics();
fps ++;
if( System.currentTimeMillis() > fpsw ) {
lfps = fps;
fps = 0;
fpss = System.currentTimeMillis();
fpsw = fpss + 1000;
diff = (System.currentTimeMillis() - start );
sleep = System.currentTimeMillis()
+ 200 - diff;
while ( System.currentTimeMillis() < sleep )
runner.yield();
class GC extends GameCanvas {
GC( boolean b ) {
super( b );
public Graphics getGraphics() {
return super.getGraphics();
}</a>
I've only tested this in the WTK 2.0, I'm going to give it (and the "normal" way of doing it) a go in the Nokia SDK once it has downloaded.. -
9ias formslistenerservlet performance problem
Has anyone experienced a performance problem when running forms using the formslistenerservlet configuration in the 9i application server?
We are doing a new installation and running forms for the first time under this configuration and it runs with sub-second
response time in client-server mode, but takes over 5 seconds to respond when running under the formslistenerservlet.
Any help would be greatly appreciated!Heres what I suggest. Get a simple form and try it on the web - if its slow then at least yuo have a simple test case.
Otherwise, tried the form you are having problems with c/s and then compare with the web. If the issue is with the data
base access then you will see the same problem with c/s since form on the web is EXACTLY the same as c/s except the
UI is rendered as a Java applet.
If the performance is only bad when web deployed then you need to start looking to seet what triggers are firing which could
be causeing extra network traffic between the client and the app server. Look for code which does lots of UI activity:like
set_item_property and things like that.
Again, if you run a simple form first (with no code) this will give you the "best case" timings.
Hope this helps
Regards
Grant Ronald
Forms Product management -
PL/SQL Performance problem
I am facing a performance problem with my current application (PL/SQL packaged procedure)
My application takes data from 4 temporary tables, does a lot of validation and
puts them into permanent tables.(updates if present else inserts)
One of the temporary tables is parent table and can have 0 or more rows in
the other tables.
I have analyzed all my tables and indexes and checked all my SQLs
They all seem to be using the indexes correctly.
There are 1.6 million records combined in all 4 tables.
I am using Oracle 8i.
How do I determine what is causing the problem and which part is taking time.
Please help.
The skeleton of the code which we have written looks like this
MAIN LOOP ( 255308 records)-- Parent temporary table
-----lots of validation-----
update permanent_table1
if sql%rowcount = 0 then
insert into permanent_table1
Loop2 (0-5 records)-- child temporary table1
-----lots of validation-----
update permanent_table2
if sql%rowcount = 0 then
insert into permanent_table2
end loop2
Loop3 (0-5 records)-- child temporary table2
-----lots of validation-----
update permanent_table3
if sql%rowcount = 0 then
insert into permanent_table3
end loop3
Loop4 (0-5 records)-- child temporary table3
-----lots of validation-----
update permanent_table4
if sql%rowcount = 0 then
insert into permanent_table4
end loop4
-- COMMIT after every 3000 records
END MAIN LOOP
Thanks
Ashwin N.Do this intead of ditching the PL/SQL.
DECLARE
TYPE NumTab IS TABLE OF NUMBER(4) INDEX BY BINARY_INTEGER;
TYPE NameTab IS TABLE OF CHAR(15) INDEX BY BINARY_INTEGER;
pnums NumTab;
pnames NameTab;
t1 NUMBER(5);
t2 NUMBER(5);
t3 NUMBER(5);
BEGIN
FOR j IN 1..5000 LOOP -- load index-by tables
pnums(j) := j;
pnames(j) := 'Part No. ' || TO_CHAR(j);
END LOOP;
t1 := dbms_utility.get_time;
FOR i IN 1..5000 LOOP -- use FOR loop
INSERT INTO parts VALUES (pnums(i), pnames(i));
END LOOP;
t2 := dbms_utility.get_time;
FORALL i IN 1..5000 -- use FORALL statement
INSERT INTO parts VALUES (pnums(i), pnames(i));
get_time(t3);
dbms_output.put_line('Execution Time (secs)');
dbms_output.put_line('---------------------');
dbms_output.put_line('FOR loop: ' || TO_CHAR(t2 - t1));
dbms_output.put_line('FORALL: ' || TO_CHAR(t3 - t2));
END;
Try this link, http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm#23723 -
CMP 6.1 Entity bad performance.
I'am using entity 1.1 EJB on WL 6.1 and facing very bad performances:
around 150ms for an insert (i have 20 columns).
When accessing an order interface to read 2 fields in a session bean method: around
90 ms.
I'am very disapointed and confused. What should I look up for
to increase the performance ? Any important tuning or parameters ? Should I use EJB
2.0 to have significant perf ?
Thanks for any advice because we are thinking to switch all the application on stored
procedures. A solution without Entity and fewer stateless session beans.
My config:
WL: 6.1 on Sun sparc
SGBD: Sybase
Entity: WebLogic 6.0.0 EJB 1.1 RDBMS (weblogic-rdbms11-persistence-600.dtd)
ThanksHistorically its hard to get good performance & scalability out of sybase
without using stored procs. Using dynamic sql on sybase just doesnt do as
well as procs. Oracle on the other hand can get very close to stored proc
speed out of well written dynamic sql.
As far as weblogic goes, my experience is the focus of their testing for db
related stuff is Oracle, then DB2, then MSSQLServer. Sybase is usually last
on the list.
As far as the 6.1 cmp, haven't used it much, but because of these other
things I would be cautious about using it with Sybase.
Joel
"Antoine Bas" <[email protected],> wrote in message
news:3cc7cdcf$[email protected]..
>
I'am using entity 1.1 EJB on WL 6.1 and facing very bad performances:
around 150ms for an insert (i have 20 columns).
When accessing an order interface to read 2 fields in a session beanmethod: around
90 ms.
I'am very disapointed and confused. What should I look up for
to increase the performance ? Any important tuning or parameters ? ShouldI use EJB
2.0 to have significant perf ?
Thanks for any advice because we are thinking to switch all theapplication on stored
procedures. A solution without Entity and fewer stateless session beans.
My config:
WL: 6.1 on Sun sparc
SGBD: Sybase
Entity: WebLogic 6.0.0 EJB 1.1 RDBMS(weblogic-rdbms11-persistence-600.dtd)
>
Thanks -
SQL report performance problem
I have a SQL classic report in Apex 4.0.2 and database 11.2.0.2.0 with a performance problem.
The report is based on a PL/SQL function returning a query. The query is based on a view and pl/sql functions. The Apex parsing schema has select grant on the view only, not the underlying objects.
The generated query runs in 1-2 sec in sqlplus (logged in as the Apex parsing schema user), but takes many minutes in Apex. I have found, by monitoring the database sessions via TOAD, that the explain plan in the Apex and sqlplus sessions are very different.
The summary:
In sqlplus SELECT STATEMENT ALL_ROWS Cost: 3,695
In Apex SELECT STATEMENT ALL_ROWS Cost: 3,108,551
What could be the cause of this?
I found a blog and Metalink note about different explain plans for different users. They suggested to set optimizer_secure_view_merging='FALSE', but that didn't help.Hmmm, it runs fast again in SQL Workshop. I didn't expect that, because both the application and SQL Workshop use SYS.DBMS_SYS_SQL to parse the query.
Only the explain plan doesn't show anything.
To add: I changed the report source to the query the pl/sql function would generate, so the selects are the same in SQL Workshop and in the application. Still in the application it's horribly slow.
So, Apex does do something different in the application compared to SQL Workshop.
Edited by: InoL on Aug 5, 2011 4:50 PM -
Performance problem with WPF Viewer CRVS2010
Hi,
We are using Crystal Reports 2010 and the new WPF Viewer. Last week when we set up a test machine to run our integration tests (several hundred) all report tests failed (about 30 tests) with a timeout exception.
The testmachine setup:
HP DL 580 G5
WMWare ESXi 4.0
Guest OS: Windows 7 Enterprise 64-bit
Memory (guest OS): 3GB
CPU: 1
Visual Studio 2010
Crystal Reports for Visual Studio 2010 with 64 bit runtime installed
Visual Studio 2008 installed
Microsoft Office 2010 installed
Macafee antivirus
There are about 10 other virtual machines on the same HW.
I think the performance problem is related to text obejcts on a report document viewed in a WPF Viewer. I made a simple WPF GUI with 2 buttons and the first button executes a very simple report that only has a text object with a few words in it and the other button is also a simple report with only 1 text object with approx. 100 words (about 800 charchters).
The first report executes and displays almost instantly and the second report executes instantantly but displays after approx. 1 min 30 sec.
And execute in this context means that all VB.Net code runs in the compiler without any exception or performance problem. The performance problem seems to come after viewer.Show() (in the code below) has executed.
I did another test on the second report and replaced the text obejct with a formula field with the same text as the text object and this test executed and displayed the report instantly.
So the performance problem seems to have something to do with rendering of textobjects in the WPF Viewer on a virtual machine with the above setup.
I've made several tests on local machines with Windows XP (32 bit) or Winows 7 (64 bit) installed and none of them have this performance problem. Its not a critical issue for us because our users will run this application on their local PCs with Windows 7 64-bit but its a bit problematic for our project not being able to run all of our integration tests but I will probably solve this by using a local PC instead.
Here is the VB.Net code Im using to View the reports:
Private Sub LightWeight_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeight.rpt")
' Initialize Viewer
Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
viewer.Owner = Me
viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
viewer.Show()
End Sub
Private Sub LightWeightSlow_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeightSlow.rpt")
' Initialize Viewer
Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
viewer.Owner = Me
viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
viewer.Show()
End Sub
The reports are 2 empty default reports with only 1 textobject on the details section.
// ThomasSee if the KB [
[1448013 - Connecting to Oracle database. Error; Failed to load database information|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433343338333033313333%7D.do] helps.
Also the following may not hurt to have a look at (if only for ideas):
[1217021 - Err Msg: "Unable to connect invalid log on parameters" using Oracle in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033323331%7D.do]
[1471508 - Logon error when connecting to Oracle database in a VS .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373331333533303338%7D.do]
[1196712 - Error: "Failed to load the oci.dll" in ASP.NET application against an Oracle database|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393336333733313332%7D.do]
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Maybe you are looking for
-
How do I just backup just one user account on Time Machine?
Hello everyone, I've moved to a new computer with Mountain Lion and didn't have my backup disc available when I first set up the computer. Now, after restoring from my backup, I have two user accounts that I am trying to combine as per instructions
-
How do I get the allow and deny box to go away so I can see live tv
-
Bootcamp and Win7 lagging?
Hi I'm the lucky owner of a 2012 MacBook Pro 15 2,4GHz Intel CPU, 16Gb 1333MHz RAM and the 1Gb ATI HD6770M graphics card. Originally it had the Toshiba 128Gb SSD disk where I was running bootcamp with OS X Lion 10.7 and Windows 7 Ultimate 64bit no pr
-
Help to put logic in a specific Order by clause
Suppose in the employee table 2 fields are available. 1. Name, 2. Name_flag. Furter the structure is like, NAME NAME_FLAG SMITH 4 CLARK 3 JONES 4 BLAKE 2 KING 1 SCOTT 3 NICK 2 RICKY 2 I want to diplay the names in
-
I have a requirement for users to be able to select the legal entity in IE and not just the cost centre. It appears that standard functionality does not allow this. Has anyone come across this before and, if so, what was your solution? Thanks.