Application Performance Issue

Hi !
We have developed a web application which was moved to staging around an year ago. Now the application is facing connection failures and session time outs. We inferred that it is 'coz of the increase in the size of database resluting in larger outputs causing the timeouts..There are hundreds of users accessing the application at a given time....and lakhs of recs in each table...around 60 tables in total
We are using weblogic server 5.1 and java,jsp,ODBC for the application development. We suggested that the connection pools size be increased and the time out value be increased as well....
But , we r also trying to check the frontend to see if it can be optimized in a better way....
My question is ..do u think that the usage of preparedstatement in place of statement object in jsp's and java files is going to make any difference....
Also, can u also suggest any other methods to follow to optimize the performance....
any suggestions are welcome..Thanks in advance

Prepared statements make a difference if you execute the same query over and over again. It means it doesn't have to parse the sql string each time, but can just plug in different parameters.
In your case though, I don't think it would make much of a difference. The time is being spent in running the query, not parsing it.
I would look at your database queries - maybe add an index to the table to speed things up?
What database are you using specifically? How are you connecting via ODBC? Using the JDBC-ODBC bridge? Maybe look at a pure JDBC driver?
The general rule is that 90% of the time is spent in 10% of the code. Its finding the 10% you need to optimize that is the problem. Run a profiler to see what is taking the time.
Good luck,
evnafets

Similar Messages

  • Socket based application - Performance Issues - Suggestions Needed

    Hi All,
    We have an application which basically has been developed using core java. Here is a high level information about the application:
    a) It opens a serversocket which allows clients to connect to it.
    b) For every new client connection, a separate thread is created and this thread deals with requests from clients, processing the data and replying back to clients.
    c) Each socket is polled continuously and sockettimeout is 2 seconds. If there is a timeout, we handle the situation and socket is again read. So basically sockets is read every 2 seconds. If number of timeouts reaches a configurable value, we close the connection and thread is dropped as well.
    d) In production, three instances of this application are running with the help of a cisco load balancer. It is there for last 5 years.
    However there has always been some minor performance isssues and we have sorted them out using different types of garbage collectors, by introducing hardware load balancers, upgrading the code for new Java versions. It is currently running on 1.4.2.
    However there has always been some performance issues and today while googling over internet I came across following on the bea website which says that core java sockets are not as efficients as native API. BEA has implemented its own APIs for weblogic. My queries are:
    a) Are there any better Java Socket/network API (for solairs, I know Java is plateform independenet but there could be lib which also using native libs) which are much more efficient than Core Java.
    b) We are getting the InputStream/OutputStream and creating objects of DataInputStream/DataOutputStream to read the data 'Byte-By-Byte'. Each byte can have different information thats why it is required. Are there any better way of getting info than what we are currently doing.
    c) As I mentioned, we are continously polling the socket for read operation with a timeout value of 2 seconds. What is the better among the following from performance point of view: (1) Frequent read operation with a lesser timeout value or (2) Less Frequent read operations with larger timeout value. (3) Any better idea??
    Please suggest few things or pointers which I could do to improve the performance of the applcations. Many thanks.
    Thanks,Akhil
    From BEA website:-
    "Although the pure-Java implementation of socket reader threads is a reliable and portable method of peer-to-peer communication, it does not provide the best performance for heavy-duty socket usage in a WebLogic Server cluster. With pure-Java socket readers, threads must actively poll all opened sockets to determine if they contain data to read. In other words, socket reader threads are always "busy" polling sockets, even if the sockets have no data to read. This unnecessary overhead can reduce performance."

    My recommendations:
    - Always use a BufferedInputStream and BufferedOutputStream around the socket streams
    - Increase the socket send and receive buffers to at least 32k if you are on a Windows platform where the default is a ridiculous 8k, which hasn't been enough for about 15 years.
    - Your 2-second timeout is far too short. Increase it to at least 10 seconds.
    - Your strategy of counting up to N short timeouts of S seconds each is completely pointless. Change it to one single timeout of N*S seconds. There is nothing to be gained by the complication you have introduced to this.

  • ADF-JSF: Application Performance Issue

    Hello!
    My question or set of questions will be a bit vague...I am simply not sure where to look for problem(s). So here is what I have. Application implemented with ADF-JSF (JDEV ver:10.1.3.2.0). It basically has 5 pages. Each page containes user input form, commandButton and result table. Functionally, each page is a 'search page' that returns results based on what user specified in the form. Components on each page are bound to VO that is based on EO (DB table). Tables have at least 2.5M records up to 16M. Certain indexes exist (for most common searches) to improve the performance. However, there have been performance issues found and largely they would be grouped into the following:
    1. User is on page A, performs the search, goes to page B (via link) and performs other search, then goes back to A and similar search takes much longer to return results. Seems to me that this moght be related to memory. Maybe results of the previous search are cashed and it takes new search to retreive results longer as the VO cashe needs to be cleared first. Does that make sense?
    2. User is on page A and then goes to B. Leaves browser for 10-20 minutes and tries to go back to A. It takes up to a minute before page reloads with the previously displayed results. I am thinking this has to be related to page lifecycle where AM tries to re-execute bindings ( I do not think it is passivation issue though). What is the best practice to control the lifecycle?
    Any pointer on where to look for the solution is very welcome.
    Rade

    Carl,
    To use Tom Kyte's analogy, you are firing a gun into a room full of people hoping to hit the bad guy. You haven't seemed to have gotten any information about where the performance issues lie. It could be in the DB, network, ADF Business Components, JSF layer, other stuff monopolizing resources, etc, etc. I have ADF BC apps developed in 10.1.3.3 that run quite well.
    So, I would recommend you spend some time investigating where the performance problems lie. Try turning on logging output, check machine utilization - use your investigative techniques to find the bad guy so you can then work on fixing him.
    John

  • Excluding Members from EPMA application - performance issues?

    We are building a new application using dimensions from our Shared Library and I had a question about excluding some members.
    For one dimension, I was able to use the "Add to App View" functionality, which was able to bring in only the one tree of members I wanted, without having to exclude anything, which seems to be the best way of doing this.
    For another dimension, I need to pick and choose members from within the hierarchy, so I will need to add almost all parents, and then go through and exclude some members. Will this cause any performance issues having excluded members? Will the excluded members get deployed to planning or do they just sit in EPMA?
    Any help would be appreciated.

    Hi,
    Excluded members are not deployed to Planning, therefore would not impact performance negatively.
    Cheers,
    Alp

  • Flex iPhone Application Performance issue

    Hi,
    I have developed mobile application for iPhone, iPad, and Android using flash builder 4.5.1. iPhone application performance is very slow compared to iPad version and Android even though the code set is same for all the versions.
    Can anybody help how to improve the performance on iPhone?

    Moving thread to mobile development and notifying our iOS team to take a look.  If you find a specific issue you consider broken, please post again in the bugs forum and we'll investigate further.
    Chris

  • 1 core VS multi core in a web application: performance issue

    Hi,
    I'm having trouble with a web application in a multi cpu server (w2ksp4, iis+wl9.2)
    I have prepared a set of JMeter stress tests, and the application is only capable to finish 5 transactions in a multi cpu (2 cpus with 2 cores each) but if I bind the JVM of the weblogic process to only 1 core, then the application can handle more than 60 transactions without errors.
    I'm in production side; developers tell me "hardware problem" but it seems more likely a poorly designed application (as per my previous experience with them)
    The syntoms are lot of null pointers exceptions and threads stuck when in multi core scenario.
    Althought I have not put lot of details, any of you have ever seen something similar?
    If anybody needs further information please feel free to ask
    Thanks,
    Antonio

    What operating system are you using?
    make sure you are trying a certificated configuration JDK and OS.
    Oracle Fusion Middleware Supported System Configurations
    If using unix/Linux OS based you migh be hitting low entropy issue, you can add
    -Djava.security.egd=file:/dev/./urandom to JAVA_OPTIONS and retest the issue
    Best Regards
    Luz

  • Very Confused, Application Performance Issue

    Essentially every program takes much longer to start-up than it used to, Chrome for example used to start in less than one bounce but now it takes at least 4, even if I close it and re-open it straight away, I've tried using Onyx to clear the application cache and Disk Utility reports nothing wrong with the HDD, I'm at wits end as to what could be wrong, please help me!
    iMAC 21.5"

    I have ran disk utility, onyx, changed the startup disk and even reset the PRAM just to ensure, the issue is still occuring. Not just in Chrome but in every application I can think of. I copied around 80gb of data from a USB HDD to another USB HDD then ejected them both, that's when it started to happen

  • Web Application Performance Issue (WLS 12)

    Hello guys,
    I am new to weblogic and i recently downloaded weblogic server 12.1.3.0 and i created a domain and successfully deployed my web application.
    My web app is Java Based (Mainly Servlets , DWR Requests ..), the problem is that it takes for ever to start and it is very slow .
    I deployed it on Tomcat 7 previously and had no problem it was very quick.
    I tried changing the JVM Arguments (xms , xmx and XX:MaxPermSize) but no luck with that .
    Kindly can anyone help me with this issue .
    Thanks in Advance.

    What operating system are you using?
    make sure you are trying a certificated configuration JDK and OS.
    Oracle Fusion Middleware Supported System Configurations
    If using unix/Linux OS based you migh be hitting low entropy issue, you can add
    -Djava.security.egd=file:/dev/./urandom to JAVA_OPTIONS and retest the issue
    Best Regards
    Luz

  • My VC application performance issue --- Very bad.

    Hi,
    I have developed a Vc application that when i run it directelly from the application server or preview from VC it run smooth, but after importing into production it is extremally slow.
    The users access the application through the companies DNS and loadbalancer.
    I have NW7 and SP15, any ideas?
    Regards,
    Marcelo

    quote:
    Originally posted by:
    cyberKafka
    I also understand that creating windows via AS (not MXML)
    could help a bit (apparently a lot with memory allocation. have not
    tested myself thou.)
    Do you have a link for any more info on this? Sounds
    interesting.

  • Create Application performance issue

    Hi Experts
    Please help me
    I have two same enviroment.
    In one in which users are of native mode if I create a Essbase application it takes around 7 sec to create but in other where users are from MSAD and security is externalize, its taking around 3 minutes.
    Database repository are same i.e on local machines
    I see this message when I check SharedServices_Security_Client.log in my second enviorment:
    com.hyperion.css.spi.impl.ldap.LDAPCacheUpdater.resolveCircularDependency(Unknown Source) - INFO: Time to resolve circular dependency on the Cache for provider: LDAP in millis is : 0
    EAS 2008-09-12 01:00:40,716 [Thread-299] WARN com.hyperion.css.spi.impl.ldap.LDAPCacheUpdater.refreshProviderGroupCache(Unknown Source) - INFO: Time to build Cache for provider: LDAP in millis is : 3800
    Enviroment Details:-
    Product Version:- Hyperion Essabse 9.3.1
    Plateform:- IBM AIX Based Systems (64-bit) version 5.3
    Please suggest the possible cause and solution.
    Thanks

    Hi Experts
    Please help me
    I have two same enviroment.
    In one in which users are of native mode if I create a Essbase application it takes around 7 sec to create but in other where users are from MSAD and security is externalize, its taking around 3 minutes.
    Database repository are same i.e on local machines
    I see this message when I check SharedServices_Security_Client.log in my second enviorment:
    com.hyperion.css.spi.impl.ldap.LDAPCacheUpdater.resolveCircularDependency(Unknown Source) - INFO: Time to resolve circular dependency on the Cache for provider: LDAP in millis is : 0
    EAS 2008-09-12 01:00:40,716 [Thread-299] WARN com.hyperion.css.spi.impl.ldap.LDAPCacheUpdater.refreshProviderGroupCache(Unknown Source) - INFO: Time to build Cache for provider: LDAP in millis is : 3800
    Enviroment Details:-
    Product Version:- Hyperion Essabse 9.3.1
    Plateform:- IBM AIX Based Systems (64-bit) version 5.3
    Please suggest the possible cause and solution.
    Thanks

  • Sale Order Performance Issue.

    Hi,
    We are using EBS 12.0.6 and Database is 10g (10.2.3).
    We are facing performance issue with "Order management Sale Order Form",
    When user click on "Line Items" Tab of "Sale Order Form" and
    In "Main" Tab entring the "Ordered Item" then press tab and entring the "Qty" of item, its takes time 20 to 30 Second for one item if its related Items exists.
    We have 150 entiries against one sale order. Users are facing 20-30 second delay on each entry.
    Please advise how to improve the performance when related Itms exists?
    Thanks,
    Edited by: user12007410 on Feb 4, 2010 12:00 AM

    Pl create a trace file as outlined in MOS Doc 564817.1 (How To Create Forms And Database Level Trace For Receiving Transactions) to help pinpoint what SQL is causing the issue. Then open an SR as this may be a known issue for which a patch exists.
    Pl also verify that database statistics are current - see MOS Doc 169935.1 (Troubleshooting Oracle Applications Performance Issues) - section on "Statistics Gathering"
    HTH
    Srini

  • Application Deloyment issue...

    hi,
    i am getting this Deployment error...
    we got two servers one for developers at offshore and
    one at the onsite...
    the strange thing is that it is deploying n running fine on the offshore server.
    but not getting deployed on the onsite server!!!
    i have put the required references required and
    checked them too...!!!
    regards,
    -Amol Gupta
    Oct 18, 2007 11:11:04 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [004]Deployment aborted
    Settings
    SDM host : bp1xeuaa558
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/amolg/LOCALS1/Temp/temp26291bp.comexmplsupplier_lds_create_adobe.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/amolg/LOCALS1/Temp/temp26291bp.comexmplsupplier_lds_create_adobe.ear
    Aborted: development component 'exmpl/supplier_lds_create_adobe'/'bp.com'/'LOKAL'/'0.2007.10.18.11.10.17'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application bp.com/exmplsupplier_lds_create_adobe.. Reason: Clusterwide exception: Failed to deploy application bp.com/exmplsupplier_lds_create_adobe. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application bp.com/exmpl~supplier_lds_create_adobe. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    >
    I have oracle PL/SQL application performance issue. To open a screen populated with 7,000 records takes 5 minutes.
    I have used SQL Analyze to get Index recomendation. Indexing did not help that much.Switch on a trace on a user who is just about to run that screen - let them rip.
    Stop your trace. Get your trace file. Run it through TKProf.
    Read the book by Cary Millsap that Sybrand recommends (or take a look
    at Chris Lawson) - i.e. read up on trace files and looking at them.
    Get the SQL that is run by the user and try running it from SQLPlus
    on the server (no network or app issues) - set timing on.
    That would be my approach.
    Do you think upgrading or replacing with newer machine can improve performance? Getting a newer machine often satisfies the geek's primeval urge to
    get his grubby little paws onto fancy shiny hardware - it may well
    work for a while, however you're not tackling the underlying cause
    of your problem, and it will (probably) reappear when the limits
    of the new RAM/CPU have been hit.
    If you what is suggested above, at least you'll be able to say
    to your management - "well, if we get a new server, performance
    will improve by this much, until we have (say) 14.000 records in
    the table, when performance will go back to the way it was before".
    Until you run a trace, you will have no idea if the problem will
    scale linearly with the no. of records or how it will
    behave into the future.
    You cannon manage what you cannot measure.
    Paul...
    Taf

  • DB Performance Issues after 10g Upgrade in EBS Instance

    We have upgraded our Database from 9i to 10g as first part of EBS 11.5.9 to 11.5.10.2 upgrade. Currently our production is running on 11.5.9 apps with 10g DB.
    Facing performance problems now. one of the them is, one Valueset query not using funcion based index while fired from the front end. but the same query when collected from SQL trace tkprofed file and executed from SQL Plus, it uses all proper indexes. We are not getting the cause of this.
    Had anyone faced same kind of issues before. please suggest.
    thanks,
    Raj.

    Make sure you have all of the recommended performance patches for 11.5.9, and gather stats for SYS and SYSTEM in the following manner:
    Oracle E-Business Suite Recommended Performance Patches
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=244040.1
    Collecting Statistics with Oracle Apps 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=368252.1
    execute dbms_stats.unlock_schema_stats('SYS');
    execute dbms_stats.unlock_schema_stats('SYSTEM');
    exec dbms_stats.gather_schema_stats('SYSTEM',options=>'GATHER', estimate_percent => 100, method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);
    exec dbms_stats.gather_schema_stats('SYS',options=>'GATHER', estimate_percent => 100, method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);
    exec dbms_stats.gather_fixed_objects_stats();
    commit;
    exec dbms_stats.DELETE_TABLE_STATS('SYS','X$KCCRSR');
    exec dbms_stats.LOCK_TABLE_STATS('SYS','X$KCCRSR');
    commit;
    The last 3 commands resolve problems with RMAN, in case you are using it.
    Rman Backup is Very Slow selecting from V$RMAN_STATUS
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=375386.1
    Poor performance when accessing V$RMAN_BACKUP_JOB_DETAILS
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420200.1
    Troubleshooting Oracle Applications Performance Issues
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=169935.1
    Debugging General Performance Issues with Oracle Apps
    http://blogs.oracle.com/schan/newsItems/departments/optimizingPerformance/2007/05/18#a1548
    Performance Tuning the Apps Database Layer
    http://blogs.oracle.com/schan/newsItems/departments/optimizingPerformance/2007/05/17#a1562
    Preventing Apps 11i Performance Issues in Four Steps
    http://blogs.oracle.com/schan/newsItems/departments/optimizingPerformance/2007/05/21#a1566

  • Performance issue after downgrading

    Hi,
    Before iam using oracle 11.1 client version to connect oracle 10.1, it was working fine,
    now i downgraded client version from 11.1 to 8, now iam facing application performance issues when conecting to oracle 10.1.
    what could be the reasons behind this.
    Thanks.

    here server version is 10.1.0.2.0
    so if i check by given id of metalink.
    11.2.0 -not supported
    11.1.0 - extended support
    8.1.7 - no
    8.1.6 - no
    8.1.5 - no
    8.0.6 - no
    8.0.5 - no
    but they are comfortable with 8i in performance. iam asking about performance issue.

  • Required info on SQL Server Performance Issue Analysis and Troubleshoot way

    Dear All,
    I am going to prepare the simple documentation steps on SQL Server Performance Issue Analysis and troubleshoot method. I am struggling to make this documentation since we have different checklist (like network latency,disk latency, memory/processor pressure,SQL
    query tuning etc) to validate once application performance issue reported from the customer.So, I am looking for the experts document or link sharing .
    Your input will help for document preparation in better way.
    Thanks in advance.

    Hi,
    Recommendations and Guidelines on configuring disk partitions for SQL Server
    http://support.microsoft.com/kb/2023571
    Disk and File Layout for SQL Server
    https://blogs.technet.com/b/dataplatforminsider/archive/2012/12/19/disk-and-file-layout-for-sql-server.aspx
    Microsoft SQL Server 2012 Performance Tuning: Implementing Physical Database Structure
    http://www.packtpub.com/article/sql-server-2012-implementing-physical-database-strusture
    Database Mirroring Best Practices and Performance Considerations
    http://technet.microsoft.com/en-us/library/cc917681.aspx
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • OB52 : open and close FI period by sales office

    Dear experts, I have a client who wants to open and close FI period by sales office. After some researches, I find that itu2019s only possible to create the variants by FI company. But what kind of solution I could suggest to the client ? Thanks in a

  • Xml and PL/SQL Parser problem.........

    While executing the sample procedure for XML/PLSQL Parser it gives the error: ERROR at line 1: ORA-29541: class SCOTT.oracle/xml/parser/plsql/XMLParserCover could not be resolved ORA-06512: at "SCOTT.XMLPARSERCOVER", line 0 ORA-06512: at "SCOTT.XMLPA

  • Computer won't recognise i-Pod touch

    I apologise if this is a topic that's been done before but virtually every time we connect my wife's I-Pod to our (Windows Vista) PC we get an error message saying that i Tunes can`t read the conents of her I Pod and we should restore it. Of course i

  • Problem Using iDVD to burn a movie

    Hi, I'm very new to Mac world and trying to learn. Recently when I tried to use my iDVD to burn DVD, I faced a problem where even the Mac Support centre fail to help me. I have a movie files and individual is about 420M in DiVX format. When I import

  • How to make sure a client will reboot if the LDAP server SLAPD isn't runnin

    What do I need to do to a Solaris 8 client to make sure that if SLAPD is down and something happened and the server rebooted, that it would come up even though the LDAP server slapd isn't running? thanks, Gary