marathon icon indicating copy to clipboard operation
marathon copied to clipboard

2863267840 bytes 3GB to compile ????

Open f1-outsourcing opened this issue 4 years ago • 9 comments

[@ marathon]$ sbt compile OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005e0800000, 2863267840, 0) failed; error='Cannot allocate memory' (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 2863267840 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/software/marathon/hs_err_pid16190.log

f1-outsourcing avatar Jun 06 '20 16:06 f1-outsourcing

WTF increased memory, getting this:

[@marathon]$ sbt compile OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000068b2a0000, 5726666752, 0) failed; error='Cannot allocate memory' (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 5726666752 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/software/marathon/hs_err_pid1247.log

f1-outsourcing avatar Jun 06 '20 17:06 f1-outsourcing

this works, maybe update manual

sbt -mem 1024 compile

f1-outsourcing avatar Jun 06 '20 18:06 f1-outsourcing

I am surprised that the .sbtopts were not picked up. Would you be so kind a create a pull request with an update build manual?

jeschkies avatar Jun 08 '20 15:06 jeschkies

I am surprised that the .sbtopts were not picked up. Would you be so kind a create a pull request with an update build manual?

.sbtopts has mem 8GB ???

f1-outsourcing avatar Jun 09 '20 07:06 f1-outsourcing

Scalac and sbt can be hungry.

jeschkies avatar Jun 09 '20 11:06 jeschkies

I don't care to much about this. I compiled yesterday 1.8.222 and I have same symptoms as #7136. When running sbt -mem 1024 'run --master m01.local:5050 --zk zk://m01.local:2181/marathon --mesos_user root' I would like some help to get this fixed.

f1-outsourcing avatar Jun 09 '20 15:06 f1-outsourcing

I think we can remove the mem flag for sbt and just let sbt determine it. That was added 4 years ago.

timcharper avatar Jul 21 '20 16:07 timcharper

it is still there, first line https://github.com/mesosphere/marathon/blob/master/.sbtopts

f1-outsourcing avatar Jul 21 '20 16:07 f1-outsourcing

@f1-outsourcing, did you try change it to 4096 and try to compile Marathon. If that works you can just create a pull request and we'll accept it. Thanks 🙂

jeschkies avatar Jul 22 '20 09:07 jeschkies