Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[runtime] thread leak in DefaultBroadcasterFactory #766

Closed
nite23 opened this issue Dec 12, 2012 · 3 comments
Closed

[runtime] thread leak in DefaultBroadcasterFactory #766

nite23 opened this issue Dec 12, 2012 · 3 comments
Labels

Comments

@nite23
Copy link
Contributor

nite23 commented Dec 12, 2012

Might be related to #716 #717

I use atmosphere with shared thread pools and IDLE_DESTROY policy.
If I call a following function
DefaultBroadcasterFactory.getDefault().lookup(DefaultBroadcaster.class, id, true)
concurrently, at higher rate, it spawns thread pools containing a single thread, which, sometimes, remain waiting indefinitely. Thread count grows at a constant rate until the VM runs out of memory.

It might be caused by a race condition, because when I synchronize the broadcaster lookup like this, the issue is not present, and the thread count stabilizes around 1000

@jfarcand
Copy link
Member

Which version are you using?

@nite23
Copy link
Contributor Author

nite23 commented Dec 12, 2012

1.1 snapshot

@jfarcand
Copy link
Member

Thanks. Can you gist your test case? Thanks!

jfarcand pushed a commit that referenced this issue Jan 14, 2013
jfarcand added a commit that referenced this issue Jan 14, 2013
jfarcand added a commit that referenced this issue Jan 14, 2013
jfarcand added a commit that referenced this issue Jan 14, 2013
jfarcand added a commit that referenced this issue Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants