Oracle CPU usage on web application

I have a Dell desktop running Windows XP professional. (pentium 4, 2gb ram) This desktop is being used for a web app that does employee time cards. A contractor did this for the company and we are not proficient with Oracle, so we need some assistance!
The web application uses asp.net for the site and the database is oracle 11g.
So the various problems are:
1. The system will work flawlessly for a few days; once even a week! Lately, it has not been that good. There are four services related to oracle - two of them are sometimes having problems starting.. (status says "starting" then it will time out, then try to start again.) We have been rebooting the system multiple times just to get things working again so people can login.
services are as follows:
ORACLEDBConsole-timeentry - problems starting lately.
Oraclejobscheduler-timeentry - not currently set to start automatically
OracleoraDb11g_homeTNSlistener - usually starts fine
OracleServicetimeentry - have had problems starting sometimes, working good for now.
2. A few days ago I logged on to the machine and checked running processes. Oracle was consuming 100% cpu, and lots of memory. (~512mb) Also, there were many instances of TNSPing.exe running consuming resources as well.
3. Lately it doesn't work for over a day. We have to reboot every morning, and Oracle will not "crash" but does stay at 40-50% cpu usage. We think there is something going wrong with oracle services/oracle in general but have no idea where to look for a solution. There are no error messages or clues to what is going on!
Thanks in advance for your help!
-Ryan

The excessive cpu usage in oracle is usually caused by code that does not use bind variables.
eg your sql string is passed as follows:
select * from customer where customer_number = '12345';
Your code should be passing:
select * from customer where customer_number = :BV1;
BV1 is a placeholder for a bind variable. Whatever language you use you need to associate a value with BV1. All the languages are capable of using bind variables, and once you know how, its easier than the usual :
'select * from customer where customer_number = '||customer_number;
If you're on oracle 8.1.7. then you can set the cursor_sharing parameter to force.
You will add this to your init.ora file and then restart the database.
I highly recommend you look at http://asktom.oracle.com as there is a wealth of useful information there, including how to determine whether your database is using bind variables.
Note: We run a web app server here with a database and 2 gb is easily sufficient. We are a development environment so dont get a lot of users. I have had the guys here recode there java code to use bind variables and we got a lot of performance improvement.

