1

Test user concurrency issues

asked 2013-08-05 10:34:09 +0800

lijun gravatar image lijun
21 2

updated 2013-08-05 11:48:45 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

I am writer a page.

<window border="none" height="100%" width="100%">
    <grid height="100%" width="100%">
        <rows>
            <attribute name="onCreate">
            int rowNum = 1000;
            int colNum = 20;
            Row row = null;
            Cell cell = null;
            Label label = null;
            for(int i=0;i&lt;rowNum;i++){
                row = new Row();
                self.appendChild(row);
                for(int j=0;j&lt;colNum;j++){
                    cell = new Cell();
                    row.appendChild(cell);
                    label = new Label("数据["+i+","+j+"]");
                    cell.appendChild(label);
                }
            }
            </attribute>    
        </rows>
    </grid>
</window>

Then I test concurrent users of this page in zksandbox-6.5.1. This is the result from LoadRunner-11.

users / average response time(s)

1 / 1.849

10 / 7.303

20 / 12.921

30 / 22.64

Why is the average response time for this page increments so terrible?

Please help me!

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-08-06 02:01:35 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

updated 2013-08-06 11:04:53 +0800

Your test code has 2 main issue that cause bad performance. 1. you used zscript (it is slow, and very slow when current access), you should use native Java+MVC, 2. you created a huge among of component at once, you should consider to use Model+Render to render the grid, and ZK will load the component only when it is needed (ROD: load on demand). Please read http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips, there provides more detail.

link publish delete flag offensive edit

Comments

Can you give me a contact number? E-mail or QQ is ok!

lijun ( 2013-08-06 02:47:46 +0800 )edit

I try it by MVC,but the result is almost becomes!Whether the configuration to enhance the performance!

lijun ( 2013-08-06 03:32:26 +0800 )edit

you crate all the components(1000x20) by yourself directly without optimal., please use Model and enable ROD if possible.

dennis ( 2013-08-06 03:55:02 +0800 )edit

I read this website of http://www.zkoss.org/resource/file/report/ZK_JSF_Performance_Report_2012.pdf.Are (http://www.zkoss.org/resource/file/report/ZKJSFPerformanceReport2012.pdf.Are) these data falsified?Who can give an explanation?

lijun ( 2013-08-06 08:53:21 +0800 )edit

falsified? before you say this, please read some document and tune you page first, here are some link, http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Performance%20Tips

dennis ( 2013-08-06 09:40:18 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
3 followers

RSS

Stats

Asked: 2013-08-05 10:34:09 +0800

Seen: 21 times

Last updated: Aug 06 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More