Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Slow RAP application start on Tomcat(RAP speed)
Slow RAP application start on Tomcat [message #652283] Thu, 03 February 2011 13:19 Go to next message
Jan is currently offline JanFriend
Messages: 7
Registered: February 2011
Location: Plzen, Czech Republic
Junior Member
Hello,

we are working on RAP application (web ordering system for bakery company) and first tests provided on Apache/Tomcat have showed very long starting times. It takes 15-30s to login dialog appears and than again over 30s for start of application.
Working with started application is then on the whole acceptable, but those start times are not ...

Running appl directly from Eclipse enviroment is faster - 5-10s delay. Running on local installed Tomcat on my PC shows better times too (network ?).

Have you any idea what can be reason of this problem ?
How can / should be RAP appl optimised ?

Thank you very much for ideas
Jan

Re: Slow RAP application start on Tomcat [message #652688 is a reply to message #652283] Sat, 05 February 2011 10:31 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Jan,

do you run time-consuming operations in a bundle activator that delays
the startup? Do you register a lot of resources? Initialize your data
model? Have you tried to include the rap.demo bundle and compare the
start time of your application and those of the demo application? If the
demo is ok then the problem must be in your application itself. If you
can't identify the problem by trying, the only way is to connect a
profiler to your JVM and to look for the hot spots.

Best regards, Ralf


--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Slow RAP application start on Tomcat [message #656466 is a reply to message #652688] Fri, 25 February 2011 19:20 Go to previous messageGo to next message
Jan is currently offline JanFriend
Messages: 7
Registered: February 2011
Location: Plzen, Czech Republic
Junior Member
Ralf Sternberg wrote on Sat, 05 February 2011 05:31
Hi Jan,

do you run time-consuming operations in a bundle activator that delays the startup? Do you register a lot of resources? Initialize your data model?


Hi Ralf, thank you for your response.

In first phase (from start to login window appears there is no time consuming operation. In second phase - after login - application GUI and data model are generated, but if runned directly from Eclipse IDE or on Tomcat server running on local network, start times are acceptable. I have also tried to trace actions as reading data from DB, creating GUI components and I was not able to find some block of our code which would be problematic slow. Instead it looks like delay occurs somewhere in core.

Analyse during testing our appl running on Tomcat over internet shows very low server (processor) load (only about 1-2%) but jammed internet connection. I was suprised by this. I have not assumed so much traffic and so significant slow-down ..

I think over to try JBoss instead Tomcat. Do you think .it can improve speed or it would be the same and it is not worth to try ?

Thank you

[Updated on: Fri, 25 February 2011 19:23]

Report message to a moderator

Re: Slow RAP application start on Tomcat [message #656528 is a reply to message #656466] Sat, 26 February 2011 10:27 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

usually, the network traffic caused by a RAP application is frequent but
small, because RAP sends only small chunks of data. If your application
causes a high network load, I'd suggest that you install a browser add-on
like Firebug and identify which requests / responses cause this high
traffic. It can be caused by a bad application design such as filling a
Table or Tree with lots of items without using SWT.VIRTUAL.

Switching from Tomcat to JBoss will not decrease the network traffic.

Regards, Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Update ui for OSGi-EventAdmin-Event
Next Topic:PDF, JPG, DOC etc.
Goto Forum:
  


Current Time: Fri Apr 19 12:06:30 GMT 2024

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

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

Back to the top