on 07-18-2007 1:52 PM
Hi everyone,
We are experiencing performance problems in our WebDynpro for Java (2004s, sp10) application.
The application consist of a main view with three different popup windows (IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowHist);). In one of the windows, window_A, we have one table (13 columns, maybe maximum 15 rows), one checkbox (which have an onToggle event), a few buttons, a couple of input fields and five DropDownByIndex (of which three of them have onSelect events) with no more than 5 rows.
When for example the checkbox is used, the actual event takes about 3 seconds (one button is to be enabled, i.e. not much code or no complicated code is generated). The dropdowns take even longer, no complicated code either. In fact, every time a method is called, the application is very slow even though nothing more than making gui elements visible is done.
We have had timestamps on every method involved (beginning of method:
long startTime = System.currentTimeMillis(); / end of method:
System.err.println("Execution took: " + (System.currentTimeMillis() - startTime));) and the code itself is very fast.
We have stripped down the gui elements to a minimum (no transparent containers, no extra groups etc. etc.) - no performance improvements at all.
There is no big amount of data handled in the application and no complicated java code. We are running out of ideas what can actually cause this bad performance. Anyone got an idea what is happening?!
Thanks a lot in advance,
Sophie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kanwalpreet,
Thank you for your reply. The tutorial you suggested is the method I am actually using, but instead of using the method createWindow() - which is deprecated in 2004s - I´m using createModalWindow().
It looks like SAP has included a "feature" in the new version: every time you call an event etc. the ModalWindow regenerate all HTML code...?! I suspect this is the reason for the performance problems we experience. The question is, are there any other alternatives besides navigating to a new view?
Many thanks,
/Sophie
Hi Sophie,
I think the performance is connected to that you wrap the view in a ModalWindow window. Instead of open up a ModalWindow, please try to just navigate to a new view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin,
I have no add-ins installed and there´s no script checker that I am aware of (I get the same result on any computer). When using "sap-wd-showInfo=X" in the browser I get the following result:
Browser:1765(parsing: 15, HTML: 1297, JSBefore: 0, JSAfter 453) J2EE: 22 Back-End: 0 Estimated Response Size: 142KB.
Rasmus,
After navigating to a new view instead of opening a ModalWindow the performance actually increases. It seams that ModalWindow is not an option when you want to use popup windows? What options do I have if I need to use popups?
Thanks,
/Sophie
You might install a tool like HttpWatch and check the HTTP traffic. How large is the response size?
Regarding browser performance: Have you installed browser add-ins like developer toolbar? Is there maybe a script checker running in the background?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sophie,
This blog may help u to find out the exact problem.
<a href="/people/bertram.ganz/blog/2006/11/21/analyzing-web-dynpro-java-application-performance-with-a-simple-url-parameter:///people/bertram.ganz/blog/2006/11/21/analyzing-web-dynpro-java-application-performance-with-a-simple-url-parameter
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sumit,
Thank you very much for your reply! I´ve checked the blog you suggested. After using the "sap-wd-showInfo=X" for logging the application I found out that it was the HTML rendering that took most of the time but even the JSAfter was pretty slow. Do you (or anyone else for that matter) know how to make this more effective?
Thanks,
/Sophie
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.