PrimePush in Cloud (JBoss EAP + JGroups)

UI Components for JSF
Post Reply
mick_g
Posts: 5
Joined: 21 Mar 2014, 15:55

21 Mar 2014, 16:09

How to configure primefaces 4.0 in order to use JGroupsBroadcaster.
We are using two AS - JBoss EAP 6.1 in cluster. We have chat application which works when user and consultant are logged in one nodes, but when they are in diffrent, the messages between nodes are not propagated.

Log from node 1:

Code: Select all

[Server:cluster-server-1] 13:28:13,873 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 
[Server:cluster-server-1] 13:28:13,877 WARN  [org.atmosphere.cpr.DefaultAsyncSupportResolver] (ServerService Thread Pool -- 103) Found multiple containers, please specify which one to use: org.atmosphere.container.JBossWebCometSupport, org.atmosphere.container.TomcatCometSupport,  until you do, Atmosphere will use:class org.atmosphere.container.JBossWebCometSupport
[Server:cluster-server-1] 13:28:13,880 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installing Default AtmosphereInterceptor
[Server:cluster-server-1] 13:28:13,881 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.DefaultHeadersInterceptor : Default Response's Headers Interceptor
[Server:cluster-server-1] 13:28:13,882 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
[Server:cluster-server-1] 13:28:13,883 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
[Server:cluster-server-1] 13:28:13,884 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
[Server:cluster-server-1] 13:28:13,884 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
[Server:cluster-server-1] 13:28:13,885 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
[Server:cluster-server-1] 13:28:13,886 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 	org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
[Server:cluster-server-1] 13:28:13,886 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Using BroadcasterCache: org.atmosphere.cache.HeaderBroadcasterCache
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Broadcaster Polling Wait Time 100
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Shared ExecutorService supported: true
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) HttpSession supported: false
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Using Broadcaster: org.atmosphere.plugin.jgroups.JGroupsBroadcaster
[Server:cluster-server-1] 13:28:13,890 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Atmosphere is using async support: org.atmosphere.container.JBossWebCometSupport running under container: JBoss Web/7.2.0.Final-redhat-1
[Server:cluster-server-1] 13:28:13,891 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Atmosphere Framework 2.0.3 started.
[Server:cluster-server-1] 13:28:13,891 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) 
[Server:cluster-server-1] 
[Server:cluster-server-1] 	For Atmosphere Framework Commercial Support, visit 
[Server:cluster-server-1] 	http://www.async-io.org/ or send an email to support@async-io.org
[Server:cluster-server-1] 
[Server:cluster-server-1] 13:28:13,894 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installed AtmosphereInterceptor Atmosphere LifeCycle with priority AFTER_DEFAULT 
[Server:cluster-server-1] 13:28:13,897 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT 
[Server:cluster-server-1] 13:28:13,900 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installed AtmosphereInterceptor  Track Message Size Interceptor using | with priority AFTER_DEFAULT 
[Server:cluster-server-1] 13:28:13,901 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 103) Installed AtmosphereInterceptor UUID Tracking Interceptor with priority AFTER_DEFAULT 
[Server:cluster-server-1] 13:28:13,938 INFO  [org.atmosphere.plugin.jgroups.JGroupsBroadcaster] (Atmosphere-Shared-DispatchOp-0) Starting Atmosphere JGroups Clustering support with group name /*
[Server:cluster-server-1] 13:28:14,256 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) send buffer of socket java.net.DatagramSocket@7e1a2570 was set to 640KB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
[Server:cluster-server-1] 13:28:14,257 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) receive buffer of socket java.net.DatagramSocket@7e1a2570 was set to 20MB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
[Server:cluster-server-1] 13:28:14,258 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) send buffer of socket java.net.MulticastSocket@66901cbd was set to 640KB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
[Server:cluster-server-1] 13:28:14,258 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) receive buffer of socket java.net.MulticastSocket@66901cbd was set to 25MB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
[Server:cluster-server-1] 13:28:14,266 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) 
[Server:cluster-server-1] 13:28:14,267 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) -------------------------------------------------------------------
[Server:cluster-server-1] 13:28:14,267 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) GMS: address=xxx-1-1751, cluster=/*, physical address=192.168.27.83:35440
[Server:cluster-server-1] 13:28:14,268 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) -------------------------------------------------------------------
Log from node 2:

Code: Select all

Server:cluster-server-2] 13:28:11,431 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 
[Server:cluster-server-2] 13:28:11,435 WARN  [org.atmosphere.cpr.DefaultAsyncSupportResolver] (ServerService Thread Pool -- 98) Found multiple containers, please specify which one to use: org.atmosphere.container.JBossWebCometSupport, org.atmosphere.container.TomcatCometSupport,  until you do, Atmosphere will use:class org.atmosphere.container.JBossWebCometSupport
[Server:cluster-server-2] 13:28:11,438 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installing Default AtmosphereInterceptor
[Server:cluster-server-2] 13:28:11,439 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.DefaultHeadersInterceptor : Default Response's Headers Interceptor
[Server:cluster-server-2] 13:28:11,441 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
[Server:cluster-server-2] 13:28:11,442 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
[Server:cluster-server-2] 13:28:11,443 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
[Server:cluster-server-2] 13:28:11,443 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
[Server:cluster-server-2] 13:28:11,444 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
[Server:cluster-server-2] 13:28:11,445 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 	org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
[Server:cluster-server-2] 13:28:11,445 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
[Server:cluster-server-2] 13:28:11,449 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Using BroadcasterCache: org.atmosphere.cache.HeaderBroadcasterCache
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Broadcaster Polling Wait Time 100
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Shared ExecutorService supported: true
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) HttpSession supported: false
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Using Broadcaster: org.atmosphere.plugin.jgroups.JGroupsBroadcaster
[Server:cluster-server-2] 13:28:11,450 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Atmosphere is using async support: org.atmosphere.container.JBossWebCometSupport running under container: JBoss Web/7.2.0.Final-redhat-1
[Server:cluster-server-2] 13:28:11,453 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Atmosphere Framework 2.0.3 started.
[Server:cluster-server-2] 13:28:11,453 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) 
[Server:cluster-server-2] 
[Server:cluster-server-2] 	For Atmosphere Framework Commercial Support, visit 
[Server:cluster-server-2] 	http://www.async-io.org/ or send an email to support@async-io.org
[Server:cluster-server-2] 
[Server:cluster-server-2] 13:28:11,455 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installed AtmosphereInterceptor Atmosphere LifeCycle with priority AFTER_DEFAULT 
[Server:cluster-server-2] 13:28:11,462 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT 
[Server:cluster-server-2] 13:28:11,464 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installed AtmosphereInterceptor  Track Message Size Interceptor using | with priority AFTER_DEFAULT 
[Server:cluster-server-2] 13:28:11,465 INFO  [org.atmosphere.cpr.AtmosphereFramework] (ServerService Thread Pool -- 98) Installed AtmosphereInterceptor UUID Tracking Interceptor with priority AFTER_DEFAULT 
[Server:cluster-server-2] 13:28:11,504 INFO  [org.atmosphere.plugin.jgroups.JGroupsBroadcaster] (Atmosphere-Shared-DispatchOp-0) Starting Atmosphere JGroups Clustering support with group name /*
[Server:cluster-server-2] 13:28:13,690 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) send buffer of socket java.net.DatagramSocket@5c0433dc was set to 640KB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
[Server:cluster-server-2] 13:28:13,692 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) receive buffer of socket java.net.DatagramSocket@5c0433dc was set to 20MB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
[Server:cluster-server-2] 13:28:13,692 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) send buffer of socket java.net.MulticastSocket@17e8dfb6 was set to 640KB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
[Server:cluster-server-2] 13:28:13,692 WARN  [org.jgroups.protocols.UDP] (Atmosphere-Shared-DispatchOp-0) receive buffer of socket java.net.MulticastSocket@17e8dfb6 was set to 25MB, but the OS only allocated 229,38KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
[Server:cluster-server-2] 13:28:13,708 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) 
[Server:cluster-server-2] 13:28:13,709 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) -------------------------------------------------------------------
[Server:cluster-server-2] 13:28:13,709 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) GMS: address=xxx-2-41369, cluster=/*, physical address=192.168.27.82:41795
[Server:cluster-server-2] 13:28:13,710 INFO  [stdout] (Atmosphere-Shared-DispatchOp-0) -------------------------------------------------------------------

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

22 Mar 2014, 11:47

Read the following, click on all URLs, and read those, too, and reply here with a sample of your JGroups and your PrimeFaces config, please.

Problem with Apache 2 proxy

Also, search this forum for PUSH_SERVER_URL, and read every topic in the search results.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

mick_g
Posts: 5
Joined: 21 Mar 2014, 15:55

07 Apr 2014, 13:07

We used Hazelcast in cluster and it works.

undead_geo
Posts: 1
Joined: 02 Jul 2012, 14:27

06 Jun 2014, 07:55

mick_g wrote:We used Hazelcast in cluster and it works.
Hi mick,

I might be ignorant, but could you please share what are the steps you use to have hazelcast works with primepush?

Thanks in advance,

anton

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests