Back in 2016, Li Haoyi put together this nice article titled, Benchmarking Scala Collections.
GraalVM native executables can run faster than Scala/Java/JVM applications, with much less memory consumption
In two small tests where GraalVM was able to create a native executable, the native executable ran significantly faster than the equivalent Scala/Java code running with the Java 8 JVM, and also reduced RAM consumption by a whopping 98% in a long-running example. On the negative side, GraalVM currently doesn’t seem to work with Swing applications.
Very briefly, I spent a little time today trying to understand how much memory/RAM a Java/Swing application was really using, and these are my notes from that excursion. Note that the app is bundled as a MacOS/Java app I named AlPad, but from some system perspectives it is only seen by the name
JavaAppLauncher. Here are my notes, which will hopefully be useful to me in the future:
The Persistence of Memory, by Salvador Dali. A favorite painting, and the melting is fitting for a 99 degree day.
From a story of how an 82-year-old woman with dementia improved significantly by changing her diet:
“A change in diet, which was comprised of high amounts of blueberries and walnuts, has proven to have had a strong impact on Sylvia’s condition that her recipes are now being shared by the Alzheimer’s Society ... Sylvia also began incorporating other health foods, including broccoli, kale, spinach, sunflower seeds, green tea, oats, sweet potatoes and even dark chocolate with a high percentage of cacao. All of these foods are known to be beneficial for brain health.”
“Mark and Sylvia devised to diet together after deciding that the medication on it’s own was not enough, they looked into the research showing that rates of dementia are much lower in Mediterranean countries and copied a lot of their eating habits.”
[error] (run-main-0) java.lang.OutOfMemoryError: GC overhead limit exceeded java.lang.OutOfMemoryError: GC overhead limit exceeded
The solution to the problem was to allocate more memory when I start SBT. To give SBT more RAM I first issue this command at the command line:
If you’re interested in computer system performance, ExtremeTech has an article titled, CPU utilization is wrong on PCs, and it’s getting worse every year. The original article was written on the same topic by Brendan Gregg in 2017, but the problem has been made worse by the Spectre and Meltdown patches.
“In Erlang, processes share no memory and can interact with each other only by sending messages. This is exactly how objects in the real world behave.”
“Even when I was just three years old, I could recall many previous lives. But to many people this sort of thinking isn’t acceptable, so now when I’m asked what I can remember, I just say ‘I remember when I was three years old.’”
~ a monk