Cas container generate a lot of java threads

41 views
Skip to first unread message

artur miś

unread,
Sep 22, 2021, 8:12:10 AM9/22/21
to CAS Community
Hello,

  After trafic  only about 500 users  to cas 6.3.2 on docker container  i can see 6k threads  for java  on this container so it has taken  swap memory too, let's say  after18h i see problem  with threads. 

java for this container docker :
java -Xms512m -Xmx2025M
In dokcker container  memory is not limited but the quantity of threads doesnt seem to connected with this  unlimited access to memory by container   

What do you suppose that can be issue of consumption memory , this problem apears itself during  pasword change process ? .

TGT expire time and possibility password change after pm sent emial to user is configured for expire time 3h .

Regards and Thank you.

-- 
AM

artur miś

unread,
Oct 18, 2021, 10:00:03 AM10/18/21
to CAS Community, artur miś
I suppose It is comming from   pm module and  possible problems with  Garbage Colllectors .   Is smb using  pm module in docerized  CAS  ? Do user activities with password  changing genarate  not closable threads ? Each action od changing  password  genarate 12 new threads .


Java : openjdk 11.X

artur miś

unread,
Oct 19, 2021, 9:27:29 AM10/19/21
to CAS Community, artur miś
I find out  that:
 -inside cas docker container  i can see  that ldaptive  connection are establised while(in the same time)  on docker host i can not see such conection  with ldaps ( netstat -altnp) . Let's say   no user connection  now to cas.
- quanity of ldaptive threads  are equal numers of esabished connection inside container.
ps -T -p <pid_cas_container>  | wc -l

Question:
- Do i need in  cas.propierties  any ldap pool policy  to clear   passivate?
- If it is well that cas keep connection  why does cas have got such mechanism  (for acceterate speed connection)?
 - mayby it is problem od container , i'm not sure.

My cas is 6.3

Pablo Vidaurri

unread,
Jan 14, 2022, 11:12:10 PM1/14/22
to CAS Community, artur...@gmail.com
Did you find a config that help with  your issue? I have cas 6.3.7.4 running on 4 nodes and having issue with JVM memory (6g) running low. Took a memory dump and it's all pointing to io.netty. Checked dependency tree and seems it is being used by ldaptive.
Reply all
Reply to author
Forward
0 new messages