Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to Increase Ranger Admin Heap Size?

Solved Go to solution

How to Increase Ranger Admin Heap Size?

Expert Contributor

How can the heap size of the Ranger Admin service be increased? What is a good recommended value?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Increase Ranger Admin Heap Size?

Contributor

Preferred way is to create a file like ranger-admin-env00-java_mem.sh in /etc/ranger/admin/conf and have the following values:

JAVA_OPTS=" -XX:MaxPermSize=256m -Xmx1024m "

export JAVA_OPTS

In this way, even when Ranger is upgraded, your custom overrides are still there.

3 REPLIES 3
Highlighted

Re: How to Increase Ranger Admin Heap Size?

Contributor

What is the reason for increasing the heap? Are you seeing OOM errors due to too many users?

Re: How to Increase Ranger Admin Heap Size?

You can edit JAVA_OPTS property in below file. You can leave the default 1g. It should work fine.

In HDP 2.2:

/usr/hdp/2.2.x/ranger-admin/ews/start-ranger-admin.sh

In HDP 2.3:

/usr/hdp/2.3.x/ranger-admin/ews/ranger-admin-services.sh

Re: How to Increase Ranger Admin Heap Size?

Contributor

Preferred way is to create a file like ranger-admin-env00-java_mem.sh in /etc/ranger/admin/conf and have the following values:

JAVA_OPTS=" -XX:MaxPermSize=256m -Xmx1024m "

export JAVA_OPTS

In this way, even when Ranger is upgraded, your custom overrides are still there.

Don't have an account?
Coming from Hortonworks? Activate your account here