Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2863267840 bytes 3GB to compile ???? #7189

Open
f1-outsourcing opened this issue Jun 6, 2020 · 9 comments
Open

2863267840 bytes 3GB to compile ???? #7189

f1-outsourcing opened this issue Jun 6, 2020 · 9 comments

Comments

@f1-outsourcing
Copy link

[@ 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
Copy link
Author

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
Copy link
Author

this works, maybe update manual

sbt -mem 1024 compile

@jeschkies
Copy link
Contributor

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?

@f1-outsourcing
Copy link
Author

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

@jeschkies
Copy link
Contributor

Scalac and sbt can be hungry.

@f1-outsourcing
Copy link
Author

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.

@timcharper
Copy link
Contributor

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

@f1-outsourcing
Copy link
Author

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

@jeschkies
Copy link
Contributor

@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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants