users@glassfish.java.net

Re: performance issues glassfish ejb3.0

From: <glassfish_at_javadesktop.org>
Date: Sun, 24 Feb 2008 13:25:25 PST

I think you're going to need to provide a little more information about what you're testing and how you're going about it.

I just did an absurd micro benchmark and I got an absurd number.

[code]
    public double sbtest() {
        long start = System.currentTimeMillis();
        for(int i = 0; i < 10000000; i++) {
            newSessionBean.hello();
        }
        long end = System.currentTimeMillis();
        return 10000000.0 / ((end - start)/1000);
    }
[/code]

That's from a local servlet in the EAR calling a do nothing SB method, and I get 357K TPS. This just helps demonstrate that local session bean calls aren't horribly expensive.

So, what are you testing and how are you testing it?
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=260637