You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Mandar K <ma...@gmail.com> on 2024/05/08 18:30:45 UTC

Performance scale up Thread

Dear All, related to performance scale up thread wanted to share one
observation :

Everytime there is an increase in memory it gets filled up. This may be due
to a memory management bug in any code. Some processes are creating a lot
of objects and not clearing afterwards.

Requesting inputs on the below

1. How to identify those objects / code which is causing memory leak
2. Any suggestions for GC

We are facing a challenge on the performance issue. Any strong assistance
will really help.

Thanks a lot.

-- 
Regards
Mandar K

Re: Performance scale up Thread

Posted by Mandar K <ma...@gmail.com>.
Thanks Ingo, we will check. Appreciate it.

On Thu, May 9, 2024 at 3:16 PM Ingo Wolfmayr <in...@wolfix.at>
wrote:

> Did you check the caching settings.
>
> framework/base/config/cache.properties
>
> You should enable caching groovy scripts :
>
> # Development Mode - comment these out to better cache groovy scripts, etc
> #These are all cleared by default every 10000 milliseconds, or ten seconds
> #minilang.SimpleMethodsDirect.expireTime=10000
> #minilang.SimpleMethodsResource.expireTime=10000
> #minilang.SimpleMethodsURL.expireTime=10000
>
> I remember this causing a memory leak on production - it is meant for
> developing mode.
>
> Best regards,
> Ingo
>
> -----Ursprüngliche Nachricht-----
> Von: Mandar K <ma...@gmail.com>
> Gesendet: Mittwoch, 8. Mai 2024 20:31
> An: ofbizuser <us...@ofbiz.apache.org>
> Betreff: Performance scale up Thread
>
> Dear All, related to performance scale up thread wanted to share one
> observation :
>
> Everytime there is an increase in memory it gets filled up. This may be
> due to a memory management bug in any code. Some processes are creating a
> lot of objects and not clearing afterwards.
>
> Requesting inputs on the below
>
> 1. How to identify those objects / code which is causing memory leak 2.
> Any suggestions for GC
>
> We are facing a challenge on the performance issue. Any strong assistance
> will really help.
>
> Thanks a lot.
>
> --
> Regards
> Mandar K
>


-- 
Regards
Mandar Kulkarni
Adaptability is the whole mystery of life - Swami Vivekanand

AW: Performance scale up Thread

Posted by Ingo Wolfmayr <in...@wolfix.at>.
Did you check the caching settings.

framework/base/config/cache.properties

You should enable caching groovy scripts :

# Development Mode - comment these out to better cache groovy scripts, etc
#These are all cleared by default every 10000 milliseconds, or ten seconds
#minilang.SimpleMethodsDirect.expireTime=10000
#minilang.SimpleMethodsResource.expireTime=10000
#minilang.SimpleMethodsURL.expireTime=10000

I remember this causing a memory leak on production - it is meant for developing mode.

Best regards,
Ingo

-----Ursprüngliche Nachricht-----
Von: Mandar K <ma...@gmail.com> 
Gesendet: Mittwoch, 8. Mai 2024 20:31
An: ofbizuser <us...@ofbiz.apache.org>
Betreff: Performance scale up Thread

Dear All, related to performance scale up thread wanted to share one observation :

Everytime there is an increase in memory it gets filled up. This may be due to a memory management bug in any code. Some processes are creating a lot of objects and not clearing afterwards.

Requesting inputs on the below

1. How to identify those objects / code which is causing memory leak 2. Any suggestions for GC

We are facing a challenge on the performance issue. Any strong assistance will really help.

Thanks a lot.

--
Regards
Mandar K

Re: Performance scale up Thread

Posted by Mandar K <ma...@gmail.com>.
Hi Jacques, greetings. We will check. Appreciate it.

On Thu, May 9, 2024 at 10:56 AM Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> I suggest you use YourKit Java Profiler
>
> BTW, it's free for Apache committers
>
> https://svn.apache.org/repos/private/committers/donated-licenses/yourkit-java-profiler.txt
>
> HTH
>
> Jacques
>
> Le 08/05/2024 à 20:30, Mandar K a écrit :
> > Dear All, related to performance scale up thread wanted to share one
> > observation :
> >
> > Everytime there is an increase in memory it gets filled up. This may be
> due
> > to a memory management bug in any code. Some processes are creating a lot
> > of objects and not clearing afterwards.
> >
> > Requesting inputs on the below
> >
> > 1. How to identify those objects / code which is causing memory leak
> > 2. Any suggestions for GC
> >
> > We are facing a challenge on the performance issue. Any strong assistance
> > will really help.
> >
> > Thanks a lot.
> >
>


-- 
Regards
Mandar Kulkarni
Adaptability is the whole mystery of life - Swami Vivekanand

Re: Performance scale up Thread

Posted by Jacques Le Roux <ja...@les7arts.com>.
I suggest you use YourKit Java Profiler

BTW, it's free for Apache committers
https://svn.apache.org/repos/private/committers/donated-licenses/yourkit-java-profiler.txt

HTH

Jacques

Le 08/05/2024 à 20:30, Mandar K a écrit :
> Dear All, related to performance scale up thread wanted to share one
> observation :
>
> Everytime there is an increase in memory it gets filled up. This may be due
> to a memory management bug in any code. Some processes are creating a lot
> of objects and not clearing afterwards.
>
> Requesting inputs on the below
>
> 1. How to identify those objects / code which is causing memory leak
> 2. Any suggestions for GC
>
> We are facing a challenge on the performance issue. Any strong assistance
> will really help.
>
> Thanks a lot.
>