Similar Messages

  • Oracle forms to j2ee/web application

    Hello all,
    I need help with converting "oracle forms" to j2ee/web application. There are only 2-3 forms. But I needed to know how to do it from scratch. I looked at some softwares available to do it. But its costly.
    Basically the company I am working with, needed all the forms online, so that they can access it using a browser. As part of the development, I am using jdeveloper 10g.
    could some help me out
    Thanks a lot
    san

    Well if you need your Forms accesible from a browser you don't need to convert them to Java - you just use Forms on the Web - http://otn.oracle.com/formsupgrade
    If you still want to convert to Java have a look at the Forms page for more info:
    http://otn.oracle.com/products/forms
    and also here:
    http://www.oracle.com/technology/products/jdev/collateral/4gl/formsdesignerj2ee.html

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

  • Send an email to all user in Oracle Test Manager for Web Applications

    I have administrator access to Oracle Test Manager for Web Applications. How can I send email to all user in the system (Oracle Test Manager for Web Applications)?
    Thanks
    Katherine
    Edited by: Katherine on 20/12/2010 16:38
    Edited by: Katherine on 20/12/2010 16:39

    Hi ,
    You can create a single dynamic distribution group with the condition to have only the mailboxes in exchange as its members . Then when a person send an email to that  Dynamic distribution group it will get distributed to all the mailboxes
    in exchange.
    Note : Most important feature in the dynamic group is that the membership of that group will be maintained automatically and also along with that we can have group membership by defining the recipient types/OU /rules.
    I agree with ED and also based on my knowledge you cannot achieve your scenario without Distribution groups or dynamic distribution groups.
    Thanks & Regards S.Nithyanandham

  • Oracle Functional Testing for Web Applications for Oracle Apps

    I am trying to test Oracle Application 11i and R12 using Oracle Functional Testing for Web Applications.
    In 11i:
    If i open any forms then then the Application is getting crashed whereas it's recording the html events.
    In R12:
    If i open any forms then the Form is getting opened but it's not recording the events happening on the forms
    whereas it's recording the html events.
    Please let me know whether Oracle Functional Testing for Web Applications supports can be used to test Oracle Apps 11i/R12 including the Forms.
    Regards,
    Arun

    Hi,
    AFAIK, there is no official document which states that "Oracle Functional Testing for Web Applications" is certified with Oracle E-Business Suite 11i/R12. I assume it should work with Forms 10g but not with Forms 6i, so it should work (does not mean it is certified) with R12.
    I would suggest you log a SR and confirm this with Oracle Support.
    Regards,
    Hussein

  • High CPU Usage On client application when upgrade remote SQL database

    Hi,
    Is anyone here encountered very high CPU usage after upgraded the database from SQL 2005 to SQL 2012? Following describes my issue.
    I have my client application running on Windows 7 that access to central database (SQL 2005) on Windows server 2003 using ODBC connection, this client application basically query data and perform data insert and update. There are a number of this similar
    clients connected to the database.
    Due to slowness of the database server, company decided to upgrade the database server to SQL 2012 and also new hardware runing Windows Server 2012. There is no change on the client application and client hardware and the client application still using the
    same ODBC connection to query, insert or update the new database server.
    The problem I am now experiencing now is that my client PC where my client application running the CPU usage is very high almost hitting 100% when accessing to the central database. I am also noticed this program lsass.exe that utilized almost 40-50% of
    the CPU time when client application accessing the central database.
    Is anyone here know, why client PC CPU usage 100% when access to upgraded SQL 2012 database? What is lsass.exe program doing, it only appear when accessing to database server. How to reduce the CPU usage on client?
    Thanks.
    Chee Wee.

    Hello,
    After upgrading, please rebuild indexes and update statistics on the databases.
    http://www.mssqltips.com/sqlservertip/1367/sql-server-script-to-rebuild-all-indexes-for-all-tables-and-all-databases/
    http://www.mssqltips.com/sqlservertip/1606/execute-update-statistics-for-all-sql-server-databases/
    Configure maxdop on the instance.
    http://blogs.msdn.com/b/sqlsakthi/archive/2012/05/24/wow-we-have-maxdop-calculator-for-sql-server-it-makes-my-job-easier.aspx
    If the above does not solve the issue, let us know.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • High CPU usage without any application running on the laptop

    Hi ,
    I saw some earlier posts as well but I am not sure if anything is helping me. I have a HP Pavilian Dv6. Its with me for now since 2009 or so. It was all running very well till last Nov - Dec 2013 timeframe. I had many bulky work done on the laptp like video cutting editing , along with audio edits , fairly well. I used it mostly for videos and no games though.
    Since Nov - Dec 2014, all the videos started slowing down, extremely jerky, and not catching up with the audio. Slowly the problem became worse . After 10 mins of video it just stopped and hanged. It did it with every site and any format of video including videos on my C Drive. I earlier tried a lot of things, playing around with flash player thinking that's the culprit. Did not help. Browsers changed, Mozilla, internet explorer , Chrome, everything no change. Then till around last week, I tried tested, uninstalled a lot of programs, also did Microsoft system restore and seen , the CPU continously behaved reaching to its 100% peak and the videos getting shot down. Just no change. Last week , I got desperate and finally reformatted my hard drive and did a factory restore on the laptop. IT DID NOT HELP !! The laptop behaved really like a good puppy for a few days , Youtube and what not and again since yesterday it has been shot down ! No videos will run. What's more even a DVD video is not running , nothing on a browser a simple DVD player DVD play is not running. Jerky videos and hanging issues.
    Everything boils dows to 100% CPU usage. Even if I am closing all my applications , it shows 'system' as the process using 90-100% CPU. Without any browser or even a notepad option open. There is also a prgram 'dwm' which eats up the next big slot of CPU.
    I am really tired of this and not able to enjoy anything. Please suggest what could be the issue here and how can it be helped?

    Just to add the laptop is HP Pavilian DV6 , model Dv6t - 1300.

  • 100% thread pool/CPU usage prevent MII Applications from working

    Hello to all,
    our MII Applications were running on MII 11.5 (windowsserver 2003, with IIS) without any problems.
    We migrated these MII Applications  to SAP xMII Version 12.0 SP8, SAP NW 7.00 SP20, Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_22-rev-b03, mixed mode).
    Since then we faced several problems that prevent the MII Applications from working, e.g.
    - 100% application thread pool usage rate
    - 100% CPU usage
    - awful lot of http connections
    Several sap support calls didn't find the root cause.
    Workaround: restart sap system weekly
    Does anyone has any idea how to go on?
    Thanks
    Simone

    Hi Mike,
    sap support told us to install this Java version.
    Furthermore SAP Note 716604 says "do not use J2SE 5.0" and "Currently, we recommend 1.4.2_24 b06".
    Any more ideas?
    Regards,
    Simone

  • Oracle C# ODBC and Web Applications

    I need some web applications that access an oracle server (database) with odbc connection using C#.If anyone can help me or give me any suggestions on where to begin this I would so appreciate it. It has been a while since I have used Oracle. I have been using ASP.NET C# and Sql. Please email me if you have any answers or ideas.
    my email is [email protected] or [email protected]
    With Much Appreciation .
    Mathieu

    DO you have, or did you ever have, any other Oracle product or Oracle OBDC driver on the system?
    Also - please provide the complete DSN definition. (If you are using 'orcl', change it to 'XE')

  • Oracle Access Manager 11gR2 Web application: "oam" failed to preload

    Any pointers for troubleshooting this error?
    Managed Server starts up but fails to start-up "oam" deployment.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "AMInitServlet" failed to preload on startup in Web application: "oam".
    java.lang.ExceptionInInitializerError
            at oracle.security.am.pbl.transport.http.AMInitServlet.initializeAmServer(AMInitServlet.java:113)
            at oracle.security.am.pbl.transport.http.AMInitServlet.init(AMInitServlet.java:79)
            at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
            at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
            at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
            at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
            at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
            at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)
            at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
            at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
            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:671)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
            at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
            at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
            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.StartOperation.doCommit(StartOperation.java:149)
            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:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.NullPointerException
            at oracle.security.am.pbl.diagnostic.DiagnosticUtil.<init>(DiagnosticUtil.java:80)
            at oracle.security.am.pbl.diagnostic.DiagnosticUtil.<clinit>(DiagnosticUtil.java:65)
            ... 45 more
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
            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)
            Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
            at oracle.security.am.pbl.diagnostic.DiagnosticUtil.<init>(DiagnosticUtil.java:80)
            at oracle.security.am.pbl.diagnostic.DiagnosticUtil.<clinit>(DiagnosticUtil.java:65)
            at oracle.security.am.pbl.transport.http.AMInitServlet.initializeAmServer(AMInitServlet.java:113)
            at oracle.security.am.pbl.transport.http.AMInitServlet.init(AMInitServlet.java:79)
            at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)

    SOA is not required. WebGate is a separate installation, separate from where you install the Oracle Access Manager.
    Oracle Access Manager is like the management station, WebGate would typically be installed on a host where a Web Server is running. So WebGate running on the WebServer host would be used to provide access control functions for web pages hosted on Web Server. You will have to do the configuration of WebGate separately after Access Manager has been installed. Please mark answer helpful/correct if helpful.

  • Showing Oracle reports in current web application with JBOSS as AS

    hi:
    I have installed the Oracle AS(10g 10.1.2.0.2) and the reports services... I have also installed the Stand Alone J2EE Thin Client (http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/Tools/index.html)
    My current web project uses JBoss and I have to show oracle reports keeping the current environment.
    I have followed the steps provided on the doc mentioned in the above link.
    first i did the following steps ( please refer to the text of that readme doc below)
    (//text of readme doc, I have done these steps
    1. Deploy THINCLIENT_HOME/reports/j2ee/reports.ear on the J2EE application server.
    2. Add the following JAR files to the classpath of the J2EE application server:
    * THINCLIENT_HOME/reports/jlib/rwrun.jar
    * THINCLIENT_HOME/jlib/zrclient.jar
    3. Use THINCLIENT_HOME/vbroker4/lib/vbjboot.jar while starting the application server.
    but i cannot understand what is written just next to the above llines in that doc I am pasting those points from that doc
    (text of readme doc:
    The following section provides detailed instructions on carrying out the above 3 configuration steps with OC4J Standalone Distribution 10g (9.0.4). You need to consult your J2EE application server's documentation to carry out the same steps for your application server.
    1. Add the following to OC4J_HOME/j2ee/home/config/server.xml
    <application name="reports" path="<THINCLIENT_HOME>/reports/j2ee/reports.ear" auto-start="true" />
    2. Add the following to OC4J_HOME/j2ee/home/config/http-web-site.xml
    <web-app application="reports" name="web" root="/reports"/>
    3. Add the following to OC4J_HOME/j2ee/home/config/application.xml
    <library path="<THINCLIENT_HOME>/reports/jlib/rwrun.jar"/>
    <library path="<THINCLIENT_HOME>/jlib/zrclient.jar"/>
    according to what i understood i went to OC4J which is under my Oracle_Infra directory and then completed the above steps
    after that I ran the command (according to this doc):
    java -Xbootclasspath/p:<THINCLIENT_HOME>/vbroker4/lib/vbjboot.jar -jar oc4j.jar
    the result of this command is following
    06/02/09 14:57:37 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    and then it never comes back to command prompt
    Now after all these steps...i don't understand what to do next and my problem is still there which is How to deploy reports made by oracle reports from my web project links
    please help
    Waqas

    If the links in your example report1 and report2
    follow my format stated earlier
    http://machine:port/reports/rwservlet/report=reportnam
    e.rdf&destype=cache& paramform=htmlcss&server=<YourReportSe
    rverName>&userid=scott/tiger@hrdb&desformat=pdf
    This is what I believe
    >
    so http://machine:port/ is the port where
    JBoss is running and
    This should be the port that the report server is listening on
    >
    server=<YourReportServerName> is the name of
    my oracle report server
    so I call the above link in my current application
    and the report would show up
    Yes
    >
    that means (correct me if I am wrong) that my reports
    would have to be deployed in OracleAS
    Yes
    >
    I have to try all this yet as till this point I was
    trying to run Oracle reports deployed in JBoss...
    This may be possible, I am not sure.
    >
    Oracle J2EE Thin Client?
    I am not sure what this is used for in your setup.

  • High cpu usage when moving application windows

    Hello all,
    I have two machines with arch installed:
    - an eeepc 701 surf/intel gpu(xorg driver) with xfce
    - an amd 3800+ X2/nvidia 8860 gt(proprietary driver) with kdemod3(also checked with xfce4)/arch amd64 installed.
    I noticed that when i move a window of an application(for example konsole, etc..) too fast i get high cpu usage(30-40 %), when checking with htop.
    Is it normal that the X server uses the cpu so much when moving a window??
    EDIT: up to now i tested it in a friends windows machine, and it happens exactly the same, so i guess is normal. It seems i need to be informed better about how X works :-)
    Last edited by mechmg93 (2008-10-15 08:04:10)

    today i switced back my desktop system to debian unstable and tried to see what the difference is concerning this problem.
    I found out that in kde3 the solution to the "problem" is debians kde default configuration about window behaviour.
    Especially the one mentioned below :
    In debian this is not ticked and this has as a result zero cpu usage when windows are moved.
    Last edited by mechmg93 (2008-10-23 18:36:58)

  • Oracle Functional Testing for Web application

    Hi all,
    I am chandra and I want to know whether OTS will support Swings based web application ?
    I was trying to automate swings based application in OTS , but it is not supporting.
    if it support can you people say what changes should do in OTS setting ?
    With Regards,
    Chandraprasath Baskar

    HI
    OATS does not yet support swing based applications, there is an applet module in the pipeline. but I don't know when that will be available.
    Regards
    alex

  • Oracle Forms launching a Web application

    How can I launch a JAVA WEB application from a button on a form that runs in a Client/Server application?? Is there something to launch the http???

    please help. sry if it is a repost

  • How to call Oracle Reports via Java Web Application ?

    Dear All,
    I have developed a web reports using Oracle Reports 11g and would like to display these reports via Java Web App that will call them.
    Kindly help me in this matter.
    Regards,
    Irfan

    i will go as John suggested.........Construct a URL with required parameters and call it using goLink component
    make a configuration in Report server and
    http://myServer:myport/reports/rwservlet?config=myconfig&destype=cache&desformat=PDF&report=myreport.jsp&myparameter=myvalue

Maybe you are looking for

  • Flash player does not work

    I have installed the new flash player about 6 times.after uninstalling, and it does not register or work?  When the down load is complete it telles me that it was done right.

  • Where can i buy an airport extreme card for my powerbook

    Where can I buy an airPort extreme caed for my powerbook? are they even available, if not how can I go wireless ?

  • Update process doesn't work

    Hello all, I created the following PLSQL Trigger but it doesn't work as it should. If there is a change in the colomn "stunden" in table cn_pl_std_peplanung, the trigger should write the attributes (pl_id, l_art_id, pe_id, idee_id, abt_id, version_id

  • The secWinAD security plugin is not available

    I am getting this message when I login into the cmc. i restarted the server. but the issue stil exits. thanks,

  • Windows Vista 32bit or 64bit?

    Which is better for my new mac book pro, Windows Vista 32bit or 64bit Ultimate? All I care about is all of my programs and games working properly. And what does 86x mean? Will one version of the bits work faster than the other?