[jboss-jira] [JBoss JIRA] Commented: (JBAS-5345) New instance of resources injected on every onMessage MDB call

Martin Husted Hartvig (JIRA) jira-events at lists.jboss.org
Wed Sep 24 04:15:17 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBAS-5345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12430942#action_12430942 ] 

Martin Husted Hartvig commented on JBAS-5345:
---------------------------------------------

I'm having the same problem and tried to use the StrictMaxPool to handle it. Using JProfiler indeed shows that the bound on how many MDB that may be alive is correct, but what is problematic is that the number of resource instances keeps increasing, just like Dok Tora describes.

Using 4.2.2. GA, I looked in the changelog of 4.2.3. GA and it doesn't look as you made changes regarding this issue.

As I see it the provided workaround doesn't solve the problem. 

We have this running in production and memory is slowly been eaten which, if we don't restart JBoss from time to time, ends with an OutOfMemoryError. I would very much like to see this issue reopened.

> New instance of resources injected on every onMessage MDB call
> --------------------------------------------------------------
>
>                 Key: JBAS-5345
>                 URL: https://jira.jboss.org/jira/browse/JBAS-5345
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB3
>    Affects Versions: JBossAS-4.0.5.GA, JBossAS-4.2.1.GA, JBossAS-4.2.2.GA
>         Environment: Java version: 1.5.0_13,Apple Computer, Inc. 
> OS-System: Mac OS X 10.4.11,i386 
> also
> Java version: 1.5.0_07,Sun Microsystems Inc.
> Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
> OS-System: Windows 2003 5.2,x86
>            Reporter: Dok Tora
>            Assignee: Carlo de Wolf
>         Attachments: CalculatorMDB.java, EJB3Trail.ear, EJB3Trail.ear, RecordManagerBean.java
>
>
> A new instance of an injected bean is created every time the onMessage() method of an MDB is called.
> Details with sample code modifications to EJBTrailBlazer for reproduction can be found here:
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=132331
> Problem was replicated in 4.0.5.GA, 4.2.1 and 4.2.2 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list