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

refactor(core): use default heap size regardless of available memory #2998

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

spkjp
Copy link
Contributor

@spkjp spkjp commented Oct 1, 2019

Summary

This was added to trigger the GC sooner on nodes with low memory, as they tend to run out of memory during a long running sync. However, all this did was to just work around a symptom and not the actual issue (cough Socketcluster timeouts something cough). Now it is causing issues during bootstrap, because V8 hits the allocation limit and just kills itself. Since the former is the latter evil, rather take the risk to run out of memory during a long running sync than during bootstrap.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

This was added to trigger the GC sooner on nodes with low memory,
as they tend to run out of memory during a long running sync.
However, all this did was to just work around a symptom and not the
actual issue (*cough* Socketcluster timeouts something*cough*). Now it
is causing issues during bootstrap, because V8 hits the allocation limit
and just kills itself. Since the former is the latter evil, rather take
the risk to run out of memory during a long running sync than during
bootstrap.
@ghost ghost added Complexity: Low labels Oct 1, 2019
@faustbrian faustbrian merged commit b6379a5 into develop Oct 1, 2019
@faustbrian faustbrian deleted the refactor/core/heap-parameter branch October 1, 2019 02:40
vasild added a commit that referenced this pull request Oct 1, 2019
…ts-nonce

* ArkEcosystem/core/develop:
  fix(deps): update dependency @hapi/boom to v8 (#2988)
  feat(crypto): allow passing height to `configManager.isNewMilestone` (#3001)
  ci: update branch patterns to new format
  refactor: remove asset migration heuristic (#2999)
  chore(deps): update dependency typesync to ^0.6.0 (#2981)
  refactor(core): use default heap size regardless of available memory (#2998)
  chore(deps): update dependency cross-env to v6 (#2985)
  chore(deps): update dependency rimraf to v3 (#2987)
  refactor: core-magistrate-crypto export namespaces (#2980)
  feat: multiSignWif (#2979)
  fix(core-snapshots): export/import transactions' type_group (#2996)
  chore(deps): update dependency @types/newrelic to v5 (#2984)
  fix(deps): update dependency node-forge to ^0.9.0 (#2983)
  feat(core-api): find htlc unlock transactions (#2976)
  chore(deps): update dependency del-cli to v3 (#2986)
  fix(deps): update dependency cli-progress to v3 (#2990)
  fix(deps): update dependency winston-daily-rotate-file to v4 (#2992)
  fix(core-api): missing orderBy (#2974)
  feat(core): allow CLI command configurations (#2972)
  refactor(core-magistrate):  Split core-marketplace into core-magistrate-crypto and core-magistrate-transactions (#2967)
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.

None yet

2 participants