Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [threads]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Why does a MySQL select sometimes not create a "client connection"?

I'm doing some testing (on my dev server) to help me figure out what is causing the ever growing list of connections on my production server. My assumption is that there are certain pages that are ...
user avatar
  • 696
2 votes
2 answers
4k views

Can I have multiple threads running in parallel in a pod with a CPU limit set to 500 millicores?

I have a multi cores Kubernetes cluster, inside it I have multiple pods configured with a CPU limit of 500 millicores: resources: limits: cpu: "500m" It is ...
user avatar
0 votes
1 answer
298 views

NUMBER_OF_PROCESSORS env var incorrect on Dell PowerEdge Gen14 With Windows Server 2012 R2

I'm seeing that the environment variable NUMBER_OF_PROCESSORS is incorrect on my newly installed Dell PowerEdge 740xd Gen 14 running Windows Server 2012 R2 Standard. The machine contains 2 CPUs - ...
user avatar
  • 213
0 votes
1 answer
524 views

Identifying thread deadlocks in WebSphere

In WebSphere 8.5.5.13 I have some out of memory errors and the database connections get maxed out. It seems to me this is due to thread starvation (I have some processes trying to do something with a ...
user avatar
  • 3
0 votes
1 answer
443 views

Nfs server thread count is increased, but new threads don't start

We're running an nfs-server on RedHat 6.9 Santiago and recently we've experienced large I/O waits on clients. After some troubleshooting we decided to increase the number of nfs threads. After ...
user avatar
  • 101
0 votes
1 answer
5k views

IIS Number of threads worker process for ASP.NET application

TL;DR; Give the worker process more threads! Background We have an ASP.NET application that expose a Web API where one of the "endpoints/methods" makes a set of queries to external system (SQL, AD ...
user avatar
  • 1
0 votes
0 answers
44 views

mariadb main thread over 100% cpu and flushing logs

I have 5.5.60-MariaDB and noticed the main thread remains on sleep mode for the last 200hrs. After checking innodb status I see the below line for this thread. Main thread process no. 119014, id ...
user avatar
  • 1
-3 votes
1 answer
47 views

How much is too much (processes, threads) [closed]

I wonder if I have too much processes and if systemd is getting overloaded. When I run ps aux | wc -l O get "840" If I run ps -e H | wc -l I have around 5k (5128 to be exact), substracting the process ...
user avatar
2 votes
0 answers
115 views

DNS doesn't resolve some domains on huge amount of requests

I need to check 200kk (200,000,000) domains for availability and CMS information. I'm using php 7.1 and simulating multi-thread check. Hardware and config The server hardware: Multicore CPU, 64GB ...
user avatar
  • 181
0 votes
1 answer
472 views

How do I get a thread dump of my Wildfly process on Amazon Linux?

We're using Wildfly 11 with JDK 8 on Amazon Linux. How do I get a thread dump of our Wildfly process? We're trying to troubleshoot why we're seeing high CPU utilization for that process. We do NOT ...
user avatar
  • 156
0 votes
1 answer
652 views

php threads (not processes) keep mounting up until server crashes

I've been struggling with the following problem for a while now and would very much appreciate your help. My webserver completely crashes on a regular basis due to too many php threads. The number ...
user avatar
  • 1
4 votes
3 answers
3k views

Why having more and faster cores makes my multithreaded software slower?

I am experiencing bizarre behavior on scaling a multiprocess/multithreaded C++ application. The application contains 10 separate processes, communicating through Unix Domain Sockets and each one ...
user avatar
  • 151
1 vote
0 answers
133 views

Apache 2.4 mpm_winnt: one thread takes all resources

I am working with Apache 2.4.33x64 on Server 2008 to run a site for max. 15 users. On the site you can do some really expensive calculations which can take some minutes (an external script is called). ...
user avatar
1 vote
0 answers
246 views

Any difference between "siblings" in /proc/cpuinfo and "threads" in intel official documentations?

/proc/cpuinfo provides such info: ... vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz stepping : 2 microcode : 59 cpu MHz :...
user avatar
1 vote
2 answers
482 views

Linux: scheduling processes and threads

When there are multiple single-threaded processes and some multi-threaded processes, all CPU-intensive, how time is divided between them (assuming that all have the same priority)? For example, on 48-...
user avatar
2 votes
2 answers
1k views

MariaDB threads optimalization

NEW (pcie) server: Intel(R) Xeon(R) CPU E5-2637 v4 @ 3.50GHz, 1TB NVMe disks, 128 GB RAM, installed Debian 4.9.65-3+deb9u1, Ver 15.1 Distrib 10.1.26-MariaDB moved binary db files from OLD server: ...
user avatar
  • 163
0 votes
0 answers
17 views

Strange thread in Centos Server [duplicate]

There is a strange thread called sourplum running in my CentOS server. It uses a lot of resources and affects the excel and pdf generation. Tasks: 280 total, 2 running, 277 sleeping, 0 stopped, ...
user avatar
  • 177
0 votes
1 answer
653 views

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. ...
user avatar
  • 101
1 vote
1 answer
3k views

Windows Server 2012 R2 kernel threads increase until the system hang

I have a small problem with my Windows Server 2012 R2. At the moment the problem is that the threads from "NT Kernel & System" increase every second until they reach 16k, and then the server ...
user avatar
  • 1,418
2 votes
1 answer
166 views

Incorrect CPU thread numbering detected

I've procured an HP DL360 G7 second hand. I'm wondering if this is either a fault in the OS or the hardware. Installed are 2X Intel Xeon X5650 CPUs, each with 6 cores with threading enabled. Logic ...
user avatar
0 votes
2 answers
500 views

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 ...
user avatar
  • 85
1 vote
1 answer
63 views

Application caps at 20% utilization per core no matter how many threads are launched

I'm trying to use a Dell Poweredge R900 I got secondhand as a compute pool (4x quadcores gives me 16 cores to run simulations with). It's running windows server 2008 R2 enterprise at the moment. I'...
user avatar
3 votes
2 answers
2k views

Stand alone single thread optimized server vs vm running on VMWare

I apologize for the length of my post. We recently converted our business system to a product that is licensed by the number of Cores. We purchased the 2 core license and are currently running it on ...
user avatar
2 votes
0 answers
44 views

How does a server (e.g. web) manage multiple request/connections? [closed]

I read that apache has a solution to create new thread per new request, but I still have some questions. How is possible that one server can manage thousands (even a milion connection - depends from ...
user avatar
5 votes
2 answers
5k views

debugging stuck apache/php thread on production server

I have a linux system with apache httpd and PHP which is loaded using LoadModule php5_module /usr/lib/apache2/modules/libphp5.so. I've enabled the mod_status module of apache and I see a particular ...
user avatar
  • 704
2 votes
2 answers
11k views

Apache stopped working permanently after error "Server ran out of threads to serve requests."

I have been working with Apache for more than 8 years, but now I'm facing a severe problem and I couldn't find a solution on internet so far. I'm running Apache 2.2.15 32bit on a Windows 2008 R2 ...
user avatar
1 vote
0 answers
225 views

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few ...
user avatar
  • 11
0 votes
1 answer
86 views

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 ...
user avatar
2 votes
1 answer
11k views

httpd - Increase number of concurrent requests

I have httpd server running on Centos7. The apache details - Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 I'm trying to load test a web application by starting to hit it with 100 users & ...
user avatar
-4 votes
2 answers
129 views

For php webserver, what is faster, 1x 24-core server or 3x 8-core servers? [closed]

Pricing at Dell, it seems I can either get a single R430 or 3x R220's. The R220's would have 4C/8T processors, giving 24 threads. The R430 would have 2x 6C/12T processors giving again 24 threads. For ...
user avatar
2 votes
0 answers
2k views

What is a fast, efficient method for threading rsync

I have a single root directory (on a NAS) that I need to backup to another server. The hierarchy of the directory is several layers deep and a majority of the data is composed of extremely large ...
user avatar
7 votes
2 answers
25k views

Java: Limit the number of cores a JVM can use

Multiple users are running java applications on a 60-core compute server (Linux/Ubuntu-based). There are different applications and most of them are not developed in-house. While the sysadmin thinks ...
user avatar
  • 155
2 votes
0 answers
686 views

determine if threads on a cpu are blocked? What are the causes of thread blocks?

The load-average reported by uptime command also displayed in top provides the the average run-queue length over time (1, 5 and 15 minutes) The run-queue length is the sum of the number of threads (...
user avatar
  • 121
2 votes
0 answers
2k views

IIS Worker Process Thread Count

I've seen this question asked but the answer given was either insufficient or unrelated. I feel like this is a pretty simple question(s). We have a Classic ASP app running on IIS7.5 on a Windows 2k8 ...
user avatar
-1 votes
2 answers
1k views

How to run a single-threaded application on multiple processor cores efficiently? [closed]

There is this old application that we are using (called Aldfaer) that only uses a single thread. One of its processes takes about 90 minutes to complete at this moment, and we would like to decrease ...
user avatar
1 vote
0 answers
543 views

Taking a thread dump on IBM J9 takes a long time

I'm trying to collect a java core on AIX (java version 1.6). There is only one dump agent configured, which collects a system dump, heap dump and java core on every SIGQUIT, so I used HealthCenter to ...
user avatar
  • 212
3 votes
1 answer
14k views

Tomcat threads are increasing but never decreasing

We are using new relic to monitor tomcat threads. The graph shows increase of thread count,but it never decreased even the application is idle. We noticed that when it increase CPU also increased and ...
user avatar
0 votes
1 answer
9k views

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: <Connector port="80" protocol="HTTP/1.1" executor="...
user avatar
  • 135
0 votes
0 answers
4k views

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 ...
user avatar
1 vote
1 answer
354 views

intel 2620 and 2609 on debian cpuinfo [closed]

I have two Boxes running Debian 7 with the following processors. Each Box has two of the same processors. Intel® Xeon® Processor E5-2620 (15M Cache, 2.00 GHz, 7.20 GT/s Intel® QPI) # of Cores 6 # ...
user avatar
  • 141
0 votes
0 answers
6k views

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 ...
user avatar
5 votes
0 answers
3k views

What is optimal IIS threading settings for a Win2012 server that does lots of slower web service calls?

We have a Windows 2012 Server that communicates to lots of other services via SOAP based web services using ASP.Net and .NET 4.5. These services tend to have higher latency (i.e. 2-6 seconds to ...
user avatar
  • 243
2 votes
3 answers
688 views

freebsd 7.2 kern.threads.max_threads_per_proc doesn't change after reboot

I have some multithread apps on my server machine based on FreeBSD 7.2, so because of this I need to increase kern.threads.max_threads_per_proc to 4000 (default value is 1500). I changed it using "...
user avatar
3 votes
1 answer
370 views

Linux kernel thread dependency graph?

I'm trying to benchmark a system with a software RAID-10 volume, backed by Fusion IO cards. Is it possible to display a Linux kernel thread dependency graph? I would like to know how all the [xfs],...
user avatar
  • 1,510
0 votes
1 answer
638 views

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. ...
user avatar
2 votes
0 answers
2k views

How to tell uWSGI to prefer processes to threads for load balancing

I've installed Nginx + uWSGI + Django on a VDS with 3 CPU cores. uWSGI is configured for 6 processes and 5 threads per process. Now I want to tell uWSGI to use processes for load balancing until all ...
user avatar
  • 218
5 votes
0 answers
2k views

How do I reduce the threads per process limit for an ISAPI app under IIS 7.5

I have a python WSGI application running under an ISAPI extension in IIS 7.5 on Windows Server 2008. I would like to increase the number of worker processes (which I know how to do) and reduce the ...
user avatar
2 votes
0 answers
174 views

Apache worker mpm, one process and many threads: understanding performance

Got a mod_perl-written serverside program. Im using shared apache worker mpm memory with one process only, and ~ 60 threads. Im using locks to temporary secure the access to the shared memory, just 0....
user avatar
7 votes
1 answer
2k views

Python Threads and uWSGI Harakiri

I have a webapp that is using an API built on nginx, uWSGI, and Django. Recently I have been seeing a lot of harakiris on a particular API call which does some quick processing and then spawns a few ...
user avatar
  • 181
1 vote
0 answers
600 views

Linux watchdog and timing interval

How does the /dev/watchdog timer exactly work? I found a description here and it says that once I open the file from an application I need to update it every 10 seconds. I was wondering is this a ...
user avatar
  • 305