0

I am trying to run a web application project, but there is an error when executing

Error occurred during initialization of VM

Could not reserve enough space for object heap

I attached an image for more detail

Error details - intellji

I have been looking for the solution in different forums

the majority indicates "Run the JVM with -XX: MaxHeapSize = 512m (or any big number) (or -Xmx512m for short)"

I have configured this in intellij, but the error persists -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m AND -Xms128m -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m

Config Xmx512m

I am temporarily solving this problem by uninstalling wildfly (clean folder wildfly_902), reconfiguring jboss in Intellij and finally restarting the OS. But this I have to do every 4 hours

Feature:

IntelliJ IDEA 2018.1 (Ultimate Edition) Build #IU-181.4203.550, built on March 26, 2018

wildfly 9.0.2

OS: Windows 10 Enterprise 2016 LTSB

jdk 7

thx

gcaqp
  • 13
  • 5
  • How much memory does your machine have? – stdunbar Apr 07 '18 at 22:10
  • Is an Asus ROG with 32g of ram and I have enough available memory – gcaqp Apr 08 '18 at 01:14
  • 1
    Note that too big number of heap can give this error. As I see you are using 32bit JDK - it has [restrictions for the maximum available memory](https://stackoverflow.com/a/1434901/2000323) for a single process. If you have 64bit OS it make sense to use 64bit JDK to run the server. – Andrey Apr 08 '18 at 10:40
  • Excellent catch @Andrey! – stdunbar Apr 09 '18 at 01:48

0 Answers0