RJ,

I could be missing something but your most recent summary of the heap behavior 
sounds pretty normal.
Your arguments have the JVM heap initializing at 2 GB and maxing out at 4 GB.

When garbage collection occurs, some of the memory used by the heap should be 
freed up.
Sometimes this doesn’t work properly when there is a memory leak or an issue 
with the cleanup processes within the application.

When garbage collection runs how much of the memory is typically getting 
recovered?

Thanks,

Tom O’Neill

From: [email protected] [mailto:[email protected]] On Behalf Of RJ
Sent: Monday, August 28, 2017 7:25 PM
To: [email protected]
Subject: Re: [cas-user] JVM Heap Kept Growing every day

Here is another take at this:

Started CAS with  -Xms2048m -Xmx4096m about 12 days ago.

Interesting things from stats file is that jvm.memory.heap.committed & 
jvm.memory.heap.init haven't changed since beginning. 2147483648 is the same 
value from the beginning.  jvm.memory.heap.usage has varied from 5% to 40%.

jvm.memory.heap.committed, value=2147483648
jvm.memory.heap.init, value=2147483648
jvm.memory.heap.max, value=4294967296
jvm.memory.heap.usage, value=0.33496101573109627
jvm.memory.heap.used, value=1438646608

Weirdest observation (free -m)

12 days ago (when started)
Mem:           6472        2257         749          48        2161        3851
Swap:          4095           0        4095

now:
Mem:           6472        3561         749          48        2161        2547
Swap:          4095           0        4095

Used memory started from 2257 to 3561m.

top -> m
  694 javauser    20   0 7381748 3.263g  17792 S  0.8 51.6 288:34.34 java

So, top command tells that jvm takes 3.263g.  I was thinking that JVM takes 
only 2G {2147483648 of jvm.memory.heap.committed}.

Does this make any sense ? Thoughts?

On Sat, Aug 19, 2017 at 5:20 AM, 
<[email protected]<mailto:[email protected]>> wrote:
OK,

there is a significant memory leak in the version of Thymeleaf layout dialect 
used by versions of CAS prior to 5.0.7. Since 5.0.7 it's been updated to the 
layout dialect version containing the memory leak fix.

This is most likely what you are experiencing.

Cheers,
D.



On Sat, Aug 19, 2017 at 4:53 AM -0400, "David Malia" 
<[email protected]<mailto:[email protected]>> wrote:
It probably is a good idea to move Hazelcast to its own jvm at a minimum.  It 
looks like the default behavior is to fill the cache until its at 85% of heap 
space.
  I got this by looking at
https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#hazelcast-ticket-registry,
so I could be wrong.


On Fri, Aug 18, 2017 at 10:51 AM, Oschwald Robert 
<[email protected]<mailto:[email protected]>> wrote:
You can get the amount of objects in Hazelcast using Hazelcast Management 
Center or VM tools like visualvm.
I’m not sure if Hazelcast Management Center is available for Open Source 
License usage, or in Hazelcast Enterprise, only.

I strongly recommend to NOT use the Hazelcast  embedded mode, as it is not 
optimal for production.
Better to setup a hazelcast Cluster, so run a Hazelcast “Client Plus Member” 
Topology.

See https://hazelcast.com/resources/hazelcast-deployment-operations-guide/

Robert

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:cas-user%[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/E1910550-B266-448A-A09B-3C32FFB0A59A%40gmail.com.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkELjWgjBjsVsCru9FRSZGRdWgp%3D%2B5M%3DRrcxBo%3D8tVjEdSw%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAL3JkELjWgjBjsVsCru9FRSZGRdWgp%3D%2B5M%3DRrcxBo%3D8tVjEdSw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/D5BBD223FBD5BCE6.C72A3F6A-13CE-41A8-9121-A06158620A74%40mail.outlook.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/D5BBD223FBD5BCE6.C72A3F6A-13CE-41A8-9121-A06158620A74%40mail.outlook.com?utm_medium=email&utm_source=footer>.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CACNfiMK2AdYf5Hjf%3DaMSGmrN-sYferPpF3cmwJoMrQAjzRcjDA%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CACNfiMK2AdYf5Hjf%3DaMSGmrN-sYferPpF3cmwJoMrQAjzRcjDA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CY4PR02MB27732BE1C44260A2DED4A402CB9F0%40CY4PR02MB2773.namprd02.prod.outlook.com.

Reply via email to