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!
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