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

Too much information in the blocks field of the graphql query results in an oom exception #306

Open
pengzhepz opened this issue Jan 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pengzhepz
Copy link

System information

Alaya version: alaya version 0.16.3
OS & Version: Windows/Linux/OSX
Commit hash : (if develop) 7fb9d1a

Actual behaviour

Use the following query:
{blocks(from: 1) {transactionCount ommerCount number hash nonce
parent {hash}
transactionsRoot
stateRoot
receiptsRoot
miner {address code balance transactionCount}
extraData
gasLimit
gasUsed
timestamp
logsBloom
mixHash
difficulty
totalDifficulty
ommerCount
ommers {transactionCount ommerCount}
ommerAt(index: 0) {transactionCount ommerCount}
ommerHash
transactions {index status gasUsed cumulativeGasUsed}
transactionAt (index:0){index status gasUsed cumulativeGasUsed}
logs (filter:{}) {index}
}
If there are many chained blocks, it will lead to memory overflow

@pengzhepz pengzhepz added the bug Something isn't working label Jan 24, 2022
@cheng762
Copy link
Collaborator

If the number of query blocks is too large, it will take up a lot of memory. This is not a memory leak, but insufficient memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants