You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2020/02/10 17:20:36 UTC

Re: TomEE microprofile memory consumption

> I can provide you some memory dumps if you want .

Some details on how to reproduce with a small sample would be helpful.
Memory dumps tend to be quite large and contain confidential information,
so we prefer to not exchange those on the list.

Jon

On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois <
francois.courtault@thalesgroup.com> wrote:

> Hello everyone,
>
> We have 2 microservices: one using TomEE Plus and the other using TomEE MP.
> These 2 µS don't use at all OpenTracing features: no @Trace ....
> We have no memory issue with the µS using TomEE Plus. This is strange
> because TomEE Plus  somehow is a superset of TomEE MP.
>
> The issue is due to the usage of
> org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we don't
> know what trigger that usage.
> We also see a lot of org.apache.tomcat.util.threads.TaskThread (don't know
> where it comes from) which uses the above ScopeImpl.
>
> I can provide you some memory dumps if you want .
>
> Is there a way to disable opentracing in TomEE MP ?
>
> Best Regards.
>
>
>
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello Jonathan,

JIRA ticket created: TOMEE-2771
 
If you can answer to the following question(already asked in the ticket) : Could you confirm that if we haven't this entry in the system.properties or set to none then all MP specifications are disabled et runtime ? 
It should be fine. 

Best Regards.

-----Original Message-----
From: COURTAULT Francois [mailto:francois.courtault@thalesgroup.com] 
Sent: mercredi 12 février 2020 09:51
To: users@tomee.apache.org
Subject: RE: TomEE microprofile memory consumption

Hello Jonathan

I will do so (Jira).
BTW, is this property tomee.mp.scan documented somewhere ?

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
Sent: mardi 11 février 2020 19:25
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

Awesome, thanks for the feedback. We'd still want to fix the actual issue.
If you get time, if you can file a JIRA, that would be great.

Jon

On Tue, Feb 11, 2020 at 6:01 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> We did the test (remove tomee.mp.scan = all  entry in
> system.properties) with TomEE MP and it solves the issue we have:  a 
> lot of opentracing objects created.
> We don't have this issue (a lot of opentracing objects created) in 
> TomEE Plus because this entry doesn't exist in system.properties !!!
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois
> Sent: mardi 11 février 2020 10:32
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan,
>
> As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
> So I did a comparison of the 2 flavors: lib + conf
>
> The only difference I have seen is in the system.properties where I 
> have the line below in TomEE MP and not this one in TomEE Plus !
> This could explain. We will try to remove this line to see if it 
> solves the memory issue we have and will let you know.
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 23:14
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> Allow me start over, if I may.
>
> What are you seeing in your memory dumps that's a concern - a large 
> number of ScopeImpl objects? Could you provide some screenshots from 
> VisualVM for us? I'd be interested in object counts, and whether there 
> are references, and if so, what they are.
>
> The TaskThread comes from Tomcat. It being present doesn't sound like 
> an issue, but I appreciate you've asked because you have some concern
> - can you provide some more context?
>
> > You didn't answer to this question: Is there a way to disable 
> > opentracing
> in TomEE MP ? Is it possible ?
>
> Its a setting in the Geronimo OpenTracing project:
> https://github.com/apache/geronimo-opentracing. Try setting 
> geronimo.opentracing.filter.active to false (an entry in 
> conf/system.properties should do the trick).
>
> Jon
>
> On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois < 
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello Jonathan,
> >
> > Quite complex for us what you ask for.
> >
> > BTW, have you any idea about this
> > org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> > Where could it come from ?
> >
> > You didn't answer to this question: Is there a way to disable 
> > opentracing in TomEE MP ? Is it possible ?
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > Sent: lundi 10 février 2020 18:21
> > To: users@tomee.apache.org
> > Subject: Re: TomEE microprofile memory consumption
> >
> > > I can provide you some memory dumps if you want .
> >
> > Some details on how to reproduce with a small sample would be helpful.
> > Memory dumps tend to be quite large and contain confidential 
> > information, so we prefer to not exchange those on the list.
> >
> > Jon
> >
> > On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < 
> > francois.courtault@thalesgroup.com> wrote:
> >
> > > Hello everyone,
> > >
> > > We have 2 microservices: one using TomEE Plus and the other using 
> > > TomEE
> > MP.
> > > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > > We have no memory issue with the µS using TomEE Plus. This is 
> > > strange because TomEE Plus  somehow is a superset of TomEE MP.
> > >
> > > The issue is due to the usage of
> > > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> > > don't know what trigger that usage.
> > > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > > (don't know where it comes from) which uses the above ScopeImpl.
> > >
> > > I can provide you some memory dumps if you want .
> > >
> > > Is there a way to disable opentracing in TomEE MP ?
> > >
> > > Best Regards.
> > >
> > >
> > >
> > >
> >
>

Re: TomEE microprofile memory consumption

Posted by Jonathan Gallimore <jo...@gmail.com>.
Quick note - I'm aware of this question and I couple of others you've
asked, and I'm definitely not ignoring them. I don't know the answer off
the top of my head and will need to check code and I have a long TODO list
- I hope you understand.

If someone else can beat me to answering, that's great, thank you.

Jon

On Mon, Feb 17, 2020 at 9:30 AM COURTAULT Francois <
francois.courtault@thalesgroup.com> wrote:

> Hello,
>
> Is there someone to answer to this question: " Could you confirm that if
> we haven't this entry in the system.properties or set to none then all MP
> specifications are disabled at runtime ? "
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois
> Sent: mercredi 12 février 2020 11:13
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan,
>
> JIRA ticket created: TOMEE-2771
>
> If you can answer to the following question(already asked in the ticket) :
> Could you confirm that if we haven't this entry in the system.properties or
> set to none then all MP specifications are disabled et runtime ?
> It should be fine.
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois [mailto:francois.courtault@thalesgroup.com]
> Sent: mercredi 12 février 2020 09:51
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan
>
> I will do so (Jira).
> BTW, is this property tomee.mp.scan documented somewhere ?
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: mardi 11 février 2020 19:25
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> Awesome, thanks for the feedback. We'd still want to fix the actual issue.
> If you get time, if you can file a JIRA, that would be great.
>
> Jon
>
> On Tue, Feb 11, 2020 at 6:01 PM COURTAULT Francois <
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello Jonathan,
> >
> > We did the test (remove tomee.mp.scan = all  entry in
> > system.properties) with TomEE MP and it solves the issue we have:  a
> > lot of opentracing objects created.
> > We don't have this issue (a lot of opentracing objects created) in
> > TomEE Plus because this entry doesn't exist in system.properties !!!
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: COURTAULT Francois
> > Sent: mardi 11 février 2020 10:32
> > To: users@tomee.apache.org
> > Subject: RE: TomEE microprofile memory consumption
> >
> > Hello Jonathan,
> >
> > As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
> > So I did a comparison of the 2 flavors: lib + conf
> >
> > The only difference I have seen is in the system.properties where I
> > have the line below in TomEE MP and not this one in TomEE Plus !
> > This could explain. We will try to remove this line to see if it
> > solves the memory issue we have and will let you know.
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > Sent: lundi 10 février 2020 23:14
> > To: users@tomee.apache.org
> > Subject: Re: TomEE microprofile memory consumption
> >
> > Allow me start over, if I may.
> >
> > What are you seeing in your memory dumps that's a concern - a large
> > number of ScopeImpl objects? Could you provide some screenshots from
> > VisualVM for us? I'd be interested in object counts, and whether there
> > are references, and if so, what they are.
> >
> > The TaskThread comes from Tomcat. It being present doesn't sound like
> > an issue, but I appreciate you've asked because you have some concern
> > - can you provide some more context?
> >
> > > You didn't answer to this question: Is there a way to disable
> > > opentracing
> > in TomEE MP ? Is it possible ?
> >
> > Its a setting in the Geronimo OpenTracing project:
> > https://github.com/apache/geronimo-opentracing. Try setting
> > geronimo.opentracing.filter.active to false (an entry in
> > conf/system.properties should do the trick).
> >
> > Jon
> >
> > On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois <
> > francois.courtault@thalesgroup.com> wrote:
> >
> > > Hello Jonathan,
> > >
> > > Quite complex for us what you ask for.
> > >
> > > BTW, have you any idea about this
> > > org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> > > Where could it come from ?
> > >
> > > You didn't answer to this question: Is there a way to disable
> > > opentracing in TomEE MP ? Is it possible ?
> > >
> > > Best Regards.
> > >
> > > -----Original Message-----
> > > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > > Sent: lundi 10 février 2020 18:21
> > > To: users@tomee.apache.org
> > > Subject: Re: TomEE microprofile memory consumption
> > >
> > > > I can provide you some memory dumps if you want .
> > >
> > > Some details on how to reproduce with a small sample would be helpful.
> > > Memory dumps tend to be quite large and contain confidential
> > > information, so we prefer to not exchange those on the list.
> > >
> > > Jon
> > >
> > > On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois <
> > > francois.courtault@thalesgroup.com> wrote:
> > >
> > > > Hello everyone,
> > > >
> > > > We have 2 microservices: one using TomEE Plus and the other using
> > > > TomEE
> > > MP.
> > > > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > > > We have no memory issue with the µS using TomEE Plus. This is
> > > > strange because TomEE Plus  somehow is a superset of TomEE MP.
> > > >
> > > > The issue is due to the usage of
> > > > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we
> > > > don't know what trigger that usage.
> > > > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > > > (don't know where it comes from) which uses the above ScopeImpl.
> > > >
> > > > I can provide you some memory dumps if you want .
> > > >
> > > > Is there a way to disable opentracing in TomEE MP ?
> > > >
> > > > Best Regards.
> > > >
> > > >
> > > >
> > > >
> > >
> >
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello,

Is there someone to answer to this question: " Could you confirm that if we haven't this entry in the system.properties or set to none then all MP specifications are disabled at runtime ? "

Best Regards.

-----Original Message-----
From: COURTAULT Francois 
Sent: mercredi 12 février 2020 11:13
To: users@tomee.apache.org
Subject: RE: TomEE microprofile memory consumption

Hello Jonathan,

JIRA ticket created: TOMEE-2771
 
If you can answer to the following question(already asked in the ticket) : Could you confirm that if we haven't this entry in the system.properties or set to none then all MP specifications are disabled et runtime ? 
It should be fine. 

Best Regards.

-----Original Message-----
From: COURTAULT Francois [mailto:francois.courtault@thalesgroup.com]
Sent: mercredi 12 février 2020 09:51
To: users@tomee.apache.org
Subject: RE: TomEE microprofile memory consumption

Hello Jonathan

I will do so (Jira).
BTW, is this property tomee.mp.scan documented somewhere ?

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
Sent: mardi 11 février 2020 19:25
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

Awesome, thanks for the feedback. We'd still want to fix the actual issue.
If you get time, if you can file a JIRA, that would be great.

Jon

On Tue, Feb 11, 2020 at 6:01 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> We did the test (remove tomee.mp.scan = all  entry in
> system.properties) with TomEE MP and it solves the issue we have:  a 
> lot of opentracing objects created.
> We don't have this issue (a lot of opentracing objects created) in 
> TomEE Plus because this entry doesn't exist in system.properties !!!
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois
> Sent: mardi 11 février 2020 10:32
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan,
>
> As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
> So I did a comparison of the 2 flavors: lib + conf
>
> The only difference I have seen is in the system.properties where I 
> have the line below in TomEE MP and not this one in TomEE Plus !
> This could explain. We will try to remove this line to see if it 
> solves the memory issue we have and will let you know.
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 23:14
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> Allow me start over, if I may.
>
> What are you seeing in your memory dumps that's a concern - a large 
> number of ScopeImpl objects? Could you provide some screenshots from 
> VisualVM for us? I'd be interested in object counts, and whether there 
> are references, and if so, what they are.
>
> The TaskThread comes from Tomcat. It being present doesn't sound like 
> an issue, but I appreciate you've asked because you have some concern
> - can you provide some more context?
>
> > You didn't answer to this question: Is there a way to disable 
> > opentracing
> in TomEE MP ? Is it possible ?
>
> Its a setting in the Geronimo OpenTracing project:
> https://github.com/apache/geronimo-opentracing. Try setting 
> geronimo.opentracing.filter.active to false (an entry in 
> conf/system.properties should do the trick).
>
> Jon
>
> On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois < 
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello Jonathan,
> >
> > Quite complex for us what you ask for.
> >
> > BTW, have you any idea about this
> > org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> > Where could it come from ?
> >
> > You didn't answer to this question: Is there a way to disable 
> > opentracing in TomEE MP ? Is it possible ?
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > Sent: lundi 10 février 2020 18:21
> > To: users@tomee.apache.org
> > Subject: Re: TomEE microprofile memory consumption
> >
> > > I can provide you some memory dumps if you want .
> >
> > Some details on how to reproduce with a small sample would be helpful.
> > Memory dumps tend to be quite large and contain confidential 
> > information, so we prefer to not exchange those on the list.
> >
> > Jon
> >
> > On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < 
> > francois.courtault@thalesgroup.com> wrote:
> >
> > > Hello everyone,
> > >
> > > We have 2 microservices: one using TomEE Plus and the other using 
> > > TomEE
> > MP.
> > > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > > We have no memory issue with the µS using TomEE Plus. This is 
> > > strange because TomEE Plus  somehow is a superset of TomEE MP.
> > >
> > > The issue is due to the usage of
> > > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> > > don't know what trigger that usage.
> > > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > > (don't know where it comes from) which uses the above ScopeImpl.
> > >
> > > I can provide you some memory dumps if you want .
> > >
> > > Is there a way to disable opentracing in TomEE MP ?
> > >
> > > Best Regards.
> > >
> > >
> > >
> > >
> >
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello Jonathan

I will do so (Jira).
BTW, is this property tomee.mp.scan documented somewhere ?

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com] 
Sent: mardi 11 février 2020 19:25
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

Awesome, thanks for the feedback. We'd still want to fix the actual issue.
If you get time, if you can file a JIRA, that would be great.

Jon

On Tue, Feb 11, 2020 at 6:01 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> We did the test (remove tomee.mp.scan = all  entry in 
> system.properties) with TomEE MP and it solves the issue we have:  a 
> lot of opentracing objects created.
> We don't have this issue (a lot of opentracing objects created) in 
> TomEE Plus because this entry doesn't exist in system.properties !!!
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois
> Sent: mardi 11 février 2020 10:32
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan,
>
> As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
> So I did a comparison of the 2 flavors: lib + conf
>
> The only difference I have seen is in the system.properties where I 
> have the line below in TomEE MP and not this one in TomEE Plus !
> This could explain. We will try to remove this line to see if it 
> solves the memory issue we have and will let you know.
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 23:14
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> Allow me start over, if I may.
>
> What are you seeing in your memory dumps that's a concern - a large 
> number of ScopeImpl objects? Could you provide some screenshots from 
> VisualVM for us? I'd be interested in object counts, and whether there 
> are references, and if so, what they are.
>
> The TaskThread comes from Tomcat. It being present doesn't sound like 
> an issue, but I appreciate you've asked because you have some concern 
> - can you provide some more context?
>
> > You didn't answer to this question: Is there a way to disable 
> > opentracing
> in TomEE MP ? Is it possible ?
>
> Its a setting in the Geronimo OpenTracing project:
> https://github.com/apache/geronimo-opentracing. Try setting 
> geronimo.opentracing.filter.active to false (an entry in 
> conf/system.properties should do the trick).
>
> Jon
>
> On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois < 
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello Jonathan,
> >
> > Quite complex for us what you ask for.
> >
> > BTW, have you any idea about this
> > org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> > Where could it come from ?
> >
> > You didn't answer to this question: Is there a way to disable 
> > opentracing in TomEE MP ? Is it possible ?
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > Sent: lundi 10 février 2020 18:21
> > To: users@tomee.apache.org
> > Subject: Re: TomEE microprofile memory consumption
> >
> > > I can provide you some memory dumps if you want .
> >
> > Some details on how to reproduce with a small sample would be helpful.
> > Memory dumps tend to be quite large and contain confidential 
> > information, so we prefer to not exchange those on the list.
> >
> > Jon
> >
> > On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < 
> > francois.courtault@thalesgroup.com> wrote:
> >
> > > Hello everyone,
> > >
> > > We have 2 microservices: one using TomEE Plus and the other using 
> > > TomEE
> > MP.
> > > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > > We have no memory issue with the µS using TomEE Plus. This is 
> > > strange because TomEE Plus  somehow is a superset of TomEE MP.
> > >
> > > The issue is due to the usage of
> > > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> > > don't know what trigger that usage.
> > > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > > (don't know where it comes from) which uses the above ScopeImpl.
> > >
> > > I can provide you some memory dumps if you want .
> > >
> > > Is there a way to disable opentracing in TomEE MP ?
> > >
> > > Best Regards.
> > >
> > >
> > >
> > >
> >
>

Re: TomEE microprofile memory consumption

Posted by Jonathan Gallimore <jo...@gmail.com>.
Awesome, thanks for the feedback. We'd still want to fix the actual issue.
If you get time, if you can file a JIRA, that would be great.

Jon

On Tue, Feb 11, 2020 at 6:01 PM COURTAULT Francois <
francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> We did the test (remove tomee.mp.scan = all  entry in system.properties)
> with TomEE MP and it solves the issue we have:  a lot of opentracing
> objects created.
> We don't have this issue (a lot of opentracing objects created) in TomEE
> Plus because this entry doesn't exist in system.properties !!!
>
> Best Regards.
>
> -----Original Message-----
> From: COURTAULT Francois
> Sent: mardi 11 février 2020 10:32
> To: users@tomee.apache.org
> Subject: RE: TomEE microprofile memory consumption
>
> Hello Jonathan,
>
> As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
> So I did a comparison of the 2 flavors: lib + conf
>
> The only difference I have seen is in the system.properties where I have
> the line below in TomEE MP and not this one in TomEE Plus !
> This could explain. We will try to remove this line to see if it solves
> the memory issue we have and will let you know.
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 23:14
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> Allow me start over, if I may.
>
> What are you seeing in your memory dumps that's a concern - a large number
> of ScopeImpl objects? Could you provide some screenshots from VisualVM for
> us? I'd be interested in object counts, and whether there are references,
> and if so, what they are.
>
> The TaskThread comes from Tomcat. It being present doesn't sound like an
> issue, but I appreciate you've asked because you have some concern - can
> you provide some more context?
>
> > You didn't answer to this question: Is there a way to disable
> > opentracing
> in TomEE MP ? Is it possible ?
>
> Its a setting in the Geronimo OpenTracing project:
> https://github.com/apache/geronimo-opentracing. Try setting
> geronimo.opentracing.filter.active to false (an entry in
> conf/system.properties should do the trick).
>
> Jon
>
> On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois <
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello Jonathan,
> >
> > Quite complex for us what you ask for.
> >
> > BTW, have you any idea about this
> > org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> > Where could it come from ?
> >
> > You didn't answer to this question: Is there a way to disable
> > opentracing in TomEE MP ? Is it possible ?
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> > Sent: lundi 10 février 2020 18:21
> > To: users@tomee.apache.org
> > Subject: Re: TomEE microprofile memory consumption
> >
> > > I can provide you some memory dumps if you want .
> >
> > Some details on how to reproduce with a small sample would be helpful.
> > Memory dumps tend to be quite large and contain confidential
> > information, so we prefer to not exchange those on the list.
> >
> > Jon
> >
> > On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois <
> > francois.courtault@thalesgroup.com> wrote:
> >
> > > Hello everyone,
> > >
> > > We have 2 microservices: one using TomEE Plus and the other using
> > > TomEE
> > MP.
> > > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > > We have no memory issue with the µS using TomEE Plus. This is
> > > strange because TomEE Plus  somehow is a superset of TomEE MP.
> > >
> > > The issue is due to the usage of
> > > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we
> > > don't know what trigger that usage.
> > > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > > (don't know where it comes from) which uses the above ScopeImpl.
> > >
> > > I can provide you some memory dumps if you want .
> > >
> > > Is there a way to disable opentracing in TomEE MP ?
> > >
> > > Best Regards.
> > >
> > >
> > >
> > >
> >
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello Jonathan,

We did the test (remove tomee.mp.scan = all  entry in system.properties) with TomEE MP and it solves the issue we have:  a lot of opentracing objects created.
We don't have this issue (a lot of opentracing objects created) in TomEE Plus because this entry doesn't exist in system.properties !!!
  
Best Regards.

-----Original Message-----
From: COURTAULT Francois 
Sent: mardi 11 février 2020 10:32
To: users@tomee.apache.org
Subject: RE: TomEE microprofile memory consumption

Hello Jonathan,

As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
So I did a comparison of the 2 flavors: lib + conf

The only difference I have seen is in the system.properties where I have the line below in TomEE MP and not this one in TomEE Plus !
This could explain. We will try to remove this line to see if it solves the memory issue we have and will let you know.

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
Sent: lundi 10 février 2020 23:14
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

Allow me start over, if I may.

What are you seeing in your memory dumps that's a concern - a large number of ScopeImpl objects? Could you provide some screenshots from VisualVM for us? I'd be interested in object counts, and whether there are references, and if so, what they are.

The TaskThread comes from Tomcat. It being present doesn't sound like an issue, but I appreciate you've asked because you have some concern - can you provide some more context?

> You didn't answer to this question: Is there a way to disable 
> opentracing
in TomEE MP ? Is it possible ?

Its a setting in the Geronimo OpenTracing project:
https://github.com/apache/geronimo-opentracing. Try setting geronimo.opentracing.filter.active to false (an entry in conf/system.properties should do the trick).

Jon

On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> Quite complex for us what you ask for.
>
> BTW, have you any idea about this
> org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> Where could it come from ?
>
> You didn't answer to this question: Is there a way to disable 
> opentracing in TomEE MP ? Is it possible ?
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 18:21
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> > I can provide you some memory dumps if you want .
>
> Some details on how to reproduce with a small sample would be helpful.
> Memory dumps tend to be quite large and contain confidential 
> information, so we prefer to not exchange those on the list.
>
> Jon
>
> On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < 
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello everyone,
> >
> > We have 2 microservices: one using TomEE Plus and the other using 
> > TomEE
> MP.
> > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > We have no memory issue with the µS using TomEE Plus. This is 
> > strange because TomEE Plus  somehow is a superset of TomEE MP.
> >
> > The issue is due to the usage of
> > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> > don't know what trigger that usage.
> > We also see a lot of org.apache.tomcat.util.threads.TaskThread
> > (don't know where it comes from) which uses the above ScopeImpl.
> >
> > I can provide you some memory dumps if you want .
> >
> > Is there a way to disable opentracing in TomEE MP ?
> >
> > Best Regards.
> >
> >
> >
> >
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello Jonathan,

As I have mentioned, we see the issue in TomEE MP but not in TomEE Plus !
So I did a comparison of the 2 flavors: lib + conf

The only difference I have seen is in the system.properties where I have the line below in TomEE MP and not this one in TomEE Plus !
This could explain. We will try to remove this line to see if it solves the memory issue we have and will let you know.

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com] 
Sent: lundi 10 février 2020 23:14
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

Allow me start over, if I may.

What are you seeing in your memory dumps that's a concern - a large number of ScopeImpl objects? Could you provide some screenshots from VisualVM for us? I'd be interested in object counts, and whether there are references, and if so, what they are.

The TaskThread comes from Tomcat. It being present doesn't sound like an issue, but I appreciate you've asked because you have some concern - can you provide some more context?

> You didn't answer to this question: Is there a way to disable 
> opentracing
in TomEE MP ? Is it possible ?

Its a setting in the Geronimo OpenTracing project:
https://github.com/apache/geronimo-opentracing. Try setting geronimo.opentracing.filter.active to false (an entry in conf/system.properties should do the trick).

Jon

On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> Quite complex for us what you ask for.
>
> BTW, have you any idea about this
> org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> Where could it come from ?
>
> You didn't answer to this question: Is there a way to disable 
> opentracing in TomEE MP ? Is it possible ?
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 18:21
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> > I can provide you some memory dumps if you want .
>
> Some details on how to reproduce with a small sample would be helpful.
> Memory dumps tend to be quite large and contain confidential 
> information, so we prefer to not exchange those on the list.
>
> Jon
>
> On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < 
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello everyone,
> >
> > We have 2 microservices: one using TomEE Plus and the other using 
> > TomEE
> MP.
> > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > We have no memory issue with the µS using TomEE Plus. This is 
> > strange because TomEE Plus  somehow is a superset of TomEE MP.
> >
> > The issue is due to the usage of
> > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> > don't know what trigger that usage.
> > We also see a lot of org.apache.tomcat.util.threads.TaskThread 
> > (don't know where it comes from) which uses the above ScopeImpl.
> >
> > I can provide you some memory dumps if you want .
> >
> > Is there a way to disable opentracing in TomEE MP ?
> >
> > Best Regards.
> >
> >
> >
> >
>

Re: TomEE microprofile memory consumption

Posted by Jonathan Gallimore <jo...@gmail.com>.
Allow me start over, if I may.

What are you seeing in your memory dumps that's a concern - a large number
of ScopeImpl objects? Could you provide some screenshots from VisualVM for
us? I'd be interested in object counts, and whether there are references,
and if so, what they are.

The TaskThread comes from Tomcat. It being present doesn't sound like an
issue, but I appreciate you've asked because you have some concern - can
you provide some more context?

> You didn't answer to this question: Is there a way to disable opentracing
in TomEE MP ? Is it possible ?

Its a setting in the Geronimo OpenTracing project:
https://github.com/apache/geronimo-opentracing. Try
setting geronimo.opentracing.filter.active to false (an entry in
conf/system.properties should do the trick).

Jon

On Mon, Feb 10, 2020 at 6:46 PM COURTAULT Francois <
francois.courtault@thalesgroup.com> wrote:

> Hello Jonathan,
>
> Quite complex for us what you ask for.
>
> BTW, have you any idea about this
> org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
> Where could it come from ?
>
> You didn't answer to this question: Is there a way to disable opentracing
> in TomEE MP ? Is it possible ?
>
> Best Regards.
>
> -----Original Message-----
> From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com]
> Sent: lundi 10 février 2020 18:21
> To: users@tomee.apache.org
> Subject: Re: TomEE microprofile memory consumption
>
> > I can provide you some memory dumps if you want .
>
> Some details on how to reproduce with a small sample would be helpful.
> Memory dumps tend to be quite large and contain confidential information,
> so we prefer to not exchange those on the list.
>
> Jon
>
> On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois <
> francois.courtault@thalesgroup.com> wrote:
>
> > Hello everyone,
> >
> > We have 2 microservices: one using TomEE Plus and the other using TomEE
> MP.
> > These 2 µS don't use at all OpenTracing features: no @Trace ....
> > We have no memory issue with the µS using TomEE Plus. This is strange
> > because TomEE Plus  somehow is a superset of TomEE MP.
> >
> > The issue is due to the usage of
> > org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we
> > don't know what trigger that usage.
> > We also see a lot of org.apache.tomcat.util.threads.TaskThread (don't
> > know where it comes from) which uses the above ScopeImpl.
> >
> > I can provide you some memory dumps if you want .
> >
> > Is there a way to disable opentracing in TomEE MP ?
> >
> > Best Regards.
> >
> >
> >
> >
>

RE: TomEE microprofile memory consumption

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello Jonathan,

Quite complex for us what you ask for.

BTW, have you any idea about this org.apache.tomcat.util.threads.TaskThread in the memory dump we have.
Where could it come from ?

You didn't answer to this question: Is there a way to disable opentracing in TomEE MP ? Is it possible ?

Best Regards.

-----Original Message-----
From: Jonathan Gallimore [mailto:jonathan.gallimore@gmail.com] 
Sent: lundi 10 février 2020 18:21
To: users@tomee.apache.org
Subject: Re: TomEE microprofile memory consumption

> I can provide you some memory dumps if you want .

Some details on how to reproduce with a small sample would be helpful.
Memory dumps tend to be quite large and contain confidential information, so we prefer to not exchange those on the list.

Jon

On Mon, Feb 10, 2020 at 5:10 PM COURTAULT Francois < francois.courtault@thalesgroup.com> wrote:

> Hello everyone,
>
> We have 2 microservices: one using TomEE Plus and the other using TomEE MP.
> These 2 µS don't use at all OpenTracing features: no @Trace ....
> We have no memory issue with the µS using TomEE Plus. This is strange 
> because TomEE Plus  somehow is a superset of TomEE MP.
>
> The issue is due to the usage of
> org.apache.geronimo.microprofile.opentracing.impl.ScopeImpl but we 
> don't know what trigger that usage.
> We also see a lot of org.apache.tomcat.util.threads.TaskThread (don't 
> know where it comes from) which uses the above ScopeImpl.
>
> I can provide you some memory dumps if you want .
>
> Is there a way to disable opentracing in TomEE MP ?
>
> Best Regards.
>
>
>
>