Questions tagged [threads]
A thread is the smallest entity of execution within a program.
100 questions
0
votes
0
answers
73
views
Is it possible to spawn one process per connection in Apache with mpm_winnt?
I would like to fine tune the settings of mpm_winnt Apache module: for each connection, it should spawn one new Apache (httpd) process.
AFAIK this is similar to what mpm_prefork does (which is Linux ...
1
vote
1
answer
1k
views
Interpreting OOM killer logs when triggered on a Java thread
When Linux OOM Killer interrupts a process, the kernel logs usually provide enough information about the culprit's memory consumption (even it is not killed eventually). For example, when snmpd ...
0
votes
1
answer
48
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 ...
5
votes
2
answers
21k
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 ...
1
vote
1
answer
780
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 - ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
14k
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 ...
0
votes
0
answers
184
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 ...
-3
votes
1
answer
662
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 ...
2
votes
0
answers
239
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 ...
0
votes
1
answer
680
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 ...
0
votes
1
answer
934
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 ...
4
votes
3
answers
5k
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 ...
1
vote
0
answers
257
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).
...
1
vote
0
answers
406
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 :...
1
vote
2
answers
843
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-...
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:
...
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, ...
0
votes
1
answer
1k
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. ...
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 ...
2
votes
1
answer
295
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 ...
0
votes
2
answers
669
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 ...
1
vote
1
answer
74
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'...
3
votes
2
answers
3k
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 ...
2
votes
0
answers
51
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 ...
5
votes
2
answers
6k
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 ...
2
votes
2
answers
16k
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 ...
1
vote
0
answers
317
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 ...
0
votes
1
answer
159
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 ...
2
votes
1
answer
13k
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 & ...
-4
votes
2
answers
201
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 ...
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 ...
7
votes
3
answers
33k
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 ...
2
votes
0
answers
887
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 (...
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 ...
-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 ...
1
vote
0
answers
631
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 ...
4
votes
1
answer
17k
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 ...
0
votes
1
answer
10k
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="...
0
votes
0
answers
5k
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 ...
1
vote
1
answer
412
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
# ...
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 ...
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 ...
2
votes
3
answers
864
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 "...
3
votes
1
answer
497
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],...
0
votes
1
answer
685
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.
...
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 ...
6
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 ...
2
votes
0
answers
193
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....