[ https://issues.apache.org/jira/browse/RANGER-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706743#comment-17706743 ]
Bhavik Patel commented on RANGER-4147: -------------------------------------- >> 1. We have 5 kms server and assigned 40gb heap memory. You mentions in #2 that KMS has only 8-10 encryption keys. Why does KMS server require 40gb of memory? ===> Initially we assigned only 8gb but we observed kms was use full heap and to avoid memory issue we assigned to 40gb.( Currently it uses only 14gb). note: We are using CMS for garbage collection. >> 2. tomcat maxConnections parameter set it to 24000 as we are 20K job per >> day. (kms has 8-10 encryption keys only) 20k job/day - how does this translate to requiring 24k maxConnections? Doesn't maxConnections represent number of simultaneous connections? ===> Thant's true, Tomcat 8.5.x default supports 8.2k connections. In our jobs log we observed connectionsTime out while connecting to kms server(as all the 8.2k connections are occupied) and due to that our jobs gets delayed. >> 4. Analysed the access the logs and we observed like kms is serving >> 1200-1300 request per second. Given this rate of requests, CPU utilization you observed (50%, occasionally 150%) seems not abnormal. Why do you think it is high? ===> I thought CPU utilization should be below 25%. So it's normal behaviour as our rate of request is high? > Ranger KMS consume 50% of CPU memory > ------------------------------------- > > Key: RANGER-4147 > URL: https://issues.apache.org/jira/browse/RANGER-4147 > Project: Ranger > Issue Type: Bug > Components: kms > Affects Versions: 2.3.0 > Environment: secured > Reporter: Bhavik Patel > Priority: Critical > > Ranger KMS consume 50% of CPU memory and many time it consume even 150% > cc: [~dhavalshah9131] [~kirbyzhou] -- This message was sent by Atlassian Jira (v8.20.10#820010)