-
Notifications
You must be signed in to change notification settings - Fork 216
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
Out of memory during mvn install
#115
Comments
Have you tried increasing your perm size? Something like |
Yes, Could we keep this option in a |
I could add something into the compilation instructions to help if you want? |
No. If scalastyle requires more than the default JVM permsize, then the build should be configured accordingly. Don't make users do even more extra steps to make scalastyle. |
There is a fork option for the scala compiler so I could add the options to the pom. However, I don't know the correct options for your system. You may have more/less memory than me. By default, the JVM allocates you an amount of memory based on a number of things - amount of memory, the operating system, the mode that you are running in - it is different for client and server. Note that you can't necessarily predict that your build will fail with a permgen error either. I have this problem sometimes. Most of the time (for me at least), when I get an error like this, just rerunning the command works. This is because maven is compiling internal classes which it then uses to compile the sources. I'd have to add a value of memory option which would work in all cases, and there are simply too many variables. I can recommend a value, but I'm not going to force one on you. Note that you can put the |
Is this still a problem for you? |
Closing this. If this is still a problem for you, please either reopen this issue or create a new one. |
I'm trying to follow the directions for installing scalastyle from source, but I'm getting an out of memory error.
Trace
Am I doing something wrong?
System
The text was updated successfully, but these errors were encountered: