04-03-2019 02:42 PM
I checked the logs when I got an error to add a device in ncs and do sync from.. Please help out to fix this issue..
Thanks
Santhosh
Solved! Go to Solution.
04-04-2019 03:37 PM
04-04-2019 12:49 PM
This worked when I tried with other device.. Thanks
04-04-2019 03:37 PM
04-04-2019 05:33 PM
Hi,
Take a look at the following info from an SR I closed not too long ago. NSO is recommended to use at least 2 Gigs of java-vm memory.
go to /bin/ directory of NCS_DIR and edit 'ncs-start-with-java' and edit: NCS_JAVA_VM_OPTIONS with "-Xmx2g" or any other desired amount of memory. Another option is to: export _JAVA_OPTIONS="-Xmx1024m" (with any desired amount of memory) to change the OS lvl vm memory.
02-10-2022 11:23 PM
Usually, this error is thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
Therefore you pretty much have two options:
Increasing the heap sizeis a bad solution, 100% temporary. It will crash again in somewhere else. To avoid these issues, write high performance code:
10-16-2025 08:55 PM
“Java Heap Space” error will be caused by insufficient Java heap memory allocation. The java.lang.OutOfMemoryError: Java heap space error that you are facing actually indicates that your JVM is running out of memory to allocate for objects in the heap. Even though you've allocated some GB to the container, there could be a possibility that the actual Java heap size being used by the Metabase JVM is much lower. This is because, always, JVM by default does not utilize the full container memory unless we instruct to.
While performing the requested operation that is adding a device and performing a sync in NCS, this issue has happened. This happens when the application tries to process more data than the allocated heap memory can handle. In order to overcome this, you can increase the heap size by adjusting the JVM options. This will help with allocating more memory to the application. In such cases, reviewing the logs or analyzing a heap dump using a tool like GCeasy or Eclipse MAT can help identify which objects are consuming excessive memory. If you are interested in learning about the types of OutOfMemoryError, you can check out this blog: Types of OutOfMemoryError, Causes, and Solutions.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide