Re: Threads is it equal to no. of open sockets

2015-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 6/16/15 1:38 PM, vicky wrote: > When you say "the number of open sockets and the number of > Tomcatrequest-processing threads will be the same". Does that mean > all sockets states whether its in Closed_wait,listening, stop > etc... will

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Thanks Chris for an insight. When you say "the number of open sockets and the number of Tomcatrequest-processing threads will be the same". Does that mean all sockets states whether its in Closed_wait,listening, stop etc... will consume a thread individually.If yes then does that imply if i coun

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 6/16/15 12:50 PM, vicky wrote: > Server version: Apache Tomcat/7.0.22 Server built: Sep 27 2011 > 09:40:50 Oh, wow, you really need to upgrade. There are a number of really *really* important security updates that need to be applied. P

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Chirs - Below are the required details as your requested :- Server version: Apache Tomcat/7.0.22Server built:   Sep 27 2011 09:40:50Server number:  7.0.22.0OS Name:        LinuxOS Version:     3.4.48-45.46.amzn1.x86_64Architecture:   amd64JVM Version:    1.6.0_24-b24JVM Vendor:     Sun Microsyst

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 6/16/15 12:25 PM, vicky wrote: > connectionTimeout="2" redirectPort="8443" /> Also, what Tomcat version? I'm guessing 6.0.x or 7.0.x. Can you give us the whole version number, including the "x" at the end? - -chris -BEGIN PGP SI

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread vicky
Hi Chris-  I;ve below config :-   - vicky On Tuesday, 16 June 2015 9:37 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 6/16/15 10:34 AM, vicky wrote: > In tomcat does the no . of open sockets on http port (netstat > -anlp|grep 8080) is i

Re: Threads is it equal to no. of open sockets

2015-06-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 6/16/15 10:34 AM, vicky wrote: > In tomcat does the no . of open sockets on http port (netstat > -anlp|grep 8080) is it equal to number of threads in use in tomcat > . > > Actually i want to understand how & when i can say that the all

Re: threads vs. servlets

2015-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 3/10/15 8:15 PM, David Bullock wrote: > On 11 March 2015 at 04:43, Christopher Schultz > > wrote: > > Basically, making a >> servlet threadsafe only requires you to avoid any non-threadsafe >> class members in the servlet itself... > > S

Re: threads vs. servlets

2015-03-10 Thread David Bullock
On 11 March 2015 at 04:43, Christopher Schultz wrote: Basically, making a > servlet threadsafe only requires you to avoid any non-threadsafe class > members in the servlet itself... > Since we're tossing pennies, I've often wondered how the app-server achieves the effect that any instance-level

Re: threads vs. servlets

2015-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, Others have already responded, but I figured I'd add my two cents, too. On 3/10/15 11:25 AM, Carl Dreher wrote: >> If I write a servlet such as the above, is there ever only once >> instance of it running? > >>> Don't confuse objects with t

Re: threads vs. servlets

2015-03-10 Thread Kaydell Leavitt
Unsubscribe. Please?! -- Kaydell kayd...@yahoo.com On Mar 10, 2015, at 9:25 AM, Carl Dreher wrote: >> If I write a servlet such as the above, is there ever only once instance of >> it running? > >>> Don't confuse objects with threads. There is one instance of a particular >>> servlet, bu

Re: threads vs. servlets

2015-03-10 Thread Neven Cvetkovic
Hey Carl, On Tue, Mar 10, 2015 at 11:25 AM, Carl Dreher wrote: > If I write a servlet such as the above, is there ever only once instance >> of it running? >> > > Don't confuse objects with threads. There is one instance of a >>> particular servlet, but many threads may be executing in it conc

RE: threads vs. servlets

2015-03-10 Thread Caldarale, Charles R
> From: Carl Dreher [mailto:focus...@arn.net] > Subject: Re: threads vs. servlets > > > If I write a servlet such as the above, is there ever only once instance > > > of it running? > > Don't confuse objects with threads. There is one instance of a par

Re: threads vs. servlets

2015-03-10 Thread Carl Dreher
If I write a servlet such as the above, is there ever only once instance of it running? Don't confuse objects with threads. There is one instance of a particular servlet, but many threads may be executing in it concurrently, with each thread processing a separate request. I understand tha

Re: Threads in Tomcat

2012-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vance, On 5/18/12 12:29 PM, Vance - wrote: > The servlet I have in mind for modification is the one responsible > for performing the search as well as for getting the next page of > search results. If one or more of the wikis is unavailable, I want >

RE: Threads in Tomcat

2012-05-21 Thread Casper Wandahl Schmidt
database). Med venlig hilsen/Kind regards Casper/Kalle -Original Message- From: Tim Watts [mailto:t...@cliftonfarm.org] Sent: 18. maj 2012 21:54 To: Tomcat Users List Subject: Re: Threads in Tomcat On Fri, 2012-05-18 at 12:14 -0400, Vance - wrote: > I'm maintaining a W

