Thread dump containing threads in RUNNABLE state with no stackHow does Keep-alive work with ThreadPoolExecutor?“implements Runnable” vs “extends Thread” in JavaTomcat webapp error - application started thread [AWT-Windows] but has failed to stop it - memory leak?Orphaned Threads In Java Thread DumpBTrace Script to Kill Java Virtual Machine Threadprogram is not ending smoothly in multithreadingLog4j email sending on error hanging java thread applicationCannot launch SQL Developer 4.0.1Threads waiting but why?Tomcat stop working: there are no ajp available
I want to write a blog post building upon someone else's paper, how can I properly cite/credit them?
What's the difference between "ricochet" and "bounce"?
Justification of physical currency in an interstellar civilization?
why it is 2>&1 and not 2>>&1 to append to a log file
A problem with Hebrew and English underlined text
Why is the blank symbol not considered part of the input alphabet of a Turing machine?
What does the copyright in a dissertation protect exactly?
How is it believable that Euron could so easily pull off this ambush?
Bash prompt takes only the first word of a hostname before the dot
Is it safe to keep the GPU on 100% utilization for a very long time?
My parents are Afghan
Translation of "invincible independence"
Good introductory book to type theory?
In a series of books, what happens after the coming of age?
Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?
How do I give a darkroom course without negs from the attendees?
How can I draw a rectangle around venn Diagrams?
If quadruped mammals evolve to become bipedal will their breast or nipple change position?
How to make a kid's bike easier to pedal
Did Ham the Chimp follow commands, or did he just randomly push levers?
Are modes in jazz primarily a melody thing?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Was there a dinosaur-counter in the original Jurassic Park movie?
What detail can Hubble see on Mars?
Thread dump containing threads in RUNNABLE state with no stack
How does Keep-alive work with ThreadPoolExecutor?“implements Runnable” vs “extends Thread” in JavaTomcat webapp error - application started thread [AWT-Windows] but has failed to stop it - memory leak?Orphaned Threads In Java Thread DumpBTrace Script to Kill Java Virtual Machine Threadprogram is not ending smoothly in multithreadingLog4j email sending on error hanging java thread applicationCannot launch SQL Developer 4.0.1Threads waiting but why?Tomcat stop working: there are no ajp available
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Doing a thread dump on a highly loaded application with CPU, I see a lot of threads in this state:
"ajp-executor-threads - XXXXXX" prio=10 tid=0x00002b04b8b33801 nid=0x5327 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
What is really strange to me is that there is no stacktrace at all and that total number of ajp-thread is higher than max-threads (below) configured
It is happening with an application running on:
- JBoss 7
- Java 7u75
- Redhat 5.11
- Running on VMWare Enterprise / vSphere 5.5
Configuration of executor is:
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<bounded-queue-thread-pool name="ajp-executor">
<core-threads count="32"/>
<queue-length count="1"/>
<max-threads count="300"/>
<keepalive-time time="5" unit="seconds"/>
</bounded-queue-thread-pool>
</subsystem>
Note that load is very high as on this host:
CPU reaches 70%
Load is at 4 (== number of vCPU)
Note these threads are not idle threads as an idle thread has this stack trace:
"Reference Handler" daemon prio=5 tid=0x00007f92cb00e800 nid=0x3703 in Object.wait() [0x000000012057e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
java multithreading performance jboss7.x virtual-machine
add a comment |
Doing a thread dump on a highly loaded application with CPU, I see a lot of threads in this state:
"ajp-executor-threads - XXXXXX" prio=10 tid=0x00002b04b8b33801 nid=0x5327 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
What is really strange to me is that there is no stacktrace at all and that total number of ajp-thread is higher than max-threads (below) configured
It is happening with an application running on:
- JBoss 7
- Java 7u75
- Redhat 5.11
- Running on VMWare Enterprise / vSphere 5.5
Configuration of executor is:
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<bounded-queue-thread-pool name="ajp-executor">
<core-threads count="32"/>
<queue-length count="1"/>
<max-threads count="300"/>
<keepalive-time time="5" unit="seconds"/>
</bounded-queue-thread-pool>
</subsystem>
Note that load is very high as on this host:
CPU reaches 70%
Load is at 4 (== number of vCPU)
Note these threads are not idle threads as an idle thread has this stack trace:
"Reference Handler" daemon prio=5 tid=0x00007f92cb00e800 nid=0x3703 in Object.wait() [0x000000012057e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
java multithreading performance jboss7.x virtual-machine
add a comment |
Doing a thread dump on a highly loaded application with CPU, I see a lot of threads in this state:
"ajp-executor-threads - XXXXXX" prio=10 tid=0x00002b04b8b33801 nid=0x5327 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
What is really strange to me is that there is no stacktrace at all and that total number of ajp-thread is higher than max-threads (below) configured
It is happening with an application running on:
- JBoss 7
- Java 7u75
- Redhat 5.11
- Running on VMWare Enterprise / vSphere 5.5
Configuration of executor is:
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<bounded-queue-thread-pool name="ajp-executor">
<core-threads count="32"/>
<queue-length count="1"/>
<max-threads count="300"/>
<keepalive-time time="5" unit="seconds"/>
</bounded-queue-thread-pool>
</subsystem>
Note that load is very high as on this host:
CPU reaches 70%
Load is at 4 (== number of vCPU)
Note these threads are not idle threads as an idle thread has this stack trace:
"Reference Handler" daemon prio=5 tid=0x00007f92cb00e800 nid=0x3703 in Object.wait() [0x000000012057e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
java multithreading performance jboss7.x virtual-machine
Doing a thread dump on a highly loaded application with CPU, I see a lot of threads in this state:
"ajp-executor-threads - XXXXXX" prio=10 tid=0x00002b04b8b33801 nid=0x5327 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
What is really strange to me is that there is no stacktrace at all and that total number of ajp-thread is higher than max-threads (below) configured
It is happening with an application running on:
- JBoss 7
- Java 7u75
- Redhat 5.11
- Running on VMWare Enterprise / vSphere 5.5
Configuration of executor is:
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<bounded-queue-thread-pool name="ajp-executor">
<core-threads count="32"/>
<queue-length count="1"/>
<max-threads count="300"/>
<keepalive-time time="5" unit="seconds"/>
</bounded-queue-thread-pool>
</subsystem>
Note that load is very high as on this host:
CPU reaches 70%
Load is at 4 (== number of vCPU)
Note these threads are not idle threads as an idle thread has this stack trace:
"Reference Handler" daemon prio=5 tid=0x00007f92cb00e800 nid=0x3703 in Object.wait() [0x000000012057e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x00000007aaa84470> (a java.lang.ref.Reference$Lock)
java multithreading performance jboss7.x virtual-machine
java multithreading performance jboss7.x virtual-machine
edited Jul 2 '15 at 21:11
pmpm
asked Jul 2 '15 at 19:32
pmpmpmpm
4351415
4351415
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
After further analysis I found that issue is due to remote debugging being enabled through:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=XXXXXXX
This explains these strange empty stack traces in thread dump.
add a comment |
Those are your idle threads in the AJP executor connection pool. You have set the core threads to 32 meaning that the pool will always maintain 32 threads in the connection pool, although they may be idle. With your configuration you could see up to 300 threads but any thread over 32 will only wait 5 seconds before dying and being removed from the connection pool.
As for you CPU load, I doubt its in any way related to these idle connection pool threads.
See John Skeet's answer here for some more info on connection pools and keep alive: https://stackoverflow.com/a/10379348/91866
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31193108%2fthread-dump-containing-threads-in-runnable-state-with-no-stack%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
After further analysis I found that issue is due to remote debugging being enabled through:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=XXXXXXX
This explains these strange empty stack traces in thread dump.
add a comment |
After further analysis I found that issue is due to remote debugging being enabled through:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=XXXXXXX
This explains these strange empty stack traces in thread dump.
add a comment |
After further analysis I found that issue is due to remote debugging being enabled through:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=XXXXXXX
This explains these strange empty stack traces in thread dump.
After further analysis I found that issue is due to remote debugging being enabled through:
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=XXXXXXX
This explains these strange empty stack traces in thread dump.
edited Jul 2 '15 at 20:53
answered Jul 2 '15 at 19:58
pmpmpmpm
4351415
4351415
add a comment |
add a comment |
Those are your idle threads in the AJP executor connection pool. You have set the core threads to 32 meaning that the pool will always maintain 32 threads in the connection pool, although they may be idle. With your configuration you could see up to 300 threads but any thread over 32 will only wait 5 seconds before dying and being removed from the connection pool.
As for you CPU load, I doubt its in any way related to these idle connection pool threads.
See John Skeet's answer here for some more info on connection pools and keep alive: https://stackoverflow.com/a/10379348/91866
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
add a comment |
Those are your idle threads in the AJP executor connection pool. You have set the core threads to 32 meaning that the pool will always maintain 32 threads in the connection pool, although they may be idle. With your configuration you could see up to 300 threads but any thread over 32 will only wait 5 seconds before dying and being removed from the connection pool.
As for you CPU load, I doubt its in any way related to these idle connection pool threads.
See John Skeet's answer here for some more info on connection pools and keep alive: https://stackoverflow.com/a/10379348/91866
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
add a comment |
Those are your idle threads in the AJP executor connection pool. You have set the core threads to 32 meaning that the pool will always maintain 32 threads in the connection pool, although they may be idle. With your configuration you could see up to 300 threads but any thread over 32 will only wait 5 seconds before dying and being removed from the connection pool.
As for you CPU load, I doubt its in any way related to these idle connection pool threads.
See John Skeet's answer here for some more info on connection pools and keep alive: https://stackoverflow.com/a/10379348/91866
Those are your idle threads in the AJP executor connection pool. You have set the core threads to 32 meaning that the pool will always maintain 32 threads in the connection pool, although they may be idle. With your configuration you could see up to 300 threads but any thread over 32 will only wait 5 seconds before dying and being removed from the connection pool.
As for you CPU load, I doubt its in any way related to these idle connection pool threads.
See John Skeet's answer here for some more info on connection pools and keep alive: https://stackoverflow.com/a/10379348/91866
edited May 23 '17 at 12:06
Community♦
11
11
answered Jul 2 '15 at 19:41
Ian DallasIan Dallas
6,290175075
6,290175075
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
add a comment |
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
1
1
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
I don't think idle threads in the AJP Executor connection pool have this kind of stacktrace
– pmpm
Jul 2 '15 at 19:57
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
Did you post a stack trace? You posted a dump of the threads you had. Idle threads wouldn't have a stack trace yet so not really sure what you were looking for. Was my answer inaccurate given your question? The thread you listed is an idle ajp executor thread and you would see a lot of them given your configuration. If you were expecting to someone to just triage your performance problem then your question was very unclear and likely would not be answered here on StackOverflow.
– Ian Dallas
Jul 2 '15 at 20:13
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
first thanks for your answer. Then sorry but in my question , I posted a stacktrace from the thread dump. And I confirm to you it is not an idle thread. I posted question because I had really no idea after investigating for some time and then I found by myself and shared the answer. Anyway thanks again and sorry for not saying so the first time.
– pmpm
Jul 2 '15 at 20:51
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
I downvoted your answer as it is wrong to me in this particular case, but I upvoted some of your answers that look ok to me. Have a good day
– pmpm
Jul 2 '15 at 21:01
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31193108%2fthread-dump-containing-threads-in-runnable-state-with-no-stack%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown