Support Questions

Find answers, ask questions, and share your expertise

java heap space outofmemory

avatar

hello
When i start nifi with ambari i get this error Java Heap Space OutofMemory but when i start it with console by script nifi.sh i get no error

1 ACCEPTED SOLUTION

avatar

@Jay Kumar SenSharma


Thxt for your replay , i am using HDF 2.1.4.0-5

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@ibrahima diattara

Which version of HDF are you using? There was an issue reported in older version with toolkit heap setting. The default heap setting for encryption utility is -Xms128m -Xmx256m , which is hardcoded in the encrypt-config.sh script file.

Please refer to the following SupportKB which might help in fixing your issue.

https://community.hortonworks.com/content/supportkb/150267/errorjavalangoutofmemoryerror-java-heap-s...

avatar

@Jay Kumar SenSharma


Thxt for your replay , i am using HDF 2.1.4.0-5

avatar

@Jay Kumar SenSharma


I increase Xms128m -Xmx256m to Xms1024m -Xmx2048m , it solved the probleme

Thxt