-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ArrayTernaryTrie consumes too much memory #5562
Comments
Tries are currently being reviewed as part of #5291 |
Note also that there is a per connection header cache, so that if you have lots of short lived connections, then you may allocated a lot of caches for no reason. I'll also have a look to see if we can be smarter about when we create this cache. |
Fix #5562 by initially putting cacheable fields into a inexpensive arraylist. Only create the Trie (with space and complexity costs) if a second request is received.
See #5565 as an alternative to disabling the HttpField cache. This PR will change the parser to only create the cache on a second request. |
Jetty version
9.4.x
Java version
java 11
OS type/version
centos 7
Description
ArrayTernaryTrie consume 17% memory.
more details please see following chart
advance01-20201103-instanceorder.zip
The text was updated successfully, but these errors were encountered: