I would be interested to know how much memory it really saves. Probably a lot more if you only write English. Most Strings written by English speakers will use ASCII characters only, where the representation using UTF8 is identical to that in a byte.
Jeanne Boyarsky wrote:. . . take a look at the Compact String feature. . . .
Campbell Ritchie wrote:Is this the result of a mistake made in JDK1.0: use UTF16 rather than UTF8?
... There are others. ...
Kent O. Johnson wrote:.. There are others. ...
Kent O. Johnson wrote:The main reason I ask this question is because I want to solve what I see as a problem with my current Spring Boot microservices taking around 1GB of RAM each solely to start up and run. That seems outrageous! Once they are running they stay around 1GB until I start using them. I want to know how to get that initial number down. I see two main possibilities of why I haven't been able to do that so far. One, I don't understand how to properly read JVM memory usage metrics and two, I am unfamiliar with what exactly a JVM classloader and the Spring Runtime Environment does.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton