Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [threads]

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

2
votes
0answers
73 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
1answer
95 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
1answer
155 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 ...
2
votes
3answers
267 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
0answers
64 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). ...
0
votes
0answers
241 views

IIS maxWorkerThreads strange behavior

I have an IIS Webserver installed on my windows 10 machine and an ASP.Net Webforms application running. I tried to increase the following values in my machine.config: <processModel autoConfig="...
1
vote
0answers
78 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
2answers
87 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
2answers
506 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
0answers
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
1answer
203 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
1answer
1k 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 ...
3
votes
1answer
98 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
2answers
282 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
1answer
51 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'...
4
votes
2answers
1k 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
0answers
38 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 ...
4
votes
2answers
2k 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
2answers
6k 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
0answers
81 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
1answer
71 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
1answer
4k 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
2answers
124 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
0answers
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 ...
6
votes
2answers
11k 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 ...
1
vote
0answers
553 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 (...
1
vote
0answers
1k 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
2answers
940 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
0answers
430 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 ...
1
vote
1answer
8k 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
1answer
6k 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
0answers
3k 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 ...
0
votes
1answer
292 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
0answers
5k 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
0answers
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 ...
1
vote
3answers
440 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
1answer
272 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
1answer
565 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
0answers
1k 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 ...
5
votes
0answers
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
0answers
161 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....
1
vote
0answers
357 views

IIS 7 configuration does not lead to expected performances/thread count

I have a Windows Server 2008 R2 server running some web services through IIS 7. The web services run in integration mode with .NET Framework 2.0. The web services communicate with each other and with ...
4
votes
0answers
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 ...
1
vote
0answers
554 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 ...
1
vote
1answer
7k views

MariaDB / MySQL using a lot of threads / memory

I've been setting up a new VPS and wanted to try out MariaDB. I'm using MariaDB 10.0.1, which as far as I understand it is the equivalent of MySQL 5.6. Has the thread handling of threads changed ...
3
votes
2answers
1k views

My linux server “Number of processes created” and “Context switches” are growing incredibly fast

I have a strange behaviour in my server :-/. Is a OpenVZ VPS (I think is OpenVZ, because /proc/user_beancounters exists and df -h returns /dev/simfs drive. Also ifconfig returns venet0). When I do cat ...
1
vote
0answers
259 views

Apache serving Samba share leads to poor performance?

This is a question about a problematic interaction between Apache and Samba. Our Linux server (on a private intranet) mounts a Windows share, which is physically thousands of miles away, and serves ...
0
votes
1answer
767 views

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 ...
3
votes
2answers
7k views

How do I increase the queue length in IIS's default app pool via command line?

I have a farm of IIS servers running Exchange and we are getting this error in HTTP Error: HTTP/1.1 POST /ews/exchange.asmx - 1 Connection_Dropped_List_Full MSExchangeServicesAppPool The advice from ...
2
votes
1answer
11k views

Limit the number of max threads used by a process in linux kernel

I think I have found something that I need from the Linux kernel that is not currently implemented. I need a way to set a max thread limit per process. Is this possible?