-
15. Re: SeamTest Performance, is there a way to speed up?
liudan2005 Feb 15, 2006 12:26 PM (in response to liudan2005)jdk1.5.0_06
and this happens on all our computers. I've tested it on 3 computers and get about same result. -
16. Re: SeamTest Performance, is there a way to speed up?
liudan2005 Feb 17, 2006 9:32 AM (in response to liudan2005)Has anyone got the same problem as I do? I do need a solution for this situation.
Need of redeploy our project to jboss for debug really slows down our development process. Do you have any suggestions, Gavin?
Thanks for your help -
17. Re: SeamTest Performance, is there a way to speed up?
gavin.king Feb 17, 2006 10:14 AM (in response to liudan2005)Debug mode *always* slows down the JVM.
The fact that things get slower each time you run the test is incredibly wierd and not really something that I can give you much advice on. I have never seen such a thing.
On my box, running the test suite for the booking demo app (which involves bootstrapping the app and EJB3 container 3 times) takes 13 seconds (so about 4.5 secs on average).
It is of course significantly slower in debug mode.
What you should try to do is group a few tests together into the same SeamTest test class to minimize the number of times the container restarts.
Note also that you should use *unit tests* (which do not require a container) as much as is practicable instead of integration tests (which do). -
18. Re: SeamTest Performance, is there a way to speed up?
liudan2005 Feb 17, 2006 11:56 AM (in response to liudan2005)Thanks Gavin.
Ejb3, JSF and Seam are all new stuffs to us. So we spend most of time for "trying" things instead of "testing". It happens a lot that we wanna see the result for changes we've just made. That's why we need to debug our code that often.
I understand that embeded container is just a type of in-container integration test. It's not optimised for things like we do. That's why a lot of mock frameworks are out there.
I'm just thinking it might be good to have a mock framework for seam. Maybe i should say this is a feature request.
Anyway, meantime, we' ll have to keep using jboss remote debug during our learning stage. -
19. Re: SeamTest Performance, is there a way to speed up?
gavin.king Feb 17, 2006 12:33 PM (in response to liudan2005)Anyway, meantime, we' ll have to keep using jboss remote debug during our learning stage.
oh yes, certainly, that is what I do. You have the JBoss IDE eclipse plugin, right? -
20. Re: SeamTest Performance, is there a way to speed up?
liudan2005 Feb 17, 2006 12:59 PM (in response to liudan2005)Yes, I've got the IDE. What I usually do is enable this in run.bat
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
and run jboss outside eclipse.
in my eclipse project, I used seam ant script to deploy my project. Also set up a config for remote debug application at port 8787. It usually takes about 6 seconds to deploy and initialise stuffs this way. -
21. Re: SeamTest Performance, is there a way to speed up?
gavin.king Feb 17, 2006 1:02 PM (in response to liudan2005)Well, OK, I guess. I just launch JBoss from inside eclipse...