cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1566
Views
0
Helpful
3
Replies

Error in CUIC - java.lang.outofmemoryerror

When trying to run agent detail report for previous day I am getting error

NestedServletException Handler processing failed; nested exception is java.lang.OutOfMemoryError: java heap space

 

Root Cause:

OutofMemoryError Java heap space

 

Can you tell me what causes this and how to correct this?

 

3 Replies 3

marce1000
VIP
VIP

 

 https://www.cisco.com/c/en/us/support/docs/customer-collaboration/unified-intelligence-center/211238-Troubleshoot-Cisco-Unified-Intelligence.html

M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

We are in version 10.6 which shows it has a cache limitation.
On the fifth or sixth attempt the report ran but then I get an error for out of memory if I try and export the report.

jefryarch
Level 1
Level 1

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:

  • Increase the default memory your program is allowed to use using the -Xmx option (for instance for 1024 MB: -Xmx1024m)
  • Modify your program so that it needs less memory, using less big data structures and getting rid of objects that are not any more used at some point in your program

Increasing the heap size is a bad solution, 100% temporary. It will crash again in somewhere else. To avoid these issues, write high performance code.

  • Use local variables wherever possible.
  • Make sure you select the correct object (EX: Selection between String, StringBuffer and StringBuilder)
  • Use a good code system for your program(EX: Using static variables VS non static variables)
  • Other stuff which could work on your code.
  • Try to move with Multy Threading

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: