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

GWT Atmosphere number of Threads #1657

Closed
alsila opened this issue Jul 8, 2014 · 2 comments
Closed

GWT Atmosphere number of Threads #1657

alsila opened this issue Jul 8, 2014 · 2 comments

Comments

@alsila
Copy link

alsila commented Jul 8, 2014

Hi

I have a GWT 2.0 chat app running well but the numberOfThreads is too high after broadcasting messages. Really what I have is one "Atmosphere-Shared-Asyng-Op" thread by message sent.

PART OF THE SERVER CODE CAUSING THE PROBLEM

// Send to the origin
String broadcastId = myclass.getUserId(); // Get Private User
broadCaster = DefaultBroadcasterFactory.getDefault().lookup(broadcastId, false);
if (broadCaster1 = null)
{
DefaultBroadcasterFactory.getDefault().lookup(broadcastId).broadcast(msg);
}

ATMOSPHERE.XML
AtmosphereServlet
AtmosphereServlet
org.atmosphere.cpr.AtmosphereServlet

    <init-param>
        <param-name>org.atmosphere.cpr.AtmosphereInterceptor</param-name>
        <param-value>org.atmosphere.gwt20.server.GwtRpcInterceptor,
                    org.atmosphere.interceptor.HeartbeatInterceptor
        </param-value>
    </init-param>

    <init-param>
        <param-name>org.atmosphere.interceptor.HeartbeatInterceptor.heartbeatFrequencyInSeconds</param-name>
        <param-value>30</param-value>
    </init-param>

    <init-param>
        <param-name>org.atmosphere.cpr.broadcaster.shareableThreadPool</param-name>
        <param-value>true</param-value>
    </init-param>

    <init-param>
        <param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
        <param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    <async-supported>true</async-supported>
</servlet>

Every time I run the code server a thread named "Atmosphere-Shared-Asyng-Op" is created.

Could someone help me? Tx

@jfarcand
Copy link
Member

jfarcand commented Jul 8, 2014

Use the mailing list for question

@jfarcand jfarcand closed this as completed Jul 8, 2014
@alsila
Copy link
Author

alsila commented Jul 8, 2014

Hi Jean François

What mailing list? Google? Tx

Albert

El 08/07/2014, a las 16:27, "Jeanfrancois Arcand" notifications@github.com escribió:

Closed #1657.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants