Skip to content

Reduce java memory options to 128M #43

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

Merged
merged 1 commit into from
Nov 17, 2015
Merged

Reduce java memory options to 128M #43

merged 1 commit into from
Nov 17, 2015

Conversation

pbrisbin
Copy link
Contributor

These numbers were (and still are) a bit of a shot in the dark:

  1. This cannot limit total process memory; it's technically a limit on the
    JVM's heap size, which will indirectly impact total process memory[1]
  2. With the previous limit of 384M, it's suspected a fork operation
    would require double that (768M), which is already over the 512M
    engine-level limit

Therefore, we're going to experiment with a lower, 128M limit.

1: http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm

/cc @codeclimate/review

These numbers were (and still are) a bit of a shot in the dark:

1. This cannot limit total process memory; it's technically a limit on
   the JVM's heap size, which will indirectly impact total process
   memory[1]

2. With the previous limit of 384M, it's suspected a fork operation
   would require double that (768M), which is already over the 512M
   engine-level limit

Therefore, we're going to experiment with a lower, 128M limit.

1: http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm
@fhwang
Copy link

fhwang commented Nov 17, 2015

LGTM, enough for a try at any rate.

pbrisbin added a commit that referenced this pull request Nov 17, 2015
Reduce java memory options to 128M
@pbrisbin pbrisbin merged commit a04e138 into master Nov 17, 2015
@pbrisbin pbrisbin deleted the pb-mem-limits branch November 17, 2015 16:52
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