Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Webcontainer thread pool and SefverPush requests
Webcontainer thread pool and SefverPush requests [message #1368231] Tue, 20 May 2014 03:51 Go to next message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
Hello, community.

Thread pool can be configured in WebSphere by it's minimum and maximum size (http://pic.dhe.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Ftprf_tuneappserv.html). This pool proceed all http requests. So, I'm wondered in question: if the thread pool size is limited by (f.e.) 40 threads, these all threads will be occupied by serverpush (uicallback in older RAP versions) request from 40 users. In this case we do not have available thread to proceed non-serverpush request and have a big contention for the webcontainer thread pool. It leads to slow application response. Is anybody wondered in this question too? And how this problem can be resolved? Increase cluster nodes number is only solution? Using the half of threadpool size for serverpush lifecycle is very wasteful.

Best regards,
Yury.
Re: Webcontainer thread pool and SefverPush requests [message #1368571 is a reply to message #1368231] Tue, 20 May 2014 07:19 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2334
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
usually, ServerPush is not active all the time. We recommend to activate
the ServerPushonly only when it's really needed - perform UI update from
a background thread (Job) and deactivate it afterwards.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Webcontainer thread pool and SefverPush requests [message #1368636 is a reply to message #1368571] Tue, 20 May 2014 07:54 Go to previous messageGo to next message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
Hello, Ivan.

Unfortunately, far-far in the past (from RAP 1.2 I guess) we activate callback mechanism in org.eclipse.rap.rwt.application.EntryPoint.createUI() and do not care about future activating it for background threads Sad
Anyway, thank you for answer! We will think about solution: deactivating callback and using polling (https://wiki.eclipse.org/RAP/UI_Callback) or somehow else.

Best regards,
Yury.
Re: Webcontainer thread pool and SefverPush requests [message #1408056 is a reply to message #1368636] Thu, 14 August 2014 06:01 Go to previous message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
UPD:

Not only we have to use active serverpush all the time: https://www.eclipse.org/forums/index.php/t/781474/ Smile

We decided to add async servlet to proceed serverpush requests. It is registered, of course, if the Servlet 3.0 spec is supported by web container. If the sending serverpush request to async servlet is failed - it will be send again to the original ServerPush servlet. May be this solution will be usefull for somebody.

Best regards,
Yury.
Previous Topic:Deployement of RAP application on Apache Tomcat
Next Topic:JFace Data Binding and SWT.Modify
Goto Forum:
  


Current Time: Mon Feb 24 14:09:29 GMT 2020

Powered by FUDForum. Page generated in 0.03832 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top