[ 
http://issues.apache.org/jira/browse/DIRMINA-197?page=comments#action_12372886 
] 

Emmanuel Lecharny commented on DIRMINA-197:
-------------------------------------------

I've switched to the last version of MINA from trunks, and the problem seems to 
be solved. However, now, what I get is something that is also embarrasing :
if I launch my test with 2000 bind/unbind sequence, I have a total freeze of 
the server from time to time, with 223 threads, of which 221 are in state 
BLOCKED.

here is an excerpt of the stack from jstack (all other threads are also blocked 
in one of those two conditions): 

Thread 4031: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - org.apache.mina.util.BlockingQueue.waitForNewItem() @bci=14, line=55 
(Interpreted frame)
 - org.apache.mina.filter.ThreadPoolFilter$Worker.fetchBuffer() @bci=16, 
line=435 (Interpreted frame)
 - org.apache.mina.filter.ThreadPoolFilter$Worker.run() @bci=11, line=410 
(Interpreted frame)

Thread 4030: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.apache.mina.filter.ThreadPoolFilter$Worker.waitForPromotion() @bci=66, 
line=534 (Interpreted frame)
 - org.apache.mina.filter.ThreadPoolFilter$Worker.run() @bci=1, line=407 
(Interpreted frame)

What I don't get is why do we create so much threads ? My injector is just 
sequencially do a bind, and immediatly do an unbind, and close the connection.

> CPU exhaustion on heavy bind/unbind
> -----------------------------------
>
>          Key: DIRMINA-197
>          URL: http://issues.apache.org/jira/browse/DIRMINA-197
>      Project: Directory MINA
>         Type: Bug

>     Reporter: Emmanuel Lecharny
>     Priority: Blocker
>  Attachments: stack.txt
>
> Still doing smoke tests...
> So now, I have a program that bind and unbind one thousand times to ADS. 
> Everything works just fine, but now, ADS is trying to transform my CPU to a 
> popcorn machine. It uses 75% of my CPU just doing nothing seious. I have 
> created a thread dump with jstack, attached.
> Any help welcomed !

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to