Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21883

Re: Tomcat Multi-Threading

From Leif Roar Moldskred <leifm@dimnakorr.com>
Subject Re: Tomcat Multi-Threading
Newsgroups comp.lang.java.programmer
References (2 earlier) <510887fc$0$286$14726298@news.sunsite.dk> <kealt4$h8s$1@news.m-online.net> <692563e7-016b-4f22-afaa-228965e501b8@googlegroups.com> <d8WdnWAp7YW1wJTMnZ2dnUVZ8jmdnZ2d@bt.com> <3d3ae65e-f275-45ea-8e9f-3c8e0a0587fe@googlegroups.com>
Message-ID <Vvydne26999HH5TMnZ2dnUVZ8oudnZ2d@giganews.com> (permalink)
Date 2013-01-30 14:30 -0600

Show all headers | View raw


zigzagdna@yahoo.com wrote:

> Thanks a lot to all of your insight. I do not see any separate java
> process for my "application". I only see tomcata6.exe which shows
> many threads, so I assuming my "application" is multi-theraded and
> more CPU's should help!!!

That's not necessarily the case. Whether more CPU cores will improve
an application's performance depends on how the application balances
CPU load across threads -- not just the number of threads it uses. If
an application uses 20 threads, but 19 of those spends almost all
their time waiting on work being done in the 20th thread, throwing
more cores at the application isn't going to make a measureable
difference.

(In the worst case scenario, adding more cores might bring to light so
far unnoticed concurrency errors in the application and actually
_decrease_ performance.)

That's not to say you shouldn't try adding more cores: it's a quick
and easy thing to do, and it's likely to help at least a little. Just
don't believe in any performance gain until you've gone and measured
it.

-- 
Leif Roar Moldskred

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-29 17:59 -0800
  Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-29 21:21 -0500
    Re: Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-29 19:48 -0800
  Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-29 18:31 -0800
    Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-29 21:39 -0500
      Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-29 22:54 -0800
        Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:09 -0500
      Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-01-30 09:34 +0100
        Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 08:28 -0800
          Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-01-30 18:04 +0100
            Re: Tomcat Multi-Threading jlp <jlp@jlp.com> - 2013-01-30 18:44 +0100
            Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 09:49 -0800
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:17 -0500
              Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-02-01 18:33 +0100
                Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-02-01 11:23 -0800
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:36 -0500
                Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-02-03 07:17 +0100
          Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-30 17:49 +0000
            Re: Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-30 11:29 -0800
              Re: Tomcat Multi-Threading Leif Roar Moldskred <leifm@dimnakorr.com> - 2013-01-30 14:30 -0600
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:00 -0500
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 21:59 -0500
            Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 14:48 -0800
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:21 -0500
                Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-31 08:47 +0000
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:39 -0500
          Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:12 -0500
  Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-30 08:51 +0000

csiph-web