GithubHelp home page GithubHelp logo

Server can't handle too big files because of grpc limits: StatusCode.RESOURCE_EXHAUSTED, grpc: trying to send message larger than max about bblfshd HOT 7 CLOSED

bblfsh avatar bblfsh commented on July 19, 2024
Server can't handle too big files because of grpc limits: StatusCode.RESOURCE_EXHAUSTED, grpc: trying to send message larger than max

from bblfshd.

Comments (7)

juanjux avatar juanjux commented on July 19, 2024

We should be able to change it with:

https://godoc.org/google.golang.org/grpc#MaxRecvMsgSize

We also should should test the performance implications of changing the size. Maybe we could dynamically change the size of the message as part of the protocol?

from bblfshd.

juanjux avatar juanjux commented on July 19, 2024

From @EgorBu on slack:

size of file to reproduce error:
root@science-3:~/tmp# ls -sh icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/DiagBigDecimalTest.java
424K icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/DiagBigDecimalTest.java

from bblfshd.

abeaumont avatar abeaumont commented on July 19, 2024

@juanjux I don't think that can be part of the protocol since it's a server configuration parameter, which has to be set before receiving protocol messages.
I'll add a CLI option to be able to override that value.

from bblfshd.

juanjux avatar juanjux commented on July 19, 2024

It could be a previous message type, a control message, this could be interesting if increasing the max size destroys performance for the average request for example, but it the performance is unaffected or only slightly worse i wouldn't care with the hassle of doing this. Also, maybe the server can't change these settings dynamically once its running so that would make this a moot point too.

from bblfshd.

bzz avatar bzz commented on July 19, 2024

FYI - for some reason, I was not hit by this issue using a sequential, single thread Golang client over the same dataset.
AFAIK @EgorBu uses Python one in a heavily parallel workflow.

from bblfshd.

abeaumont avatar abeaumont commented on July 19, 2024

@EgorBu can you make that Java file accessible somewhere or provide a link to it?

from bblfshd.

abeaumont avatar abeaumont commented on July 19, 2024

Should be fixed with #58.

from bblfshd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.