TOMEE-2770

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

TOMEE-2770

COURTAULT Francois
Hello everyone,

Could you look at https://issues.apache.org/jira/browse/TOMEE-2770 please ?
This is blocking for us :(

Best Regards.



Reply | Threaded
Open this post in threaded view
|

Re: TOMEE-2770

jgallimore
There was some work done in this area between TomEE 8.0.0 and 8.0.1, so if
you haven't yet tried 8.0.1, please do. In terms of what you're seeing, am
I correct in thinking that if you invoke a business method on an EJB with
this code may times:

*jmsContext*.createProducer().send(*messageQueue*, *jmsContext*
.createTextMessage(*"Test"*));

in a heap dump you see a number of producers that aren't being cleared up?

Jon

On Mon, Feb 10, 2020 at 8:20 AM COURTAULT Francois <
[hidden email]> wrote:

> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770 please
> ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: TOMEE-2770

COURTAULT Francois
Hello Jonathan,

Tried with TomEE 8.0.0 and 8.0.1: same issue.

"Am I correct in thinking that if you invoke a business method on an EJB with this code may times:
*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));"
Yes.

"in a heap dump you see a number of producers that aren't being cleared up?"
Not in a heap sump: looking at the MBeans using jconsole  

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:[hidden email]]
Sent: lundi 10 février 2020 12:46
To: [hidden email]
Cc: [hidden email]
Subject: Re: TOMEE-2770

There was some work done in this area between TomEE 8.0.0 and 8.0.1, so if you haven't yet tried 8.0.1, please do. In terms of what you're seeing, am I correct in thinking that if you invoke a business method on an EJB with this code may times:

*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));

in a heap dump you see a number of producers that aren't being cleared up?

Jon

On Mon, Feb 10, 2020 at 8:20 AM COURTAULT Francois < [hidden email]> wrote:

> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770 
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

AW: TOMEE-2770

Zowalla, Richard
Hi Francois,

it would be beneficial, if you could provide a little sample project, which can reproduce the issue.

With this in hands, it will be much easier to dig into this issue.

Best
Richard
________________________________________
Von: COURTAULT Francois [[hidden email]]
Gesendet: Montag, 10. Februar 2020 12:51
An: [hidden email]
Cc: [hidden email]
Betreff: RE: TOMEE-2770

Hello Jonathan,

Tried with TomEE 8.0.0 and 8.0.1: same issue.

"Am I correct in thinking that if you invoke a business method on an EJB with this code may times:
*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));"
Yes.

"in a heap dump you see a number of producers that aren't being cleared up?"
Not in a heap sump: looking at the MBeans using jconsole

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:[hidden email]]
Sent: lundi 10 février 2020 12:46
To: [hidden email]
Cc: [hidden email]
Subject: Re: TOMEE-2770

There was some work done in this area between TomEE 8.0.0 and 8.0.1, so if you haven't yet tried 8.0.1, please do. In terms of what you're seeing, am I correct in thinking that if you invoke a business method on an EJB with this code may times:

*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));

in a heap dump you see a number of producers that aren't being cleared up?

Jon

On Mon, Feb 10, 2020 at 8:20 AM COURTAULT Francois < [hidden email]> wrote:

> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: TOMEE-2770

COURTAULT Francois
Hello Richard,

It's really easy to reproduce.

Just this class to be deploy in a war:

@Stateless
@Path("v1/notifications")
public class NotificationResource {

    public static final String QUEUE_NAME = "jms/myQueue";

    @Resource(name = QUEUE_NAME)
    private Queue messageQueue;

    @Inject
    private JMSContext jmsContext;

    @GET
    @Path("downloadInfo")
    public Response postDownloadInfoJMS() {
            jmsContext.createProducer().send(messageQueue, jmsContext.createTextMessage("Test"));
            System.out.println("Message sent !");
        return Response.accepted().build();
    }
}

And a beans.xml with bean-discovery-mode="all".

Then perform several GET calls with a browser and you will the number of dynamicProducer increase (1 per call).

Best Regards.

