-
Notifications
You must be signed in to change notification settings - Fork 5
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
High resource usage #15
Comments
AnalysisThere are two main problems on the server side. Addre SMASH stores data in a peculiar way: each entry has a copy of the form that generated it. This amplifies an existing issue: when the map loads, every note is sent to the client, including the whole form. There is no need to preload such large amount of information into the server memory nor to send it to the user. High memory usage is also linked to GSS using JSON instead of JSONL to return a list of element. GSS/flutter_server_backbone/src/main/java/com/hydrologis/kukuratus/gss/GssDatabaseUtilities.java Lines 183 to 188 in 6742706
ProposalAdding two functions to GSS:
The old function would then be deprecated and removed in a later version of GSS, making the memory usage on the server more predictable. @moovida What is your opinion on that? |
Hi @frafra , what you write makes good sense. I as living in the assumption that the notes already where passed with the minimum necessary information, so I will first have to check back into that code to be sure and give a statement :-) |
I am experiencing a high resource usage: I needed to allocate 4 GB of RAM for showing ~1250 points on the map, ~20 seconds to be loaded, and 132 MB transferred to fetch the JSON data (compressed to 38 thanks to gzip compression over HTTP).
That is because my
tags.json
includes a multiple choice selector with ~2000 possible values.Some possible solutions:
I am using GSS 3.2 from https://hub.docker.com/r/frafra/gss.
Related: geopaparazzi/smash#129
The text was updated successfully, but these errors were encountered: