Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

ejb pool stays at 20 threads?

View: New views
4 Messages — Rating Filter:   Alert me  

ejb pool stays at 20 threads?

by ericp56 () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

from config.xml:

    <module name="org.apache.geronimo.configs/openejb/2.1.3/car">
        <gbean name="EJBNetworkService">
            <attribute name="port">${OpenEJBPort + PortOffset}</attribute>
            <attribute name="host">${ServerHostname}</attribute>
        </gbean>
        <gbean name="DefaultStatelessContainer">
            <attribute name="properties">
             PoolSize=100
             StrictPooling=true

            </attribute>
        </gbean>

    </module>

I stopped Geronimo, edited xml, and started xml.  

I look in our log files that log ejb activity.  Part of the logging includes the thread/object.  so:

tail -n 1000 /opt/geronimo/var/log/CsgAccountService.log | grep -oe "ejbd [0-9]*" | sort -u

returns:
ejbd 0
ejbd 1
ejbd 10
ejbd 11
ejbd 12
ejbd 13
ejbd 14
ejbd 15
ejbd 16
ejbd 17
ejbd 18
ejbd 19
ejbd 2
ejbd 3
ejbd 4
ejbd 5
ejbd 6
ejbd 7
ejbd 8
ejbd 9

only 20 threads being used!  This is the same as before I modified config.xml.  

I also tried  an openejb.xml file in my project, but it didn't help:
<?xml version="1.0" encoding="UTF-8"?>
<Container id="Foo" type="STATELESS">
PoolSize=50
StrictPooling=false
</Container>



Any suggestions?

Thanks,

Eric

Re: ejb pool stays at 20 threads?

by David Blevins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Eric,

The PoolSize number you adjusted is for the stateless container and  
affects the number of stateless bean instances we will instantiate and  
keep ready for method invocations.  You want to adjust the  
EJBNetworkService 'threads' attribute as shown below:


On Sep 19, 2009, at 11:04 AM, ericp56 wrote:

>
> from config.xml:
>
>    <module name="org.apache.geronimo.configs/openejb/2.1.3/car">
>        <gbean name="EJBNetworkService">
>            <attribute name="port">${OpenEJBPort + PortOffset}</
> attribute>
>            <attribute name="host">${ServerHostname}</attribute>
             <attribute name="threads">100</attribute>
>        </gbean>
>        <gbean name="DefaultStatelessContainer">
>            <attribute name="properties">
>             PoolSize=100
>             StrictPooling=true
>            </attribute>
>        </gbean>
>    </module>

And just as a general note, the performance of the remote client code  
in the coming Geronimo 2.2 is *way* faster.  If you're able to  
upgrade, I'd check it out.

-David


RE: ejb pool stays at 20 threads?

by Russell Collins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When will Geronimo 2.2 be released?


Russell Collins
Sr. Software Engineer
McLane Advanced Technology

"Do or do not, there is no try." - Yoda

-----Original Message-----
From: David Blevins [mailto:david.blevins@...]
Sent: Monday, September 28, 2009 3:05 PM
To: user@...
Subject: Re: ejb pool stays at 20 threads?

Hi Eric,

The PoolSize number you adjusted is for the stateless container and  
affects the number of stateless bean instances we will instantiate and  
keep ready for method invocations.  You want to adjust the  
EJBNetworkService 'threads' attribute as shown below:


On Sep 19, 2009, at 11:04 AM, ericp56 wrote:

>
> from config.xml:
>
>    <module name="org.apache.geronimo.configs/openejb/2.1.3/car">
>        <gbean name="EJBNetworkService">
>            <attribute name="port">${OpenEJBPort + PortOffset}</
> attribute>
>            <attribute name="host">${ServerHostname}</attribute>
             <attribute name="threads">100</attribute>
>        </gbean>
>        <gbean name="DefaultStatelessContainer">
>            <attribute name="properties">
>             PoolSize=100
>             StrictPooling=true
>            </attribute>
>        </gbean>
>    </module>

And just as a general note, the performance of the remote client code  
in the coming Geronimo 2.2 is *way* faster.  If you're able to  
upgrade, I'd check it out.

-David


Re: ejb pool stays at 20 threads?

by djencks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 29, 2009, at 7:23 AM, Russell Collins wrote:

> When will Geronimo 2.2 be released?

I was hoping for last week :-)

What's left:

make sure latest openejb works and release it  (no code changes  
expected)
confirm small problems in activemq are fixed and release it ("any day  
now", they say)
confirm recent tranql changes are working ok and release it (not sure  
if we've located a jdbc expert to review our list of non-fatal  
SQLCodes.  What we have is an improvement, so we can release it if we  
can't find an expert)
mark all the open 2.2 jira issues "wish list" unless someone fixes  
them real quick.

check the legal goo.

start trying to build a release.

So, I hope next week we'll be able to vote.

thanks
david jencks

>
>
> Russell Collins
> Sr. Software Engineer
> McLane Advanced Technology
>
> "Do or do not, there is no try." - Yoda
>
> -----Original Message-----
> From: David Blevins [mailto:david.blevins@...]
> Sent: Monday, September 28, 2009 3:05 PM
> To: user@...
> Subject: Re: ejb pool stays at 20 threads?
>
> Hi Eric,
>
> The PoolSize number you adjusted is for the stateless container and
> affects the number of stateless bean instances we will instantiate and
> keep ready for method invocations.  You want to adjust the
> EJBNetworkService 'threads' attribute as shown below:
>
>
> On Sep 19, 2009, at 11:04 AM, ericp56 wrote:
>
>>
>> from config.xml:
>>
>>   <module name="org.apache.geronimo.configs/openejb/2.1.3/car">
>>       <gbean name="EJBNetworkService">
>>           <attribute name="port">${OpenEJBPort + PortOffset}</
>> attribute>
>>           <attribute name="host">${ServerHostname}</attribute>
>             <attribute name="threads">100</attribute>
>>       </gbean>
>>       <gbean name="DefaultStatelessContainer">
>>           <attribute name="properties">
>>            PoolSize=100
>>            StrictPooling=true
>>           </attribute>
>>       </gbean>
>>   </module>
>
> And just as a general note, the performance of the remote client code
> in the coming Geronimo 2.2 is *way* faster.  If you're able to
> upgrade, I'd check it out.
>
> -David
>