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

Getting PermGen space issues when building latest master #596

Closed
koertkuipers opened this issue Nov 6, 2015 · 6 comments

Comments

@koertkuipers
Copy link

commented Nov 6, 2015

with master at d2053a6

$ ./gradlew

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':elasticsearch-spark-1.2:compileScala'.

    PermGen space

Could this be an issue that is specific to my local environment?

@costin

This comment has been minimized.

Copy link
Member

commented Nov 9, 2015

Looks like you are using Java 7 in which case yes, you need to increase the PermGen since the scala compiler runs inside the Gradle JVM (it is not forked).
The quick solution is to use Java 8 (recommended as it adds several improvements including on the security side) and gets rid of PermGen.
Going forward, there are some improvements in Gradle 2.8 that hopefully will eliminate this issue, at least in master/2.2.

@koertkuipers

This comment has been minimized.

Copy link
Author

commented Nov 10, 2015

yes i am using java 7

this worked for me:

  •    maxHeapSize = "768m"
    
  •    maxHeapSize = "1024m"
     if (!java8)
    
  •        jvmArgs '-XX:MaxPermSize=368m'
    
  •        jvmArgs '-XX:MaxPermSize=512m'
    

On Mon, Nov 9, 2015 at 3:00 PM, Costin Leau notifications@github.com
wrote:

Looks like you are using Java 7 in which case yes, you need to increase
the PermGen since the scala compiler runs inside the Gradle JVM (it is not
forked).
The quick solution is to use Java 8 (recommended as it adds several
improvements including on the security side) and gets rid of PermGen.
Going forward, there are some improvements in Gradle 2.8 that hopefully
will eliminate this issue, at least in master/2.2.


Reply to this email directly or view it on GitHub
#596 (comment)
.

@costin

This comment has been minimized.

Copy link
Member

commented Nov 11, 2015

Strange. Compiling the project with gradlew works fine on my end and on the CI - at least PermSize doesn't seem to be a problem.

@costin

This comment has been minimized.

Copy link
Member

commented Nov 12, 2015

I've increased the PermSize to 496m which should be more then enough. Again it's strange that on the CI and on my machine the build works fine with both gradle and gradlew but not in your case. Are you using some kind of instrumentation or agents in your JVM? Something is eating that PermGen but it's unclear what.

@costin costin closed this Nov 12, 2015

@koertkuipers

This comment has been minimized.

Copy link
Author

commented Nov 12, 2015

not that i am aware of... just plain oracle jdk 1.7.0_75

anyhow, thanks!

@koertkuipers

This comment has been minimized.

Copy link
Author

commented Feb 2, 2016

i just noticed when building elasticsearch-hadoop 2.2.0-rc1 today that i had permgen issues again. but it is not with test but instead with scalac. so changing the parameters mentioned before did not solve anything.
i fixed it for myself by doing:
$ export JAVA_OPTS="-Xmx1024M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512M"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.