Re: Threads in Tomcat

2012-05-18 Thread Tim Watts
On Fri, 2012-05-18 at 12:14 -0400, Vance - wrote: > I'm maintaining a Web application for searching multiple wikis, this app > runs under Tomcat 6. I need to modify a servlet so it instantiates a > 'Thread' subclass to perform a wiki availability check every so often, say > every 30 minutes. Given

Re: Threads in Tomcat

2012-05-18 Thread Vance -
Chris, thanks for responding. The servlet I have in mind for modification is the one responsible for performing the search as well as for getting the next page of search results. If one or more of the wikis is unavailable, I want to display an error message on the search results page. The wiki av

Re: Threads in Tomcat

2012-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vance, On 5/18/12 12:14 PM, Vance - wrote: > I'm maintaining a Web application for searching multiple wikis, > this app runs under Tomcat 6. I need to modify a servlet so it > instantiates a 'Thread' subclass to perform a wiki availability > check eve

Re: Threads Locking Monitors(61 Threads Locking)

2012-02-23 Thread Amol Puglia
I am having tomcat version 6.0.26. Let me know if you need further information From: "Caldarale, Charles R" To: Tomcat Users List Sent: Thursday, February 23, 2012 7:44 PM Subject: RE: Threads Locking Monitors(61 Threads Locking) > From

RE: Threads Locking Monitors(61 Threads Locking)

2012-02-23 Thread Caldarale, Charles R
> From: Amol Puglia [mailto:amolcpug...@yahoo.com] > Subject: Threads Locking Monitors(61 Threads Locking) > I am analyzing thread dumps of tomcat What version? > Below is the description of the thread which is locking on monitor. > I do not understand what is causing this. The thread in ques

Re: Threads not freed up after load test....

2010-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 12/17/2010 5:20 PM, Tony Anecito wrote: > I was running a load test against Tomcat 6.0.16 and noticed that when the > load > test was done the thread count stayed over 600. > Is there some delay for the threads to ramp down internal to Tomc

Re: Threads not freed up after load test....

2010-12-17 Thread Tony Anecito
After some research I found the tags in the server.xml for controlling this and will check with someone about the current settings. Regards, -Tony - Original Message From: Tony Anecito To: Tomcat Users Group Sent: Fri, December 17, 2010 3:20:07 PM Subject: Threads not freed up after

RE: Threads and blocked count value

2008-11-04 Thread Caldarale, Charles R
> From: Stefano Nichele [mailto:[EMAIL PROTECTED] > Subject: Threads and blocked count value > > I'm running tomcat 6.0.13 + jdk 1.5 in my production system and I'm a > bit wondering about the number of times the "Reference Handler" thread > has been blocked in just 3 days: 9500835 (checked using j

Re: Threads are busy...but my application is moderately used!!

2008-07-31 Thread Thangavel Sankaranarayanan
PM Subject Re: Threads are busy...but my Please respond to application is moderately used!! &q

Re: Threads are busy...but my application is moderately used!!

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Thangavel Sankaranarayanan wrote: | I am facing a problem with Tomcat 4.1.27. Note that everything you are using is very out of date. Tomcat just released 6.0.18, mod_jk is at version 1.2.26 (and JK2 is dead, dead, dead), and win2k, well.

Re: Threads

2008-04-03 Thread Stephen Caine
Yong, Add to here: export JAVA_OPTS="-d64 -Xms1024m -Xmx1024m -XX:+MaxFDLimit -server - Djava.awt.headless=false" Thank you. Stephen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PRO

Re: Threads

2008-04-03 Thread Yong Hyeon Yoon
On 3-Apr-08, at 11:27 AM, Stephen Caine wrote: Yong, Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address spa

Re: Threads

2008-04-03 Thread Stephen Caine
Chuck, There are some thread-specific parameters you can play with, in particular -Xss. But as others have pointed out, changing one factor moves the limits on others. Your best bet (assuming you really, really need that many threads) is to run in a 64-bit process, also as previously s

Re: Threads

2008-04-03 Thread Stephen Caine
Yong, Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address space limit (1 thread may claim 1MB of virtual spa

Re: Threads

2008-04-03 Thread Andrew Miehs
From: Stephen Caine [mailto:[EMAIL PROTECTED] I have a process that generates hundreds of threads. Running on Mac OS X 10.5.2 Server, the thread count tops out at approximately 2500. After which, the process is terminated. The heap size is set to 1 gigabyte. My question is how to increase the c

RE: Threads

2008-04-03 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > Subject: Re: Threads > > I am asking if there is any way to increase the number of > threads that can be handled by decreasing the thread size > allocation (a java option) There are some thread-specific parameters you

Re: Threads

2008-04-03 Thread Stephen Caine
Chuck, There's no limit within the JVM itself on the number of threads, other than heap space required to hold the Thread objects. It's the underlying OS that imposes the actual limit, including the amount of process space available for stacks and other thread-specific structures. If y

Re: Threads

2008-04-03 Thread Yong Hyeon Yoon
Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address space limit (1 thread may claim 1MB of virtual space for s

Re: Threads

2008-04-03 Thread Alan Chaney
Actually another question is what is it in your application that NEEDS 2500 threads? What does the application do? Is it 3rd party or in house? Normally the creation of a thread is considered an expensive operation and typically one tries to avoid creating new threads all over the place. Hence

RE: Threads

2008-04-03 Thread Harper, Brad
nt: Thursday, April 03, 2008 11:34 AM > To: 'Tomcat Users List' > Subject: RE: Threads > > > From: Stephen Caine [mailto:[EMAIL PROTECTED] I have > a process > > that generates hundreds of threads. Running on Mac OS X 10.5.2 > > Server, the thread count

RE: Threads

2008-04-03 Thread Peter Crowther
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > I have a process that generates hundreds of threads. Running on Mac > OS X 10.5.2 Server, the thread count tops out at approximately 2500. > After which, the process is terminated. The heap size is set to 1 > gigabyte. My question is how to incre

RE: Threads

2008-04-03 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > Subject: Threads > > My question is how to increase the capacity of the JVM to > handle more threads. There's no limit within the JVM itself on the number of threads, other than heap space required to hold the Thread objects. It's the underlyi

Re: Threads in tomcat application.

2007-09-02 Thread Juha Laiho
Manivannan Palanichamy wrote: > I need to design a web application that may use threads. Thats, the web > application might have to read some 200 files from network. In order to > speed up the process, I've decided to use threads/thread pooling. But, > however I know it is not a good practice to us

Re: threads, performance, and exceptions

2006-10-02 Thread Leon Rosenberg
Hmm, I would suggest you stop having continuos connections. 30 seconds is a lot of time, maybe you should re-establish connections on request. I know re-establishing costs 3 additional tcp packets, but it negligible since you have small packets sent seldomly. I assume your chat is an applet, since

Re: threads, performance, and exceptions

2006-10-01 Thread Andrew Miehs
You may want to try turning off keepalives in your tomcat. (I assume you are only using tomcat, and not proxying through mod_jk and apache/ IIS). In your connector settings have a look at 'maxKeepAliveRequests="1"' If you really have that many threads, you will probably be best of using Li

Re: Threads

2006-03-17 Thread Christopher K. St. John
On Thu, 16 Mar 2006 13:11:17 +0100 Morten Andersen <[EMAIL PROTECTED]> wrote: Is there any problems with running a thread every night updating ressources and sending out emails from within tomcat. Any tools available? short answer: if you're willing to live with (or just don't really care a

Re: Threads

2006-03-17 Thread Filip Hanik - Dev Lists
yes, Quartz, is a nice open source scheduler. best place to start it, is in an init method of a servlet. Filip Leon Rosenberg wrote: On 3/17/06, Morten Andersen <[EMAIL PROTECTED]> wrote: I need a thread that will write some emails and stuff every night. why not using scheduler?

Re: Threads

2006-03-17 Thread Leon Rosenberg
On 3/17/06, Morten Andersen <[EMAIL PROTECTED]> wrote: > I need a thread that will write some emails and stuff every night. why not using scheduler? > > Can this be started from within tomcat. (I'm thinking about starting it > from loadOnStartup) > you can start a thread from nearly everywhere,

RE: Threads and SocketException

2006-01-14 Thread Caldarale, Charles R
> From: Thom Hehl [mailto:[EMAIL PROTECTED] > Subject: Re: Threads and SocketException > > The issue is that this works just fine when not running inside of > Tomcat. Any ideas what runing inside of a servlet > context-spawned thread can cause this kind of error? A connecti

Re: Threads and SocketException

2006-01-14 Thread Thom Hehl
The issue is that this works just fine when not running inside of Tomcat. Any ideas what runing inside of a servlet context-spawned thread can cause this kind of error? Wade Chandler wrote: --- Thom Hehl <[EMAIL PROTECTED]> wrote: OK, I'm using tomcat and a sevlet to launch a background

Re: Threads and SocketException

2006-01-14 Thread Wade Chandler
--- Thom Hehl <[EMAIL PROTECTED]> wrote: > OK, I'm using tomcat and a sevlet to launch a > background process in a > separate thread. It seems to launch just fine, but > after it runs for > maybe 30 seconds it dies, spitting out this error: > > java.net.SocketException: Connection reset > a

Re: Threads Was: Adjusting Memory

2005-12-17 Thread Mark Thomas
Bruno Georges wrote: > Hi Thomas > A quick note: > Correct me if I am wrong , but it looks like this happens not intentionally > when the spell checker modify the spelling in the Subject line. > > Bruno Georges It depends on the mail client. Some use the subject, some use the "In-Reply-To" header