Thanks for the info. I should have stated my problem:
running tomcat and ejboss on nt or linux after a couple minutes of usage
there are 300 _new_ threads between them, both new ones on tomcat (the ejb
client) and also on ejboss.
This is obviously a big problem so we figure it's something we did (or
didn't do) . My question is how to fix this ;).
It seems on the client that ctx.lookup() and serviceHome.create() create
new threads that never clean up.
I was thinking pools might help, but I cannot quite figure out what is
excatly happening. Or explicitely adding a finalizer somewhere, etc.
Thanks again,
Kenneth Topp
On Fri, 21 Jul 2000, marc fleury wrote:
> sorry, just saw "on the client"...
>
> yes the thread count is normal on the client as well it uses pools of
> "byteArray" handlers so that the memory footprint is less and the VM holds
> the load. RMH legacy.
>
> marc
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kenneth Topp
> > Sent: Thursday, July 20, 2000 11:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: [jBoss-User] threads are created during ejb on the client?
> >
> >
> >
> > Pardon me, but I have a question about an old (1.0) release of jboss ;)
> >
> > in a block like this (accessing a jboss server 1.0)
> >
> >
> > System.out.println("ThreadCount: " + Thread.activeCount() );
> > Properties prop = new Properties();
> > prop.put( Context.INITIAL_CONTEXT_FACTORY,
> > "org.jnp.interfaces.NamingContextFactory" );
> > prop.put( Context.URL_PKG_PREFIXES,"org.jnp.interface");
> > prop.put( Context.PROVIDER_URL, "127.0.0.1" );
> > Context ctx = new InitialContext( prop );
> > ServiceHome serviceHome = (ServiceHome) ctx.lookup("ejb.service");
> > System.out.println("ThreadCount: " + Thread.activeCount() );
> > Service service = serviceHome.create();
> > service.remove();
> > System.out.println("ThreadCount: " + Thread.activeCount() );
> >
> > I get:
> >
> > 1
> > 2
> > 3
> >
> > meaning more threads are created. Any ideas? Is it time to move to 2.0?
> >
> > Also, note that the ejboss server is increasing thread count as well.
> >
> > Thanks,
> >
> > Kenneth Topp
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]