You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2020/02/10 11:46:23 UTC
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 <
francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770 please
> ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
Re: TOMEE-2770
Posted by "Zowalla, Richard" <ri...@hs-heilbronn.de>.
Hi Francois,
thanks for the minimal example.
Due to my other duties, I wasn't able to dig into the issue.
Best,Richard
Am Mittwoch, den 12.02.2020, 08:51 +0000 schrieb 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:42To: users@tomee.apache.orgCc:
> dev@tomee.apache.orgSubject: 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:
> richard.zowalla@hs-heilbronn.de] Sent: lundi 10 février 2020 20:14To:
> users@tomee.apache.orgCc:
> dev@tomee.apache.orgSubject: 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.
> BestRichard________________________________________Von: COURTAULT
> Francois [francois.courtault@thalesgroup.com]Gesendet: Montag, 10.
> Februar 2020 12:51An: users@tomee.apache.orgCc:
> dev@tomee.apache.orgBetreff: 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:
> jonathan.gallimore@gmail.com]Sent: lundi 10 février 2020 12:46To:
> users@tomee.apache.orgCc: dev@tomee.apache.orgSubject: 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 <
> francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
> Could you look at
> https://issues.apache.org/jira/browse/TOMEE-2770please ?This is
> blocking for us :(
> Best Regards.
>
>
>
Re: TOMEE-2770
Posted by "Zowalla, Richard" <ri...@hs-heilbronn.de>.
Hi Francois,
thanks for the minimal example.
Due to my other duties, I wasn't able to dig into the issue.
Best,Richard
Am Mittwoch, den 12.02.2020, 08:51 +0000 schrieb 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:42To: users@tomee.apache.orgCc:
> dev@tomee.apache.orgSubject: 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:
> richard.zowalla@hs-heilbronn.de] Sent: lundi 10 février 2020 20:14To:
> users@tomee.apache.orgCc:
> dev@tomee.apache.orgSubject: 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.
> BestRichard________________________________________Von: COURTAULT
> Francois [francois.courtault@thalesgroup.com]Gesendet: Montag, 10.
> Februar 2020 12:51An: users@tomee.apache.orgCc:
> dev@tomee.apache.orgBetreff: 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:
> jonathan.gallimore@gmail.com]Sent: lundi 10 février 2020 12:46To:
> users@tomee.apache.orgCc: dev@tomee.apache.orgSubject: 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 <
> francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
> Could you look at
> https://issues.apache.org/jira/browse/TOMEE-2770please ?This is
> blocking for us :(
> Best Regards.
>
>
>
RE: TOMEE-2770
Posted by COURTAULT Francois <fr...@thalesgroup.com>.
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: users@tomee.apache.org
Cc: dev@tomee.apache.org
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:richard.zowalla@hs-heilbronn.de]
Sent: lundi 10 février 2020 20:14
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 [francois.courtault@thalesgroup.com]
Gesendet: Montag, 10. Februar 2020 12:51
An: users@tomee.apache.org
Cc: dev@tomee.apache.org
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:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 12:46
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 < francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
RE: TOMEE-2770
Posted by COURTAULT Francois <fr...@thalesgroup.com>.
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:richard.zowalla@hs-heilbronn.de]
Sent: lundi 10 février 2020 20:14
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 [francois.courtault@thalesgroup.com]
Gesendet: Montag, 10. Februar 2020 12:51
An: users@tomee.apache.org
Cc: dev@tomee.apache.org
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:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 12:46
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 < francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
AW: TOMEE-2770
Posted by "Zowalla, Richard" <ri...@hs-heilbronn.de>.
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 [francois.courtault@thalesgroup.com]
Gesendet: Montag, 10. Februar 2020 12:51
An: users@tomee.apache.org
Cc: dev@tomee.apache.org
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:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 12:46
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 < francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
AW: TOMEE-2770
Posted by "Zowalla, Richard" <ri...@hs-heilbronn.de>.
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 [francois.courtault@thalesgroup.com]
Gesendet: Montag, 10. Februar 2020 12:51
An: users@tomee.apache.org
Cc: dev@tomee.apache.org
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:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 12:46
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 < francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>
RE: TOMEE-2770
Posted by COURTAULT Francois <fr...@thalesgroup.com>.
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:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 12:46
To: users@tomee.apache.org
Cc: dev@tomee.apache.org
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 < francois.courtault@thalesgroup.com> wrote:
> Hello everyone,
>
> Could you look at https://issues.apache.org/jira/browse/TOMEE-2770
> please ?
> This is blocking for us :(
>
> Best Regards.
>
>
>
>