Solved

java.lang.OutOfMemoryError: Java heap space in adminserver

  • 21 April 2022
  • 2 replies
  • 933 views

Userlevel 3
Badge +8

hi guy

I need your help,

it is app9.

we usually met the IFS Crash. and we found the error:java.lang.OutOfMemoryError: Java heap space in 

admin server . was it possible to make IFS crash?

####<Apr 6, 2022 9:04:58 PM CST> <Error> <Kernel> <CCNQHA0F> <AdminServer> <[STUCK] ExecuteThread: '50' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1649250298804> <BEA-000802> <ExecuteRequest failed
 java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space

####<Apr 6, 2022 9:04:58 PM CST> <Error> <Kernel> <CCNQHA0F> <AdminServer> <[ACTIVE] ExecuteThread: '63' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1649250298773> <BEA-000802> <ExecuteRequest failed
 java.lang.OutOfMemoryError: Java heap space.
java.lang.OutOfMemoryError: Java heap space

 

 

 

icon

Best answer by Charith Epitawatta 21 April 2022, 19:02

View original

2 replies

Userlevel 7
Badge +31

Hi @michel,

An Out of Memory error can make the server crash, but for an outage to occur, it would normally have to be the Managed Server rather than the Admin Server. It would be better to check the log files of Managed Server and HTTP server as well to see if you can find any errors there.

Since this is an IFSAPP9 environment, you can run the installer and check the maximum heap memory allocated for the Admin Server and try to increase it.

Before allocating more memory to fix an Out of Memory error, ideally, you should take heap dumps from the environment to analyze and identify if there are any memory leaks. If there is a memory leak, increasing the heap memory will not help. 

Hope this helps!

Badge +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

 

Reply