CPU usage heavily ....what u do ?

hi,suppose an application is takeing CPU heavily and so system gets slower
then ..........
question 1: what are possible problems ?
here i guess some problems>
1. Not good coding ....... garbage collection has not been taken care of. // Correct ?
2. It is the fault of the server. // is it Correct ?
3. // what could be other causes ?
question 2 :
Solution in this type of problem..........
1. care should be taken to garbage collection by the developer. // corect ?
2. change your server // correct ?
3. May be u could distribute the tasks into several Virtual server // correct ?
4. // what are solution ?
IN FACT, i want to know if the application use the CPU heavily then where should we take care of ? how do we solve ?
Plz correct me and give me your suggestion if you fall in this of situation .
Thank you

Question 1:
If you are using java you should not worry about the garbage collection process. Thais handled by java and it on java's terms. You can however request for the garabage collection to take place but there is no garentee it will happen. With this being said I don't see how garbage collection would be a problem with the cpu. Wouldn't it be a memory issuse as opposed to a cpu issue. The coding issue could be a problem too. It all depends on the cpu and the load that it can handle without becoming bogged down. If you are using a server that is a published server I would venture to say it would be a safe bet that it is not the server. Poor coding could be a possiblity (the way that the code behaves) or it could be the logic behind the coding is all wrong. For example. There is a company that is using php for thier web-interface. Well, php is not a bad language to use for a web interface but it is if everytime an action on the page is performed it logs you onto the database, performs that action then logs you off. That would be an expample of poor logic. I know the code from experience the logon/logoff can really bogg down a server. The code for doing that might be optimized for what it is supposed to do but what good does that do if the logic if flawed from the get-go? A better implementation would be to leave the client logged on and make the request to refresh the page and only log the client off when the client (1) timesout or (2) leaves the web-interface.
Suggestion:
1) inspect your coding logic before you inspect your actual code.
2) optimize your code if no logic error was found.
3) stress test the server once these things are done to see the maximum load
it can handle and still function.
Question 2:
As for a solution, I am not sure what to say to you. I would think that getting a new server (hardware server) would be the one of the last options b/c of the cost involved with a purchase. However if you do feel that is the way to go. I would suggess a Apple dule G5 box. We are using a JBoss server on a machine like I have just mentioned and it performs wonderfully. Caution you can buy referbed computers but we have always had problems with them. Especially when it comes to memory issues. The new ones work with no problem at all. Try doing the suggestions I have mentioned before and if you still have problems you might want to see about getting a server that can handle the work load you might need.
Check out the video on the super computer built with the Apple G5's. Very impressive!
http://www.apple.com/hardware/video/virginiatech/

Similar Messages

  • CPU Usage by a sql query/insert

    Hi,
    I want to know in which cases, a sql statement uses a lot of CPU usages and what are the wayouts to prevent 90-100% CPU usage.
    Thanks
    Deepak

    Of course it will! If you're doing your Select statement on production, then you will get an accurate representation of what the CPU does on production!
    However, be aware that it is production, and that anything you do could cause performance problems to the rest of the database (we once had a developer who caused massive performance problems in prod, just from running a single select statement, although I forget why it caused the problems now *{:-( )                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Copying from USB NTFS device with Dolphin (KDE) causes 100% CPU usage

    I am copying +/- 30 GB of Music files (flac) from my external USB HDD which is formatted as NTFS.
    I have installed ntfs-3g and am experiencing near 100% CPU usage. What's wrong?
    Additional info: I am using KDE and initiated the copying through dolphin. KDE's system monitor only shows CPU usage near 100%, but no processes in the process view could be responsable.
    Thanks!

    What mount options are used for that ntfs drive?
    Edit: There are many similar threads but I couldn't find a solution other than trying out some kernel and cpufrequtils fun.
    Last edited by karol (2011-01-16 18:12:15)

  • CPU usage High

    Hi,
    Can any one tell me when the CPU usage will go high in oracle? What are the various reasons that affect CPU usage? what are the necessary steps we need to take in order to bring down?
    I will be grateful to your answer
    With Regards
    Boo

    CPU usage will increase in Oracle when what you are doing requires CPU resources.
    To find of what those things are read the docs.
    The steps one uses to decrease CPU utilization depend on what is causing it.
    If you want to read the docs you will find them at http://tahiti.oracle.com
    If you want someone else to read them for you hire a tutor.

  • TopSessions CPU USAGE

    Hi,
    What unit of measurement is used by Oracle TopSessios to measure de CPU USAGE (Statistic Filter = Predefined, Sort Statistic = CPU USAGE) ?
    What means, for example, a CPU USAGE value of 1200 ?
    Thanks,
         Rodrigo

    And for Memory statistic (Statistic Filter = Predefined, Sort Statistic = Memory), what is the unit of measurement ?
    What means, for example, a memory value of 1200 ?
    I can4t find any documentation about this. If anyone have please give me the link ...

  • Adobe stuffs cause high CPU usage

    I just download Creative Cloud a few days ago for Primiere CC and since then there is always something from it that causes ~50% CPU usage. I tried to end the process by Task Manager and something else just replace the previous one's place. Sometimes it's CEP Service Manager, sometimes it's Core Sync, CEF Helper, etc. and it's driving me nut! I mean like right now Firefox only takes about 20% while those things just sky rocket the CPU usage. What should I do? How do I stop this?

    Since I installed CC, my laptop has been running very hot too.

  • Why does SCHDNEGACTION scheduler job have high CPU usage?

    Hi,
    In my embeded device(double CPU 1.5 G HZ ) SCHDNEGACTION scheduler job has 90% CPU usage. Why does the scheduler job have so high CPU usage? What is the job doing for?

    Hi,
    This job is not created by the scheduler. You will have to find out what component creates the job and what exactly it does to figure out why it is using high cpu and what would be the effects of disabling it (which would prevent it from running).
    Hope this helps,
    Ravi.

  • MBP with 10.6.8: CPU usage high, no responsible processes shown in Activity Monitor. What causes this?

    After using my computer for some time, CPU usage climbs to about 90% (ca. 65% user / 26% system) and fans run at high speed, but there is no processes that seem to use CPU (other than Activity Monitor itself ~1%).
    This has happened a few times recently. It happens when I've used my computer for some time, hours or a couple of days (I usually put my computer to sleep when not using it but rarely shut it down). I've tried to quit all running apps incl. Growl, Dropbox, and anything that could be responsible to this but with no results. Putting computer to sleep for a long time doesn't help, cpu usage will climb instantly after wake up. Restarting system is the only thing that helps.
    Most of the time I use my laptop with external monitor, lid closed and connected to power supply. When experiencing this, opening the lid causes fans to slow down, but CPU usage remains high and battery drains quick.
    Any ideas what might cause this?
    My MBP is 15" model with Core 2 Duo 2,66 GHz (MacBookPro 5,3), OS X version is 10.6.8, all available updates are installed.

    Perform a SMU reset.
    https://support.apple.com/kb/HT3964
    Remove the anti-virus, it's running a root level process all the time that's taking your CPU and it's not necessary as there are no Mac viruses, Apple has the trojan angle covered already.
    Always on anti-virus on a Mac is always a source of problems, also is MacKeeper, uninstall that here if you have it.
    http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/
    If you need to clean the Windows filth off PC files, then use the free, run as you need, ClamXav.
    http://www.clamxav.com/
    It seems your machine is used in a corporate enviroment, thus likely a rule that anti-virus must be used, you can avoid high CPU usuage by using the ClamXav instead.

  • What are the ways to control CPU usage?

    Database: Generic
    OS : Linux
    Problem Description :
    Q: What are the ways to control CPU usage precisely like instance caging for 11g if the database host has multiple 10g instances?
    What are the ways to control CPU usage precisely in database host that has multiple 10g instances. I fear that particular instances
    overallocate CPU resource on the host and this affects performance of other instances on the host if CPU_COUNT value is set to default for every instances.
    ** Oracle is working on this issue, but in parallel is opening the topic to the Community so that Community members can add their perspective, experience or knowledge. This will further enhance all knowledge bases including My Oracle Support and My Oracle Support Communities; assisting all Community members and enabling richer solution searches. **

    ram_orcl wrote:
    Database: Generic
    OS : Linux
    Problem Description :
    Q: What are the ways to control CPU usage precisely like instance caging for 11g if the database host has multiple 10g instances?So in other words... how to reduce performance of a process by decreasing the CPU availability to that process. And what do you do with that spare CPU cycles? Imagine that things are now better as the CPU utilisation has dropped by 10% or so?
    What are the ways to control CPU usage precisely in database host that has multiple 10g instances. That is the kernel's job. Or do you think you know better than the very sophisticated processing and scheduling models that the kernel support - and should override that and control that from userspace?
    I fear that particular instances overallocate CPU resource on the host and this affects performance of other instances on the host if CPU_COUNT value is set to default for every instances. Sounds like baloney to me. What you fear and not not fear does not change reality. What is the reality? What is the problem? In crystal clear technical details?

  • What are Microsoft- or other's-best practice or recommendation of Disk usage, CPU usage, memory usage monitoring to prevent system trouble ?

    We use win2003,win2008,win2012 servers.
    I heard somewhere that Microsoft recommendation threshold of disk usage monitoring is ( free disk space >= 15- 20 %) , if I remember correctly, but how about CPU usage and memory usage monitoring ? 
    What are  Microsoft- or other's-best practice or recommendation of Disk usage, CPU usage, memory usage monitoring to prevent system trouble and improve availability ?

    Hi,
    You can refer the following Performance Tuning Guidelines,
    Performance Tuning Guidelines for Windows Server 2003
    http://download.microsoft.com/download/2/8/0/2800a518-7ac6-4aac-bd85-74d2c52e1ec6/tuning.doc
    Performance Tuning Guidelines for Windows Server 2008 R2
    http://blogs.technet.com/b/josebda/archive/2010/08/27/performance-tuning-guidelines-for-windows-server-2008-r2.aspx
    WINDOWS SERVER 2012 - PERFORMANCE TUNING GUIDELINES
    http://blogs.technet.com/b/itprocol/archive/2012/11/27/windows-server-2012-performance-tuning-guidelines.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • When I am in e-mail. I get the spinning color wheel. Then, when I check the activity montior, it notes high cpu usage (99%) for "Safari web content.". then I quit this process and cpu usage drops way done. but I have to log in again to my e-mail. what can

    When I am in e-mail, I sometimes get the spinning color wheel, which lock up everything. when it doesn't go away, I see on the activity monitor, that CPU usage is very high (99%), for a process calles " Safari web content'. When I click on the proccess and quite, the CPUusage goes way down. Problem is that I have to then log back in to e-mail. What can I do to eliminate this proble.  thanks

    How much FREE RAM do you have when this occurs. It's easy to tell, when it beach balls open Activity Monitor (Applications - Utilities - Activity Monitor) click the System Memory tab and note how much FREE RAM is listed. If it's 500MB or less it's time for a RAM upgrade.

  • TS1717 What do I have to do to keep the iTUNES program on my computer BUT NOT RUNNING on Start UP? It requires too much CPU usage on my old computer.

    What do I have to do to keep the iTUNES loaded as a program on my computer BUT NOT RUNNING on Start UP? Just opening when I want to use it.
    It requires too much CPU usage on my old computer.

    You can check you Adobe account online to see if the serial number is registered under your account.  If not then your only option will likely be to contact Adobe Support directly thru chat to see if they can provide you with a/the serial number. For them to do so will require you being able to prove ownership.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • What is "na" means in "stack" column for Precise CPU Usage?

    I'm trying to analyze CPU usage of third party process. I zoomed in on 3 sec of process eating 25% of CPU and it's a single thread 4184 doing it. When I add "stack" column after Thread Column, it shows that processing split is between [Root] and
    n/a
    What n/a means? Stack column is empty for it.

    n/a in this context (and in most others realistically) would mean "Not Applicable".

  • Firefox is eating up between 90% CPU usage to %230 CPU usage, while on a text-only page. I've tried many of the fixits. They didn't work. What can I do?

    I've cleared cookies multiple times
    I've emptied the cache
    I cleared my download history, and a majority of my browsing history
    I've tried having hardware acceleration for both flash and firefox on and off
    I turned off all my apps and plugins and when that did nothing I turned back on the ones I need. I never had a lot of apps to begin with. only a max of 5. I had quite a few plugins, but i disabled all but quicktime, flash, and silverlight. I have those three set on "ask to activate" so none are "always active" anymore.
    I also tried a couple things from the FAQ and forums here about changing a few settings in the "about:config" setup.
    A few of the above things initially worked, but after a day or two it'd be back to sucking up my CPU and memory. I would then try the same thing again, and this second time there would be no improvement.
    The real memory will fluctuate between 200 MB and 1.7 GB, and has done so for quite a while.
    Even after I've left streaming sites, and sites with lots of images, and I'm not downloading anything, the memory and the CPU will still do that. I only have a handful of tabs open at a timeusually, and all of them are mostly text. I'll quit and reopen firefox, which will initially bring the memory and CPU usage down, but it inevitably climbs up quite quickly, regardless of my tab usage. It'll be the same if I'm playing a flash game or scrolling through blogs.
    I never had any of these problems with Firefox 23, and my internet usage habits haven't changed at all. I had some of this slowness a few times with version 24, but nowhere near as bad as this, or as constant. Almost everyday I end up googling for other ways to speed things up. Everything I do never slowed down Firefox on earlier versions.
    I've tried all my usual tasks on Safari which will never climb above 30-40 MB of memory, even on netflix streaming, or flash games, and the CPU will average around 8 and 11%.

    i'm also having major CPU problems w/ FF 29.0.1. when i restart the app it calms down again but after loading tabs it steadily climbs up to 100% after not too long. i have checked out the 2 CPU links/articles above and do all the basic troubleshooting and tips, but with all the FF tools & add-ons isn't there some sort of CPU monitor that has the ability to display which extensions/scripts are hogging the CPU? Activity Monitor on Mac just shows the total used by the app. it's impossible in my case to efficiently disable dozens of add-ons & scripts, restart, and test each one by one b/c it can take several hrs before the CPU starts to spike high again. i have no time for this.
    thanks

  • CPU Usage--what is "normal" at idle?

    Hello,
    When I run activity monitor at idle, the % user CPU usage shows at 99%. Activity monitor shows as using the most % CPU at 1.10. % System shows at 1%.
    Why is the computer running at an apparent 50% of available CPU at idle? Is this normal?
    MacBook Pro 2.16 Intel Core Duo   Mac OS X (10.4.8)   2 gig RAM

    Thanks Jim,
    Your post got me thinking. Another thread referenced a utility called applejack
    http://applejack.sourceforge.net/
    I ran that, and cleared out all the cache files. Now both user and system CPU usage is around 1% at idle.
    I guess I'll add applejack to the regular maintenance schedule.
    ASW

Maybe you are looking for