-----Original Message-----
From: Zowalla, Richard [mailto:[hidden email]]
Sent: lundi 10 février 2020 20:14
To: [hidden email]
Cc: [hidden email]
Subject: AW: TOMEE-2770

Hi Francois,

it would be beneficial, if you could provide a little sample project, which can reproduce the issue.

With this in hands, it will be much easier to dig into this issue.

Best
Richard
________________________________________
Von: COURTAULT Francois [[hidden email]]
Gesendet: Montag, 10. Februar 2020 12:51
An: [hidden email]
Cc: [hidden email]
Betreff: RE: TOMEE-2770

Hello Jonathan,

Tried with TomEE 8.0.0 and 8.0.1: same issue.

"Am I correct in thinking that if you invoke a business method on an EJB with this code may times:
*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));"
Yes.

"in a heap dump you see a number of producers that aren't being cleared up?"
Not in a heap sump: looking at the MBeans using jconsole

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:[hidden email]]
Sent: lundi 10 février 2020 12:46
To: [hidden email]
Cc: [hidden email]
Subject: Re: TOMEE-2770

There was some work done in this area between TomEE 8.0.0 and 8.0.1, so if you haven't yet tried 8.0.1, please do. In terms of what you're seeing, am I correct in thinking that if you invoke a business method on an EJB with this code may times:

*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));

in a heap dump you see a number of producers that aren't being cleared up?

Jon

On Mon, Feb 10, 2020 at 8:20 AM COURTAULT Francois < [hidden email]> wrote:

> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: TOMEE-2770

COURTAULT Francois
Hello Richard,

Have you been able to reproduce the issue ?

Best Regards.

-----Original Message-----
From: COURTAULT Francois
Sent: mardi 11 février 2020 10:42
To: [hidden email]
Cc: [hidden email]
Subject: RE: TOMEE-2770

Hello Richard,

It's really easy to reproduce.

Just this class to be deploy in a war:

@Stateless
@Path("v1/notifications")
public class NotificationResource {

    public static final String QUEUE_NAME = "jms/myQueue";

    @Resource(name = QUEUE_NAME)
    private Queue messageQueue;

    @Inject
    private JMSContext jmsContext;

    @GET
    @Path("downloadInfo")
    public Response postDownloadInfoJMS() {
            jmsContext.createProducer().send(messageQueue, jmsContext.createTextMessage("Test"));
            System.out.println("Message sent !");
        return Response.accepted().build();
    }
}

And a beans.xml with bean-discovery-mode="all".

Then perform several GET calls with a browser and you will the number of dynamicProducer increase (1 per call).

Best Regards.

-----Original Message-----
From: Zowalla, Richard [mailto:[hidden email]]
Sent: lundi 10 février 2020 20:14
To: [hidden email]
Cc: [hidden email]
Subject: AW: TOMEE-2770

Hi Francois,

it would be beneficial, if you could provide a little sample project, which can reproduce the issue.

With this in hands, it will be much easier to dig into this issue.

Best
Richard
________________________________________
Von: COURTAULT Francois [[hidden email]]
Gesendet: Montag, 10. Februar 2020 12:51
An: [hidden email]
Cc: [hidden email]
Betreff: RE: TOMEE-2770

Hello Jonathan,

Tried with TomEE 8.0.0 and 8.0.1: same issue.

"Am I correct in thinking that if you invoke a business method on an EJB with this code may times:
*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));"
Yes.

"in a heap dump you see a number of producers that aren't being cleared up?"
Not in a heap sump: looking at the MBeans using jconsole

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:[hidden email]]
Sent: lundi 10 février 2020 12:46
To: [hidden email]
Cc: [hidden email]
Subject: Re: TOMEE-2770

There was some work done in this area between TomEE 8.0.0 and 8.0.1, so if you haven't yet tried 8.0.1, please do. In terms of what you're seeing, am I correct in thinking that if you invoke a business method on an EJB with this code may times:

*jmsContext*.createProducer().send(*messageQueue*, *jmsContext* .createTextMessage(*"Test"*));

in a heap dump you see a number of producers that aren't being cleared up?

Jon

On Mon, Feb 10, 2020 at 8:20 AM COURTAULT Francois < [hidden email]> wrote:

> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>