BTW, what is "the command pattern" ? --hermann
----- Original Message ----- From: "Herve Tchepannou" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 6:41 PM Subject: [JBoss-user] JBoss/Linux and threading > 1) I've started an application with JBoss on a PII 300, Linux RH6.0 > My application had: > - 5 business object as CMP Entity beans > - 4 Stateless Session beans > - 4 MDB > - 100+ test cases > After running the test cases, I was monitoring the number of thread > spawned by jboss:: > 1srt time: 150 threads > 2nd time: ~350 threads > 3rd time: ~500 threads > very quickly, my system was running out of threads :-( > > > 2) I redesign the application using the command pattern: > Ma application has > - 5 business objects as standard java classes > - 5 DAO classes for managing the persistent with straight JDBC calls > - 30 commands for executing all system actions, build as standard > java classes > - 1 command executor as Stateless JavaBean > - 100+ test cases > After running the test cases, I obtained the following results: > 1st time: 3 threads > 2nd time: 2 threads > 3rd time: 2 threads > etc > > 3) I add into my application 4 MDB for async processing (deleting files, > sending mails etc) and > a rerun my test cases, here are the results that I obtains: > 1st time: 79 threads > 2ns time: 79 threads > 3rd time: 70 threads > > > CONCLUSION: > Think twice before using all EJB features! > > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user