Questions tagged [threads]

A thread is the smallest entity of execution within a program.

Within a process, there may be one or more threads, each with the following:

  • A thread execution state (Running, Ready, etc.)
  • A saved thread context when not running; one way to view a thread is as an independent program counter operating within a process
  • An execution stack
  • Some per-thread static storage for local variables
  • Access to the memory and resources of its process, shared with all other threads in that process

Source: William Stallings, Operating Systems: INTERNALS AND DESIGN PRINCIPLES

99 questions
0
votes
1 answer

Can Apache HTTP server work as thread-per-request?

I'm trying to fully understand the differences between Apache and Nginx. I've come across the concepts of thread-per-connection and thread-per-request. Then, I've also learned about Apache's MPMs. From my understanding, using mpm_prefork, Apache…
garci560
  • 101
  • 1
  • 3
0
votes
2 answers

How to verify mysql single process with multiple threads model?

It is said that MySQL handles connections, allocating one thread per connection to the server,and MySQL is a single process with multiple threads. Now in my localhost . There are two connections to mysql. sudo ps -el |grep mysql 4 S 0 892 …
showkey
  • 115
  • 1
  • 4
  • 19
0
votes
1 answer

Java process thread details

I'd like to get the details like name, running time, etc. of threads of a Java process on a production VM, similar to the info that VisualVM shows in the Threads tab. Unfortunately, VisualVM won't run without JDK installed. Is there any light-weight…
Ivan Gerken
  • 111
  • 2
0
votes
1 answer

How to limit the number of Tomcat threads?

I have a tomcat 7 running on a low memory CentOS. Currently it has 2 connectors for ports 80 and 443. Important configuration options are:
jdiver
  • 135
  • 1
  • 4
  • 9
0
votes
0 answers

IIS Threads Per Processor Max

We have IIS 7 running a classic ASP app. We noticed that while the CPU stays low, the ASP Request Queue can sometimes get high, causing slow response times. After some research it seems changing the max threads per processor setting may be in…
Shalom Slavin
  • 21
  • 1
  • 4
0
votes
0 answers

WebSphere hung threads, how can I track then down?

We have an application running on WebSphere (unfortunately it is 6.1 which is no longer supported, it has not yet been migrated in production to a later version) which becomes entirely unresponsive because of hung threads. As far as I can tell we…
Puzzled
  • 9
  • 1
  • 4
0
votes
1 answer

mongodb : Can create new thread on FreeBSD?

We experienced some strange thing in our mongodb gridfs platform. The platform actually is a bi Xeon E5 (bi quad core) with 128GB of memory, running on freebsd 9 with a zfs pool dedicated for mongodb. [root@mongofile1 ~]# uname -sr FreeBSD…
0
votes
1 answer

Tomcat maximum threads

I understand that setting the maximum number of connections available in a connection pool should be the same as your maxThreads configured for your Tomcat server (which correlates to the number of requests that can be handled) For tomcat the…
0
votes
1 answer

Starting program once leads to 10 instances

I have an old SUSE 8.1 server which just recently started acting crazy. If I start a program once: /usr/local/jdk1.6.0_21/bin/java -cp…
Brad Mace
  • 1,024
  • 3
  • 17
  • 32
0
votes
1 answer

how can I monitor Jboss threads to see the response times and waiting times in real time

We are facing a problem of slowness in performance when the requests are being served from JBoss. We had a web server routing requests to application server and we could see the problem with JBoss's JVM. how can I monitor Jboss threads to see the…
0
votes
1 answer

IIS, application domains, pools, processes and threads, high level understand

Was hoping if someone could be all these things into perpective for me. This is to better understand operatig systems in general, but also specifically how it applies to IIS. How to application domains, app pools, processes and threads come into…
Blankman
  • 2,891
  • 10
  • 39
  • 68
0
votes
4 answers

Hung Java JVM failing to respond to kill -3

I have a Java VM that is hanging "randomly". I quote the randomly bit, because there is obviously a reason that the VM is hanging, but the hang does not occur periodically. We have the same software running in different customer environments and…
Hans
  • 1
  • 1
  • 1
0
votes
1 answer

tomcat6 maxThreads property ignored

Hi in tomcat6 server.xml I have one connector for catalina service. And I set maxThreads=5: But after restarting tomcat I can see more then 5 threads…
tefozi
  • 101
  • 2
0
votes
1 answer

Weblogic Threads Usage

I have an application deployed on WebLogic 10.3, which exhibits a strange behavior. I am running a constant (not too high) load on my application (20 concurrent users, running a light activity). The response time is reasonable (well below 100ms…
Hila
  • 101
  • 1
0
votes
1 answer

Easiest way of upgrading pthread library in CentOS?

I am developing a deamon for my VPS. The program works perfectly in local (that has pthread-2.11.so) but in the vps (witch have pthread-2.5.so) it have a memory leak related to threads (each thread uses too much memory and that memory isn't free…
NeDark
  • 463
  • 1
  • 6
  • 10