Wildfly unable to increase RAM above 2GB, giving Java heap size error
Issue : Deployment Fail
Error : Wildfly not allowing to increase RAM above 2GB, giving Java heap size error
Root Cause : Check whether system OS is 32 bit or 64 bits. 32 bit OS will not allow you to increase RAM more than 2GB
The amount of memory available to the Java Heap and Native Heap for a Java process is limited by the Operating System and hardware. A 32 bit Java process has a 4 GB process address space available shared by the Java Heap, Native Heap and the Operating System. 32 bit Java processes have a maximum possible heap size which varies according to the operating system and platform used.
64 bit OS processes do not have this limitation.
Note: This article is based on ElegantJ BI Version 4.0. This may or may not be relevant to the ElegantJ BI version you may be using.