Reduce CPU Usage when Runnig Telnet on Win2000

Does any one knows how to reduce CPU usage when iam running my telnet developed using java classes.Every time when i start Telnet CPU usage is shooting to 100%.Can any one help to me solve my problem.

You are probably doing some kind of loop that is eating all the CPU idle time. You could reduce your use of the CPU by calling Thread.yield() when you do not need to do anything for a bit, or even better, Thread.sleep(...) to pause your program for a specified number of milliseconds.
Hope this helps some.

Similar Messages

  • How to reduce CPU usage when working in Logic Pro and Kontakt5

    Hello All,
    I have a MacBook Pro 15" early 2011 2.0 GHZ. My main acitivity is making music with my macbook pro. I am using Logic Pro 9 in combination with Kontakt 5.
    I want to get some suggestions in the setup so I can reduce the usage of the CPU. By the way I have upgraded my system with a SSD 256GB , 16GB RAM and have removed the optical drive and installed the the previous factory set HD in the optical bay. I have placed the samples of the Kontakt 5 in the HD so I have enough space on my SSD to run the progrmas fast and smooth !
    If possible give your advise on an optimum setup such as reachanaling the sounds through BUS to AUX channels and other methods in order to reduce the CPU usage. You may even post some good links where I can find more info.
    Thanks in advance
    Wkrgds, Levon

    welshwiggle wrote:
    So Center of Pan,
    If you were to run something like Omnipshere on an active SI track do you get anywhere near the "1 core CPU" spike I'm getting on my Late 2011 TOTR MBP?
    I still dont really get why L9 on a new MBP peforms worse than eg your PC.
    Older versions of Logic (ie: 5.5) don't see individual cores, there is one disk meter and one CPU meter. In some ways it's a more efficient system. This is running on WinXP which happens to be a very good system for audio. Consider this, XP can be installed and take up only half a gig of disk space and do 90% of what most operating systems can do today. 
    I do see single core spikes on my single processor quad core Mac Pro.  There's no way to get around a processor intensive plugin on a single track. A channel strip is tied to a single process (core). I stopped upgrading at 10.6.8 and Logic 9.1.3, because it works. I still get the occasional single core use even with multiple plugs and tracks but I can usually break the logjam by quickly starting and stopping Logic 2 or 3 times.
    I will not upgrade Mac hardware or software unless the next version of Logic is outstanding, I'm fine where I'm at for the next year or two. I enjoy recording performers more than anything else so al I really need is a good sounding, solid system.

  • Reduce CPU usage with RTMFT video chatting

    Hi,
    We are using the FMS4 for 1-1 real time video chatting. it is fine but the CPU usage are very high.
    (not P2P but use UDP based RTMFP) currently connection to server as " rtmfp://1.2.3.4:80/live"
    we use the :80 I guess it helps to deal with the firewall with HTTP tunneling? (seems if it is true, it will this degrade performance?)
    with 320*240; it is using 30~50 % CPU;  with 480*360: 40-60% CPU at the clients.  so high... decent client machine: Intel i5 650. Quad 3.3Ghz  8G RAM. win7 64
    Any idea on reducing cpu usage?

    RTMFP is a UDP-based protocol and does not currently tunnel over HTTP.  when you specify port 80 with RTMFP, you're using UDP port 80, not TCP port 80.  also, that port 80 is the fmsedge port; you will be redirected to a different port (19350+ by default) for the true client-server connection.
    RTMFP has significantly higher overhead than RTMP for two main reasons: 1) RTMFP is a complete network transport protocol of similar complexity to TCP, but implemented entirely in user space instead of in the operating system kernel, so every packet sent on the network requires special processing and at least one context switch to kernel mode for transmission or reception; 2) every byte of every packet in RTMFP is encrypted with AES-128-CBC, a non-trivial cipher requiring a not-insubstantial amount of CPU.  there is no unencrypted form of RTMFP.

  • Google Earth Plugin and LabVIEW: High CPU usage when adding placemarks

    Hi,
    I posted this question on stackoverflow earlier this week but feel it might be better suited to the LabVIEW community specifically so I'm reposting here:
    I'm writing an application which uses the Google Earth Plugin to display events on the globe. Each event is a single point kml placemark with an icon which is a 3kb png file. Placemarks are uploaded to the plugin as they are received by the software. I am experiencing increasing CPU usage with the number of placemarks that are added.
    I have tested displaying a new placemark every second and running until the software running the plugin completely froze (graph attached). The GEPlugin (green trace) stopped responding (i.e. the globe did not respond to the mouse) at around 1200 placemarks added and CPU usage was at ~30%. When the software itself (red trace) froze the plugin was using around 50% CPU and ~3700 placemarks had been added). After the freeze, no new placemarks were added which caused the software to respond (but not the plugin) so I could clear all the placemarks. After the placemarks were cleared from the globe, the CPU usage of the plugin returned to around 5% CPU.
    So what I've seen is that GEPlugin CPU usage increases linearly with each kml placemark added. Is this the expected behaviour/ a normal limitation of the plugin? If not is there a more efficient way of adding many placemarks to the globe?
    I am using GEPlugin version 7.1.1.1580 (API version 1.010) and LabVIEW 12.0f3
    Please see the test results attached. Any input greatly appreciated!
    Original stackoverflow post:
    http://stackoverflow.com/questions/20994323/google-earth-plugin-with-labview-high-cpu-usage-when-add...
    Attachments:
    Performance Log 020114_095115.png ‏82 KB

    Hello,
    I have had a look at your graphs and understood what you are trying to do. To me it seems that as the image gets more complex it gets harde to render which wold likely cause increase in CPU usage resulting in the freeze. I would suggest you try running the program on anoher computer to check on the RAM front of things. If this is a limitation of the GE Plugin then unfortunately I can not do much to help, but if you think this is a problem coming from your LabVIEW code then you can post your code here and I can take a look.

  • High CPU usage when graphics card is put at work

    I have a 13inch Air with 2GB RAM and 256GB  with Windows 7 Ultimate 64bit. All possible updates have been installed.
    I noticed some tearing when trying to move program windows across the screen so I started checking the CPU usage. I saw that it is spiking to 25-35% when moving a window across the screen.When you drag down a window you can see the different copies of the top bar across the screen. Not smooth at all like on a standard PC windows system. Same issue when scrolling through webpages which spikes the cpu
    I also noticed a high cpu usage when playing mkv files 25-30% while on an Atom HTPC i get a lower load playing the same file. The Air should be faster than an atom with a nvidia 9400m when playing video files.
    I already tried updating the nvidia files to the latest version on their site by hacking the driver inf but this did not resolve the issue.
    Has anyone experienced the same or know what could be causing the beavior?
    Many thanks

    Maybe my initial post was not clear so let me add some clarifications.
    I have the problem with Aero disabled
    I have the problem on the Apple site which does not have any flash content.
    I have already hacked the lastest nvidia drivers to get them on my system which did not change anything. Can you provide a link to some other 'supported' beta drivers?
    I am using the new 13 inch air so it has the newer graphics card so I would expect it to be faster than an old HTPC with a 9400m in it. I wasn't stating that my Air had a 9400m.
    It would be great if someone you also do the test to check the cpu load:
    - when playing a 720 mkv
    - when dragging a window across the screen
    Just open task manager and see if the CPU spikes.
    Many thanks!

  • BookmarkDav Client spikes my cpu usage when I start up my computer

    Has anyone noticed that the BookmarkDav client spikes the CPU usage when it first starts up? Is this something that can be fixed or is there a problem? Thanks for the help.

    It has to startup just like everything else in the system, so it's probably normal

  • High CPU usage when downloading Files

    Hi there,
    i noticed somethign strage when I download file off the internet or intranet. As soon as my download speed surpasses 1MB/s the CPU usage increases. To be exact the process kernel_task.
    For example:
    2,5 MB/s -> ~30%
    10 MB/s -> ~60-70%
    10+ MB/s -> ~80%
    This is really annoying and I have now clue how to fix this. The Harddrive is a SAMSUNG HM320JI with a Journaled HFS+ partition. No Virus Scanner or anything. Also just reinstalled Snow Leopard yesterday.
    Hope someone can give me some useful information how to fix this.

    Hiya,
    could it have something to do with the write speed/ cache/ram? On a "slow" disk, or one that is nearly full or one that is partitioned, it will take a great deal more ram and cache to "digest" the faster download and write it onto disk. I tend to do downloads to a separate drive. Have you got one? and can you repeat the high CPU usage when downloading / saving to the external drive? I note your drive might have 5,400 rpm, with "just" 8mB cache and 320 GB (quite a few SATA's have 7,200 rpm and 32 mB cache).
    NB: If anything, I found SL more efficient, especially on my 4 year old Macbook, which is running much faster and has got more responsive after installation of (full version of) SL.
    Message was edited by: Alexandre

  • 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)

  • ITunes 10.6 has High CPU Usage when switched to Mini Player

    iTunes has high CPU usage when switched to mini player. The CPU usage goes to 80-100% when the next song is played in Mini Player. iTunes then stays at high CPU usage.
    Upon exiting mini player the CPU usage will drop back to the normal 0-5% levels.
    This only happens when playing from the main music library; which my library is at 7089 items, 42.04 GB.
    When playing from a smaller playlist such as a smart playlist with about 15 songs in it for example, the CPU usage stays low/normal.

    Do you have any better luck with that if you update to iTunes 10.6.1.7?
    From the notes for the release:
    iTunes 10.6.1 provides a number of improvements, including:
    • Fixes several issues that may cause iTunes to unexpectedly quit while playing videos, changing artwork size in Grid view and syncing photos to devices.
    • Addresses an issue where some iTunes interface elements are incorrectly described by VoiceOver and WindowEyes.
    • Fixes a problem where iTunes may become unresponsive while syncing iPod nano or iPod shuffle.
    • Resolves an ordering problem while browsing TV episodes in your iTunes library on Apple TV.
    http://www.apple.com/itunes/download/

  • Low cpu usage when exporting

    Is it normal to have only 4-12% of cpu usage when exporting video out of ae? I´m exporting it from render queue.
    My computer is 2x dual 3,0 ghz prosessor, 8 gb ram, nvidia 8600 gt in xp professional x64
    thanks

    As Jonas suggested, CPU utilization may be somewhat low because the bottleneck isn't the processing of the data but moving (reading and writing) it.
    I'm not saying that this is necessarily what's going on for you, but it's worth pointing out that the CPU is often not the bottleneck.
    If disk I/O is what's slowing you down, one way that you can speed things up is to use three disks for your work: one to run the program from, one to store input assets, and one to write output files to.
    There are a lot of tips for improving performance in the
    "Improve performance" section of After Effects CS3 Help on the Web.

  • High cpu usage when the system is idle

    I do have a high cpu usage problem when the system is idle. I bought the laptop (lenovo x230 tablet) with windows 7 installed in it. Then upgraded to windows 8. But ever since I have problems with high cpu usage by the system even when the computer is idle.
    Only the system by itself uses around 30% of the cpu all the time. I ran xperf, and here is the result of it:
    http://sdrv.ms/Kj6CFN
    I appreciate any help you can provide.
    Thanks,

    Hi,
    I'm sorry for that the log you provide can't be opened on my computer. While according to your description, it should had a special process that consume CPU usage when system idle Iguess, isn't it?
    You can use
    Process Explorer to monitor the process activity, may be we can find the reason of this problem.
    Note: We can use Process Explorer to check the Stack of every process then analyize the problem in deep.
    To gave a better insight about this problem, you can take a ScreenShot for this problem and provide the picture here.
    Roger Lu
    TechNet Community Support

  • High CPU usage when downloading from ITunes Match

    When attempting to download matched songs from ITunes Match, ITunes utilization spikes to over 70% and makes it almost impossible to do any other function on the computer.  Eventually ITunes fails to respond.  I have tried several remedies including reseting winsock.  Is there any other options I should try?

    Hiya,
    could it have something to do with the write speed/ cache/ram? On a "slow" disk, or one that is nearly full or one that is partitioned, it will take a great deal more ram and cache to "digest" the faster download and write it onto disk. I tend to do downloads to a separate drive. Have you got one? and can you repeat the high CPU usage when downloading / saving to the external drive? I note your drive might have 5,400 rpm, with "just" 8mB cache and 320 GB (quite a few SATA's have 7,200 rpm and 32 mB cache).
    NB: If anything, I found SL more efficient, especially on my 4 year old Macbook, which is running much faster and has got more responsive after installation of (full version of) SL.
    Message was edited by: Alexandre

  • High CPU usage when updating or instlling s/w

    When updating Win8 or installing MS Office system slows down and has to run all night to make any progress. Task Manager shows "System" using 49%. "go to process" shows "NT Kernel & System". The system was bought with Win7 and is now double booting both 7 & 8. Win 8 partition has 500 GB.
    This question was solved.
    View Solution.

    Hello @Dan-44,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your computer is displaying a high CPU usage when installing updates or other software. I would be happy to assist you in this matter!
    What other programs are in use when these updates take place? How full is your computer's Local Disk hard drive? In the meantime, I recommend following the steps in this document on Resolving Slow System Performance (Windows 8). This should help improve the speed and efficiency of your operating system.
    Please re-post with the results of your troubleshooting, as well as the requested information above. I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • High CPU usage when editing large MXML files

    I am using Flash Builder 4.5 Plug-in on OSX. When I have a large MXML file open, Eclipse will consume 100% of the CPU as long as that file is open, even if I am not doing anything. If I close that editor the CPU usage goes back down. I've seen this in Flash Builder standalone as well as the plugin. Is there a workaround to stop this CPU usage problem?
    Thanks

    Hiya,
    could it have something to do with the write speed/ cache/ram? On a "slow" disk, or one that is nearly full or one that is partitioned, it will take a great deal more ram and cache to "digest" the faster download and write it onto disk. I tend to do downloads to a separate drive. Have you got one? and can you repeat the high CPU usage when downloading / saving to the external drive? I note your drive might have 5,400 rpm, with "just" 8mB cache and 320 GB (quite a few SATA's have 7,200 rpm and 32 mB cache).
    NB: If anything, I found SL more efficient, especially on my 4 year old Macbook, which is running much faster and has got more responsive after installation of (full version of) SL.
    Message was edited by: Alexandre

  • How to decrease CPU usage when using multiple threads?

    I am using vb.net , .NetFramework 2.0 . 
    My application gets live stock prices from google and updates stocks in database each 10 seconds.
    I get this code for  multithreading. When application starts updating stocks in database(about 200 stocks) , the update takes up to 3 seconds but it increase CPU usage from 10 % to 70 % or 80 %.
    What is the best way to to update database without getting CPU increase to high level?
    I observed that all threads works at the same time. how to make each thread wait until the second ends?
    This is my code. The problem is in function updateThreaded2().
    Please I need quick help. Thanks
    Public Function Update2(ByVal l As SortableBindingList(Of NewStockList)) As Long
    res = 0
    UThread = New System.Threading.Thread(AddressOf UpdateThreaded2)
    If Me.URunning = True Then
    Else
    Try
    Me.URunning = True
    Interlocked.Exchange(Me.UCount, 0) 'threadsafe method of assigning static value
    Interlocked.Exchange(Me.UDone, 0) 'threadsafe method of assigning static value
    UThread.Priority = Threading.ThreadPriority.BelowNormal
    UThread.IsBackground = True
    UThread.Start(l)
    Return 0
    Catch ex As Exception
    End Try
    End If
    End Function
    Private Sub UpdateThreaded2(ByVal l As SortableBindingList(Of NewStockList))
    Dim i As Integer = 0
    Dim threadcount As Integer = Math.Min(Me.MaxThreads, Me.Stocks.Count)
    Dim threads(threadcount - 1) As SUTC
    Try
    While i < Me.Stocks.Count
    For j As Integer = 0 To threadcount - 1
    If threads(j) Is Nothing Then
    If i < Me.Stocks.Count Then
    threads(j) = New SUTC(Me.Stocks(i), Me.DefaultService, AdjustSplits, Use20Minutes, l)
    threads(j).Thread.Priority = Threading.ThreadPriority.BelowNormal
    threads(j).Thread.IsBackground = True
    threads(j).Thread.Start()
    i += 1
    End If
    ElseIf threads(j).UpdateState = 0 Then
    If i < Me.Stocks.Count Then
    SecUpd(j) = Me.Stocks(i).symbol
    threads(j) = New SUTC(Me.Stocks(i), Me.DefaultService, AdjustSplits, Use20Minutes, l)
    threads(j).Thread.Priority = Threading.ThreadPriority.BelowNormal
    threads(j).Thread.IsBackground = True
    threads(j).Thread.Start()
    i += 1
    End If
    End If
    Next
    Dim running As Boolean = True
    While running
    For j As Integer = 0 To threadcount - 1
    If threads(j).UpdateState = 0 Then
    Thread.Sleep(10)
    running = False
    SecUpd(j) = ""
    Interlocked.Increment(UDone) 'threadsafe method of incrementing a variable by 1
    Interlocked.Exchange(UCount, UCount + threads(j).UpdateCount) 'Threadsafe method for assigning a value
    End If
    Next
    End While
    End While
    Dim pending As Integer = threadcount
    Dim tempcount As Integer = 0
    Dim oldcount As Integer = UCount
    While pending > 0
    pending = threadcount
    tempcount = 0
    For i = 0 To threadcount - 1
    If threads(i).UpdateState = 0 Then
    SecUpd(i) = ""
    pending -= 1
    tempcount += threads(i).UpdateCount
    Thread.Sleep(10)
    End If
    Next
    Interlocked.Exchange(UDone, Me.Stocks.Count - pending) 'Threadsafe method for assigning a value
    Interlocked.Exchange(UCount, oldcount + tempcount) 'Threadsafe method for assigning a value
    End While
    Me.URunning = False
    Catch ex As System.Threading.ThreadAbortException 'handle abort correctly
    Dim pending As Integer = threadcount
    Dim tempcount As Integer = 0
    Dim oldcount As Integer = UCount
    While pending > 0
    pending = threadcount
    tempcount = 0
    For i = 0 To threadcount - 1
    If threads(i).UpdateState = 0 Then
    SecUpd(i) = ""
    pending -= 1
    tempcount += threads(i).UpdateCount
    End If
    Next
    Interlocked.Exchange(UDone, Me.Stocks.Count - pending) 'Threadsafe method for assigning a value
    Interlocked.Exchange(UCount, oldcount + tempcount) 'Threadsafe method for assigning a value
    End While
    End Try
    End Sub

    When the market is opened, stock prices changed every 500 ms . You can see this change on google finance.
    I figured as much, but my thoughts are that if you can somehow find a way to make your program more event driven, then it may be possible to reduce unnecessary looping...
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

Maybe you are looking for