Sockd process uses a lot of CPU time

Hi,
I'm running the Sun Java System Web Proxy Server version 4.02 on a SunFire V210 dual processor box running Solaris 10 with the default socks5.conf for testing.
Just browsing a few web pages in Firefox or IE using the socks proxy boosts CPU usage from the sockd process to a staggering 50% and stay there for several minutes.
Comparing with the old NEC reference Socks5 daemon the Sun version is really performing badly.
The system is pretty standard though I have tuned /etc/system and the tcp stack using recommendations in the proxy administration manual. All Solaris 10 patches are installed.
prstat output:
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
24519 proxy    6664K 4384K cpu1     0   10   0:11:18  50% sockd/43Any ideas what's wrong or do I have to stick with the old NEC reference daemon?
Regards
Kasper L�vschall

Using:
truss -dlfo truss.out ./sockd-wdog
Where things begin to happen:
5259/1:          11.2858     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/1:          12.2958     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/1:          13.3058     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/1:          14.3158     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/2:          15.1858     pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000)     = 0
5259/1:          15.3258     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/2:          pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000) (sleeping...)
5259/1:          lwp_park(0xFFBFF290, 0)          (sleeping...)
5259/1:          16.3359     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/1:          lwp_park(0xFFBFF290, 0)          (sleeping...)
5259/1:          17.3459     lwp_park(0xFFBFF290, 0)                    Err#62 ETIME
5259/2:          18.2382     pollsys(0xFEAEFDC8, 1, 0xFEAEFD58, 0x00000000)     = 1
5259/2:          18.2385     accept(3, 0xFEAEFEC8, 0xFEAEFE64, SOV_DEFAULT)     = 5
5259/2:          18.2386     lwp_unpark(43)                         = 0
5259/43:     18.2386     lwp_park(0x00000000, 0)                    = 0
5259/2:          18.2388     accept(3, 0xFEAEFEC8, 0xFEAEFE64, SOV_DEFAULT)     Err#11 EAGAIN
5259/43:     18.2389     getsockname(5, 0xFE5AFEA8, 0xFE5AFDA4, SOV_DEFAULT) = 0
5259/43:     18.2391     getpeername(5, 0xFE5AFE38, 0xFE5AFDA4, SOV_DEFAULT) = 0
5259/43:     18.2391     read(5, 0x00063B7E, 1)                    Err#11 EAGAIN
5259/43:     18.2407     pollsys(0xFE5AFD08, 1, 0xFE5AFCA0, 0x00000000)     = 1
5259/43:     18.2408     read(5, "04", 1)                    = 1
5259/43:     18.2409     read(5, "01\0 P BF9 ] c", 7)               = 7
5259/43:     18.2411     read(5, " k l\0", 255)                    = 3
5259/43:     18.2412     write(4, " [ 0 1 / M a r / 2 0 0 6".., 88)     = 88
5259/43:     18.2413     so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", SOV_DEFAULT) = 6
5259/43:     18.2414     fcntl(6, F_GETFL)                    = 2
5259/43:     18.2415     fcntl(6, F_SETFL, FWRITE|FNONBLOCK)          = 0
5259/43:     18.2416     bind(6, 0xFE5AF980, 16, SOV_SOCKBSD)          = 0
5259/43:     18.2418     connect(6, 0xFE5AF910, 16, SOV_DEFAULT)          Err#150 EINPROGRESS
5259/43:     18.2970     pollsys(0xFE5AF798, 1, 0xFE5AF730, 0x00000000)     = 1
5259/43:     18.2971     getsockopt(6, SOL_SOCKET, SO_ERROR, 0xFE5AF6D0, 0xFE5AF6D4, SOV_DEFAULT) = 0
5259/43:     18.2972     getsockname(6, 0xFE5AF980, 0xFE5AF8A4, SOV_DEFAULT) = 0
5259/43:     18.2973     write(5, "\0 Z918782E1 511", 8)               = 8
5259/43:     18.2974     lwp_unpark(3)                         = 0
5259/3:          18.2974     lwp_park(0x00000000, 0)                    = 0
5259/3:          18.2977     brk(0x00064850)                         = 0
5259/3:          18.2977     brk(0x00078850)                         = 0
5259/3:          18.2981     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0
5259/3:          18.2982     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0
5259/3:          18.2983     pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0Then loades of pollsys(0xFEACF458, 50, 0xFEACF3E8, 0x00000000)     = 0 until I kill the daemon - seems like they are killing the server?
Thanks,
Kasper

Similar Messages

  • Long running processes using a lot of CPU

    Hi all,
    We have a clustered environment and on both the DB nodes there are processes that is taking a lot of CPU and runs a really long time. The load of the servers get really high and performance degrades drastically.
    I've traced the processes and the module is usually a combination of the following:
    icx.por.rcv.server.ReceiveItemsAM
    icx.por.reqmgmt.server.ReqMgmtAM
    I know it has something to do with Purchase Orders.
    Can someone please give me more info on this processes and what I can do about them?
    Thanks in advance.

    ..Step by Step to fix your Mac
    They will just say it's a software problem you need to fix most likely.
    However if you have exhausted your software fixes and/or Hardware Test gives something, it could be a hardware problem, but likely it's software for what your mentioning.

  • Firefox is using large amounts of CPU time and disk access, and I need to know how to shut down most of this so I can actually use the browser.

    Firefox is a very busy piece of software. It's using large amounts of CPU time and disk access. It puts my usage at low priority, so I have to wait for some time to be able to use my pointer or keyboard. I don't know what it uses all that CPU and disk access time for, but it's of no use to me. It often takes off with massive use of resources when I'm not doing anything, and I may not have use of my pointer for several minutes. How can I shut down most of this so I can use the browser to get my work done. I just want to use the web site access part of the software, and drop all the extra. I don't want Firefox to be able to recover after a crash. I just want to browse with a minimum of interference from Firefox. I would think that this is the most commonly asked question.

    Firefox consumes a lot of CPU resources
    * https://support.mozilla.com/en-US/kb/Firefox%20consumes%20a%20lot%20of%20CPU%20resources
    High memory usage
    * https://support.mozilla.com/en-US/kb/High%20memory%20usage
    Check and tell if its working.

  • [Solved] embedded videos in firefox take a lot of CPU time

    Playing embeded videos in Firefox take a lot of CPU time. Actually my old computer is not able to play these videos correctly if they are in HD. The problem appears with flash videos (not so surprising, flash sucks...) but also with html5 videos (there is an option in youtube to turn that on). However if I succeed to have the direct URL, these videos play perfecrtlky fine in mplayer using not more than 10-20% of CPU time. Is there a solution to that? Is there any possibility to use an external player to play HTML5 videos in firefox? If anybody knows, Why this problem, are the mozilla folk aware of this problem? (Note that I posted a thread a long time ago for this problem but concerning flash only)
    Last edited by olive (2012-04-27 20:33:59)

    There's not much you can do to make HTML5 videos as fast as Xv, see http://swfdec.freedesktop.org/wiki/FAQ. They are slow for the same basic reason as Flash... the video overlay cannot be used because the standard allows for controls and CSS to be rendered on top of the video.
    As for redirecting to an external player... this is not as easy as it could be. If the videos appeared in <embed> tags or <object> tags, one could use Mozplugger, Media Player Connectivity and other programs, but I don't think one has been written to handle the <video> tag. An upcoming update to firefox will make it use gstreamer, however. If this still results in slow playback, it will at least make it easier to use an external player. I imagine you would have to patch firefox to make it use a port on the localhost as the video sink instead of the screen. Then you would run gst-launch to receive that RTP stream.

  • Ditto Using A Lot Of CPU?  Fans Run Often

    It seems to be the culprit in causing the fans to run fast since installing SL. I stop the process from the Activity Monitor but it starts back. AM shows ditto at 90% when it's running. The fans come on, I stop ditto and they slow down, later the fans come on again, I check and ditto is running again and at 90%...............

    Actually resolved this. Related to unzip issue.
    Attempting to unzip some files locks up the Archive Utility. Force Quitting the Archive Utility leaves ditto open and using a lot of CPU.
    Therefore, I'm using The Unarchiver (as kindly suggested by someone on my unzip problem post) at least until Apple updates the Archive Utility.

  • ITunes using a lot of CPU

    I had been using iTunes for a few hours on my Powerbook and noticed it was using a lot of cpu (about 30-40%) for just playing a song.
    I quit the application, and then noticed the following message in my console at around that time:
    Jan 19 17:23:16 My-Powerbook mDNSResponder: -1: DNSServiceResolve("My Music", "daap.tcp.", "local.") failed: Client id -1 invalid (-65549)
    This looks like it was doing some DNS operation that couldn't be completed?
    The application now is working fine after restarting it with the usual sub-10% activity level.
    This is iTunes 6.0.2 and the ministore is disabled. Playing was just to local speakers from the local library.
    Thanks for any help
    Ian

    ..Step by Step to fix your Mac
    They will just say it's a software problem you need to fix most likely.
    However if you have exhausted your software fixes and/or Hardware Test gives something, it could be a hardware problem, but likely it's software for what your mentioning.

  • Thread.sleep takes a lot of CPU time!

    Hi,
    I have the run method like this:
    public void run()
    while(true)
    //some set of operations
    Thread.sleep(5*1000*60);
    The above code's performance was measured under stress test. . The sleep operation seems to take a lot of CPU time
    though ideally sleep is like a no-operation mode, meaning since no operation
    is done when a thread sleeps, it should not use any/minimal CPU time.
    But it seems to take over 30% of CPU time!
    Any ideas on why such a weird thing's happening?
    In fact, in one more similar method also, sleep is taking similar CPU
    time.

    A sleeping thread uses no CPU. Try the following, both with and without the for loop. If you see a constant high CPU usage, even when the thread is sleeping, it's probably that the CPU usage is measured as an average over the last second or several seconds, so when the tasks you're performing are intense and take a significant fraction of the time you're sleeping, the average CPU usage doesn't go down that much.
    public class Sleeper {
        public static void main(String[] args) throws Exception {
            while(true) {
                for (int ix = 0; ix < 100000000; ix++) {
                    int jx = ix * 2;
                    ix = --jx;
                Thread.sleep(5 * 1000* 60);
    }

  • Seems Firefox is suddenly using a lot of CPU power

    My desktop, recently, started sounding like it was really laboring while I wander around the net. And there's a delay as I type messages like this... the letters show up a second or two behind the keystrokes.
    I looked at CPU usage (Win XP with all updates) and while I'm doing this, it sometimes peaks to 35% or higher for Firefox.exe.
    My laptop has recently started telling me Firefox is using a lot of memory and I should close and restart Firefox. (Also updated Win XP)
    It's becoming a big PITA...

    It didn't show up when i searched for the problem on Google and it didn't show up when i search here on Firefox's support site either.
    And the reason it didn't because it's mostly not about my problem.
    '''If' it was one of those things then i would have a high CPU usage the minute i opened my browser, but i don't.'''
    '''It will use a lot of CPU power (after a couple of hours) even if i don't do anything '''
    And yes hardware acceleration is on and so is submit performance data and i use Ad Block Plus, and there isn't a correctly working theme or add-on out there that could use 50-60% of a 3.2GHz quad core CPU
    I don't think this is something that can be fixed that easily

  • Scroll is using a lot of CPU

    Hello
    In my application I have a general scroll that contains a lot of tables and tabs.
    The scroll is working slow and is using a lot of CPU power.
    Table scrolls are working fine.
    Could be something wrong in the code?
    Thank you

    Of course there could be something wrong in your code. Can you post an SSCCE that reproduces this behaviour?

  • Is Photos using a lot of CPU?

    Photos is now using a lot of CPU. This is after it converted my iPhoto library. Is this normal? Is anyone else seeing this on their machine? Here's a screen shot with
    Photos hidden (not actively being used).

    It's probably still building the library and optimizing. Mine is still way up there as well. I'm going to let it run over night and see where it's at in the morning.

  • Syslogd daemon take lot of cpu time arounf 50% of cpu utilization.

    syslogd daemon problem it take lot of cpu time arounf 50% of cpu utilization. How do i solve this issue without reboot.

    You can try then a "/etc/init.d/syslog stop" and "/etc/init.d/syslog start"
    This is only a solution which perhaps will solve your load problem. But obviously
    you should investigate why you have this strange behavior.
    Grouch_fr
    Edited by: Groucho_fr on Mar 17, 2009 2:19 AM

  • Firefox 9 after a while starts using a lot of CPU power, need help!

    After a while (2 hours or more) firefox 9 (not the plugin container) starts eating up more and more CPU power, usually just to 25% (because usually i close it and restart it after that), but today i had work to do and i couldn't restart it right then and that resulted in firefix using about 50-60% of a 4 core 3.2GHz CPU (AMD Phenom II X4 955).
    I'm not doing anything extraordinary just writing emails and just plain normal browsing)
    I only notice this because my CPU fan speeds up and makes a lot more noise if using more then 20% CPU power.
    I'm pretty sure regular users wouldn't notice anything until it started to slow down their whole PC
    I'm using Firefox 9.0.1 running on Win 7 64bit, i have about 20-30 tabs always open (loading) and i haven't tried disabling any add-ons.
    I've read on forums that this might have something to do with flash data piling up, or with having to many tabs open.

    It didn't show up when i searched for the problem on Google and it didn't show up when i search here on Firefox's support site either.
    And the reason it didn't because it's mostly not about my problem.
    '''If' it was one of those things then i would have a high CPU usage the minute i opened my browser, but i don't.'''
    '''It will use a lot of CPU power (after a couple of hours) even if i don't do anything '''
    And yes hardware acceleration is on and so is submit performance data and i use Ad Block Plus, and there isn't a correctly working theme or add-on out there that could use 50-60% of a 3.2GHz quad core CPU
    I don't think this is something that can be fixed that easily

  • When closing Firefox (v:3.6.13), using the red "close" button, the firefox.exe process remaines at top of the "Windows Task Manager" window and continues to use the majority of CPU time.

    After an attempt to close the Mozilla Firefox page, on every occasion, the firefox.exe process is found at the top of the list when ordering the listed 'processes' by CPU time... even though the web page is gone.
    If an attempt is made to restart Mozilla, the system declares that the current Mozilla process should be closed.
    If the firefox.exe process is explicitly closed in the Task Manager, only then can Firefox be restarted.

    Does that also happen if you use File > Exit Firefox?
    See also "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]

  • Dock uses lots of CPU time

    I find Dock uses ~140% CPU time sometimes, I can't see a cause for it to do so. It usually stops of its own accord after a random amount of time. Killing it doesn't help, launchd restarts it and it goes back to using lots of CPU.
    I have parallels install and I have the version which has the fix (6.0.12106) and I have also tried the work around (no luck obviously).

    Never mind, I figured it out by myself. On this particular machine I had a 3rd party plug-in installed (SRS iWow 1.1.8). Removing that brought the CPU usage down to 0.1%. Usually I don't install 3rd party add-ons. This would seem to be a good policy.
    Steve

  • ITunes uses lots of CPU time when idle

    When iTunes is just sitting there with my Music Library displayed, Activity Monitor shows it's using a pretty consistent 22-25% of CPU time. I look at Activity Monitor once in a while and I've never noticed this before. I don't know if it started when I upgraded to iTunes 7.4.2 or not. Other Macs I have access to use close to 0%. I have repaired permissions, checked the hard drive, and waved the other dead chickens over it without any change. Obviously this soaks up a lot of machine resources. Any clues or ideas would be welcome.
    Steve

    Never mind, I figured it out by myself. On this particular machine I had a 3rd party plug-in installed (SRS iWow 1.1.8). Removing that brought the CPU usage down to 0.1%. Usually I don't install 3rd party add-ons. This would seem to be a good policy.
    Steve

Maybe you are looking for