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

Fix android circleci #1618

Merged
merged 13 commits into from
Jun 4, 2020
Merged

Fix android circleci #1618

merged 13 commits into from
Jun 4, 2020

Conversation

andrepimenta
Copy link
Member

@andrepimenta andrepimenta commented Jun 4, 2020

After many tries, I encountered this: https://blogs.oracle.com/java-platform-group/java-se-support-for-docker-cpu-and-memory-limits

Then with that I found this:
circleci/circleci-docs#2944

environment:
  JAVA_OPTS: "-Xms512m -Xmx1024m"
  _JAVA_OPTIONS: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
  GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'

And worked.

This also may work: https://stackoverflow.com/questions/52496815/circleci-how-to-handle-java-oom-errors

@andrepimenta andrepimenta added the DO-NOT-MERGE Pull requests that should not be merged label Jun 4, 2020
@andrepimenta andrepimenta requested a review from a team as a code owner June 4, 2020 19:02
@andrepimenta andrepimenta changed the title Fix android circleci [testing] Fix android circleci Jun 4, 2020
@andrepimenta andrepimenta removed the DO-NOT-MERGE Pull requests that should not be merged label Jun 4, 2020
@andrepimenta andrepimenta merged commit 79f5657 into develop Jun 4, 2020
@andrepimenta andrepimenta deleted the fix-android-circleci branch June 4, 2020 23:43
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* test separating into different steps

* Fix command

* Trying more memory

* fix param

* other params

* increasing docker memory

* Trying setting different resource

* try 3g

* Test from a circleci blog android config

* trying another config

* Final circleci config

* Revert package json
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

Successfully merging this pull request may close these issues.

2 participants